-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
97 lines (96 loc) · 4.11 KB
/
Package.swift
File metadata and controls
97 lines (96 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// swift-tools-version: 5.12
import PackageDescription
let package = Package(
name: "SHLLM",
platforms: [.iOS(.v17), .macCatalyst(.v17), .macOS(.v14)],
products: [
.library(
name: "SHLLM",
targets: ["SHLLM"]
),
],
dependencies: [
.package(
url: "https://github.com/apple/swift-async-algorithms",
from: "1.1.1"
),
.package(
url: "https://github.com/shareup/mlx-swift-lm",
from: "0.0.14"
),
.package(
url: "https://github.com/DePasqualeOrg/swift-tokenizers",
from: "0.2.1"
),
.package(
url: "https://github.com/shareup/synchronized.git",
from: "4.0.1"
),
],
targets: [
.target(
name: "SHLLM",
dependencies: [
.product(name: "AsyncAlgorithms", package: "swift-async-algorithms"),
.product(name: "MLXLLM", package: "mlx-swift-lm"),
.product(name: "MLXLMCommon", package: "mlx-swift-lm"),
.product(name: "MLXVLM", package: "mlx-swift-lm"),
.product(name: "Tokenizers", package: "swift-tokenizers"),
.product(name: "Synchronized", package: "synchronized"),
],
// resources: [
// .copy("Resources/DeepSeek-R1-Distill-Qwen-7B-4bit"),
// .copy("Resources/gemma-2-2b-it-4bit"),
// .copy("Resources/gemma-3-12b-it-qat-3bit"),
// .copy("Resources/gemma-3-12b-it-qat-4bit"),
// .copy("Resources/gemma-3-1b-it-qat-4bit"),
// .copy("Resources/gemma-3-27b-it-qat-3bit"),
// .copy("Resources/gemma-3-27b-it-qat-4bit"),
// .copy("Resources/gemma-3-4b-it-qat-3bit"),
// .copy("Resources/gemma-3-4b-it-qat-4bit"),
// .copy("Resources/gpt-oss-20b-MLX-8bit"),
// .copy("Resources/gpt-oss-20b-MXFP4-Q4"),
// .copy("Resources/LFM2-8B-A1B-4bit"),
// .copy("Resources/Llama-3.2-1B-Instruct-4bit"),
// .copy("Resources/Llama-3.2-3B-Instruct-4bit"),
// .copy("Resources/Devstral-Small-2-24B-Instruct-2512-4bit"),
// .copy("Resources/Ministral-3-14B-Instruct-2512-6bit"),
// .copy("Resources/Mistral-7B-Instruct-v0.3-4bit"),
// .copy("Resources/Mistral-Nemo-Instruct-2407-4bit"),
// .copy("Resources/NVIDIA-Nemotron-3-Nano-30B-A3B-4bit"),
// .copy("Resources/OpenELM-270M-Instruct"),
// .copy("Resources/Phi-3.5-mini-instruct-4bit"),
// .copy("Resources/Phi-3.5-MoE-instruct-4bit"),
// .copy("Resources/Qwen1.5-0.5B-Chat-4bit"),
// .copy("Resources/Qwen2.5-1.5B-Instruct-4bit"),
// .copy("Resources/Qwen2.5-7B-Instruct-4bit"),
// .copy("Resources/Orchestrator-8B-4bit"),
// .copy("Resources/Qwen3-0.6B-4bit"),
// .copy("Resources/Qwen3-1.7B-4bit"),
// .copy("Resources/Qwen3-30B-A3B-4bit"),
// .copy("Resources/Qwen3-4B-4bit"),
// .copy("Resources/Qwen3-8B-4bit"),
// .copy("Resources/Qwen3-VL-2B-Instruct-4bit"),
// .copy("Resources/Qwen3-VL-2B-Thinking-4bit"),
// .copy("Resources/Qwen3-VL-4B-Instruct-4bit"),
// .copy("Resources/Qwen3-VL-4B-Thinking-4bit"),
// .copy("Resources/Qwen3.5-2B-6bit"),
// .copy("Resources/Qwen3.5-4B-MLX-4bit"),
// .copy("Resources/Qwen3.5-9B-4bit"),
// .copy("Resources/Qwen3.5-27B-4bit"),
// .copy("Resources/Qwen3.5-35B-A3B-4bit"),
// ],
linkerSettings: [
.linkedFramework("CoreGraphics", .when(platforms: [.macOS])),
]
),
.testTarget(
name: "SHLLMTests",
dependencies: ["SHLLM"],
resources: [
.copy("Resources/3-authentication-factors.png"),
]
),
],
cxxLanguageStandard: .cxx17
)