forked from mzbac/flux.swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
37 lines (35 loc) · 1.09 KB
/
Package.swift
File metadata and controls
37 lines (35 loc) · 1.09 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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "flux.swift",
platforms: [.macOS(.v14), .iOS(.v16)],
products: [
.library(
name: "FluxSwift",
targets: ["FluxSwift"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"),
.package(url: "https://github.com/huggingface/swift-transformers", from: "1.1.6"),
.package(url: "https://github.com/ml-explore/mlx-swift", from: "0.30.3"),
],
targets: [
.target(
name: "FluxSwift",
dependencies: [
.product(name: "MLX", package: "mlx-swift"),
.product(name: "MLXFast", package: "mlx-swift"),
.product(name: "MLXNN", package: "mlx-swift"),
.product(name: "MLXOptimizers", package: "mlx-swift"),
.product(name: "MLXRandom", package: "mlx-swift"),
.product(name: "Transformers", package: "swift-transformers"),
.product(name: "Logging", package: "swift-log"),
]
),
.testTarget(
name: "FluxSwiftTests",
dependencies: ["FluxSwift"],
path: "Tests"
),
]
)