Skip to content

Commit f37f116

Browse files
committed
Add support for Gemma 3 Vision models
- Add Gemma 3 1B (text-only) and 4B, 12B, and 27B (vision models) - Add support for new tool-calling mechanism - Fix crash when models exceed output token count
1 parent 7a32678 commit f37f116

39 files changed

+1596
-822
lines changed

Package.resolved

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
),
1818
.package(
1919
url: "https://github.com/shareup/mlx-swift-examples",
20-
from: "0.0.7"
20+
from: "0.0.8"
2121
),
2222
.package(
2323
url: "https://github.com/huggingface/swift-transformers",
@@ -31,6 +31,7 @@ let package = Package(
3131
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
3232
.product(name: "MLXLLM", package: "mlx-swift-examples"),
3333
.product(name: "MLXLMCommon", package: "mlx-swift-examples"),
34+
.product(name: "MLXVLM", package: "mlx-swift-examples"),
3435
.product(
3536
name: "Transformers",
3637
package: "swift-transformers",
@@ -40,6 +41,10 @@ let package = Package(
4041
// resources: [
4142
// .copy("Resources/DeepSeek-R1-Distill-Qwen-7B-4bit"),
4243
// .copy("Resources/gemma-2-2b-it-4bit"),
44+
// .copy("Resources/gemma-3-1b-it-qat-4bit"),
45+
// .copy("Resources/gemma-3-4b-it-qat-4bit"),
46+
// .copy("Resources/gemma-3-12b-it-qat-4bit"),
47+
// .copy("Resources/gemma-3-27b-it-qat-4bit"),
4348
// .copy("Resources/Llama-3.2-1B-Instruct-4bit"),
4449
// .copy("Resources/Llama-3.2-3B-Instruct-4bit"),
4550
// .copy("Resources/Mistral-Nemo-Instruct-2407-4bit"),
@@ -62,7 +67,10 @@ let package = Package(
6267
),
6368
.testTarget(
6469
name: "SHLLMTests",
65-
dependencies: ["SHLLM"]
70+
dependencies: ["SHLLM"],
71+
resources: [
72+
.copy("Resources/3-authentication-factors.png"),
73+
]
6674
),
6775
]
6876
)

0 commit comments

Comments
 (0)