SPB Git

spb/zyquo-mlx Public MIT

The local MLX foundry for your Mac — run, fine-tune, quantize, and ship models. Nothing leaves your machine.

Swift 93.4% Python 3.8% Makefile 2.2% Shell 0.5%
1.9 KB · 50 lines swift
Raw Blame History
1// swift-tools-version: 5.92//3//  Package.swift4//  Zyquo MLX5//6//  Author: Simon-Pierre Boucher7//  Mail: contact@spboucher.ai8//910import PackageDescription1112let package = Package(13    name: "ZyquoMLX",14    platforms: [15        .macOS(.v14)16    ],17    dependencies: [18        // Versions pinned per docs/MLX-RESEARCH.md §8 (verified 2026-07-30).19        // Released tags only — mlx-swift main requires an experimental toolchain.20        .package(url: "https://github.com/ml-explore/mlx-swift", .upToNextMinor(from: "0.31.6")),21        .package(url: "https://github.com/ml-explore/mlx-swift-lm", .upToNextMajor(from: "3.31.4")),22        .package(url: "https://github.com/huggingface/swift-huggingface", from: "0.9.0"),23        .package(url: "https://github.com/huggingface/swift-transformers", from: "1.3.0"),24    ],25    targets: [26        .executableTarget(27            name: "ZyquoMLX",28            dependencies: [29                .product(name: "MLX", package: "mlx-swift"),30                .product(name: "MLXNN", package: "mlx-swift"),31                .product(name: "MLXOptimizers", package: "mlx-swift"),32                .product(name: "MLXRandom", package: "mlx-swift"),33                .product(name: "MLXLMCommon", package: "mlx-swift-lm"),34                .product(name: "MLXLLM", package: "mlx-swift-lm"),35                .product(name: "MLXVLM", package: "mlx-swift-lm"),36                .product(name: "MLXEmbedders", package: "mlx-swift-lm"),37                .product(name: "MLXHuggingFace", package: "mlx-swift-lm"),38                .product(name: "HuggingFace", package: "swift-huggingface"),39                .product(name: "Tokenizers", package: "swift-transformers"),40            ],41            path: "Sources/ZyquoMLX",42            resources: [43                // Pinned Python helper scripts (PyBridge) — versioned with the44                // app, never fetched remotely (docs/BUILD.md §3.4).45                .copy("PyBridge/scripts")46            ]47        )48    ]49)50