Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlx-swift
Submodule mlx-swift updated 1227 files
2 changes: 1 addition & 1 deletion mlx-swift-lm
Submodule mlx-swift-lm updated 87 files
+3 −5 .github/workflows/downstream_integration.yml
+3 −1 .github/workflows/pull_request.yml
+244 −0 IntegrationTesting/IntegrationTestingTests/AttachmentLabelTemplateIntegrationTests.swift
+2 −2 ...nTesting/IntegrationTestingTests/MLXFoundationModelsIntegration/ToolCalling/MultiTurnToolCallingTests.swift
+88 −15 IntegrationTesting/IntegrationTestingTests/VisionIntegrationTests.swift
+3 −3 Libraries/IntegrationTestHelpers/IntegrationTestHelpers.swift
+41 −27 Libraries/MLXEmbedders/README.md
+64 −0 Libraries/MLXFoundationModels/AttachmentLabelValidator.swift
+2 −5 Libraries/MLXFoundationModels/GuidedGeneration/SchemaConverter.swift
+10 −14 Libraries/MLXFoundationModels/MLXLanguageModel.swift
+18 −4 Libraries/MLXFoundationModels/ToolCalling/ToolCallingConversions.swift
+73 −27 Libraries/MLXFoundationModels/TranscriptConverter.swift
+13 −3 Libraries/MLXLLM/Documentation.docc/evaluation.md
+5 −1 Libraries/MLXLLM/Documentation.docc/using-model.md
+3 −0 Libraries/MLXLLM/Models/JinaReranker.swift
+11 −5 Libraries/MLXLLM/Models/NemotronH.swift
+13 −0 Libraries/MLXLLM/Models/Qwen3.swift
+28 −8 Libraries/MLXLLM/Models/Qwen35.swift
+6 −3 Libraries/MLXLLM/README.md
+76 −0 Libraries/MLXLMCommon/Chat.swift
+9 −17 Libraries/MLXLMCommon/Documentation.docc/porting.md
+70 −15 Libraries/MLXLMCommon/Documentation.docc/upgrade.md
+1 −1 Libraries/MLXLMCommon/Documentation.docc/using.md
+3 −3 Libraries/MLXLMCommon/Evaluate.swift
+35 −21 Libraries/MLXLMCommon/README.md
+13 −0 Libraries/MLXLMCommon/Reranker.swift
+11 −5 Libraries/MLXLMCommon/TurboQuantKernels.swift
+1 −1 Libraries/MLXLMCommon/UserInput+Audio.swift
+164 −16 Libraries/MLXLMCommon/UserInput.swift
+3 −0 Libraries/MLXRerankers/Documentation.docc/Documentation.md
+2 −2 Libraries/MLXVLM/MediaProcessing.swift
+3 −6 Libraries/MLXVLM/Models/FastVLM.swift
+2 −1 Libraries/MLXVLM/Models/Gemma3.swift
+8 −6 Libraries/MLXVLM/Models/Gemma4.swift
+3 −7 Libraries/MLXVLM/Models/GlmOcr.swift
+7 −6 Libraries/MLXVLM/Models/LFM2VL.swift
+8 −9 Libraries/MLXVLM/Models/Mistral3.swift
+2 −1 Libraries/MLXVLM/Models/MuseGlimmer.swift
+2 −1 Libraries/MLXVLM/Models/Qwen25VL.swift
+7 −6 Libraries/MLXVLM/Models/Qwen2VL.swift
+3 −10 Libraries/MLXVLM/Models/Qwen3VL.swift
+2 −1 Libraries/MLXVLM/Models/SmolVLM2.swift
+6 −3 Libraries/MLXVLM/README.md
+1 −1 Libraries/MLXVLM/VLMModelFactory.swift
+10 −2 README.md
+19 −4 Tests/MLXFoundationModelsTests/AllowedToolOutputRouterTests.swift
+280 −0 Tests/MLXFoundationModelsTests/AttachmentLabelValidatorTests.swift
+85 −0 Tests/MLXFoundationModelsTests/ToolCallingConversionsTests.swift
+166 −26 Tests/MLXFoundationModelsTests/TranscriptConverterTests.swift
+16 −15 Tests/MLXFoundationModelsTests/VisionCapabilityGateTests.swift
+2 −2 Tests/MLXLMTests/CancellationTests.swift
+7 −7 Tests/MLXLMTests/ContinuationAssertions.swift
+26 −0 Tests/MLXLMTests/EvalTests.swift
+2 −1 Tests/MLXLMTests/GlmOcrContinuationTests.swift
+2,069 −2,034 Tests/MLXLMTests/KVCacheTests.swift
+100 −0 Tests/MLXLMTests/LabeledImageGeneratorTests.swift
+91 −0 Tests/MLXLMTests/MatmulPrecision.swift
+176 −0 Tests/MLXLMTests/MessageContentPartsTests.swift
+1 −1 Tests/MLXLMTests/NanbeigeTests.swift
+30 −0 Tests/MLXLMTests/NemotronHTests.swift
+2 −2 Tests/MLXLMTests/Qwen35ContinuationTests.swift
+41 −0 Tests/MLXLMTests/Qwen35FusedGDNProjectionTests.swift
+13 −2 Tests/MLXLMTests/Qwen35MTPTests.swift
+18 −0 Tests/MLXLMTests/Qwen35SanitizeTests.swift
+2 −2 Tests/MLXLMTests/Qwen3VLContinuationTests.swift
+127 −0 Tests/MLXLMTests/RerankerTests.swift
+11 −6 Tests/MLXLMTests/RoPEApplicationTests.swift
+11 −4 Tests/MLXLMTests/SSMTests.swift
+143 −0 Tests/MLXLMTests/SpecialTokenLabelScreenTests.swift
+2 −0 Tests/MLXLMTests/TokenIteratorClearCacheTests.swift
+4 −2 Tests/MLXLMTests/TurboQuantTests.swift
+72 −0 Tests/MLXLMTests/UserInputAudioTests.swift
+69 −0 Tests/MLXLMTests/UserInputImageTests.swift
+88 −0 Tests/MLXLMTests/UserInputVideoTests.swift
+114 −0 Tests/MLXLMTests/VLMImageTokenMismatchTests.swift
+29 −20 skills/mlx-swift-lm/SKILL.md
+10 −3 skills/mlx-swift-lm/references/concurrency.md
+78 −50 skills/mlx-swift-lm/references/embeddings.md
+8 −0 skills/mlx-swift-lm/references/generation.md
+2 −2 skills/mlx-swift-lm/references/lora-adapters.md
+27 −23 skills/mlx-swift-lm/references/model-container.md
+2 −2 skills/mlx-swift-lm/references/model-porting.md
+22 −19 skills/mlx-swift-lm/references/supported-models.md
+38 −15 skills/mlx-swift-lm/references/tokenizer-chat.md
+7 −2 skills/mlx-swift-lm/references/tool-calling.md
+24 −16 skills/mlx-swift-lm/references/training.md
+6 −2 skills/mlx-swift-lm/references/wired-memory.md
4 changes: 2 additions & 2 deletions tests/SwiftBuddyTests/VLMExtractionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class VLMExtractionTests: XCTestCase {
let images = message.extractImages()
XCTAssertEqual(images.count, 1)

if case let .ciImage(image) = images.first {
if case .ciImage(let image)? = images.first?.source {
XCTAssertNotNil(image)
XCTAssertEqual(image.extent.width, 1)
XCTAssertEqual(image.extent.height, 1)
Expand All @@ -44,7 +44,7 @@ final class VLMExtractionTests: XCTestCase {
let images = message.extractImages()
XCTAssertEqual(images.count, 1)

if case let .url(url) = images.first {
if case .url(let url)? = images.first?.source {
XCTAssertEqual(url.absoluteString, "https://example.com/test.jpg")
} else {
XCTFail("Expected .url, got \(String(describing: images.first))")
Expand Down
Loading