spb/zyquo-local Public MIT
Native macOS AI chat that runs LLMs 100% locally on Apple Silicon with MLX — no cloud, no API keys.
Swift 97.2%
Shell 1.8%
Makefile 1%
1//2// LocalModel.swift3// Zyquo Local4//5// Author: Simon-Pierre Boucher6// Mail: contact@spboucher.ai7//89import Foundation1011/// A model installed on disk under the Models folder.12/// The one and only term for this concept is `LocalModel`.13struct LocalModel: Identifiable, Codable, Hashable, Sendable {14 /// Full repo ID, e.g. "mlx-community/Qwen3-8B-4bit". Also the identity.15 var repoID: String16 /// Absolute directory containing config.json + weights + tokenizer.17 var directory: URL18 /// Total size on disk in bytes.19 var sizeBytes: Int6420 /// `model_type` from config.json (architecture).21 var architecture: String?22 /// Quantization label parsed from the repo name ("4bit", "8bit", "bf16"…).23 var quantization: String?24 /// Context window (max_position_embeddings) from config.json.25 var contextWindow: Int?26 var lastUsed: Date?27 /// Per-model default generation parameters (overrides app defaults).28 var defaultParams: GenerationParams?2930 var id: String { repoID }3132 var organization: String {33 repoID.split(separator: "/").first.map(String.init) ?? ""34 }3536 var name: String {37 repoID.split(separator: "/").last.map(String.init) ?? repoID38 }39}40