Gemma 4 26B-A4B inference in ~2 GB of RAM on any M-series MacBook
Swift apple-silicongemmagemma4gemma4-26b-a4bgpgpullmllm-inferencelocal-aimacosmetalon-device-aion-device-llmswift
import Foundation
struct PersistenceLineageKey: Hashable, Sendable {
let conversationID: UUID
let epoch: UUID
let bindingGeneration: UInt64
}
/// The immutable inputs needed to persist one exchange in KV commit order.
struct CompletedTurnPersistence: Sendable {
let key: PersistenceLineageKey
let store: ConversationStore
let userText: String
let assistantText: String
let diagnostics: AppDiagnostics?
let sampling: ConversationSampling
let boundary: ConversationBoundary
let imageWrite: Task<TurnImageWriteOutcome, Never>?
}