Views
No views yet
coreai-torch (LLMs: coreai.llm.export) into .aimodel bundles that run on the GPU or the Neural Engine, e.g. Qwen3-8B 4-bit decodes at 94 tok/s on an M4 Max GPU, MLX 90 under the same protocol (apple-silicon-llm-bench, macOS 27 beta, 2026-06).{lang}<asr_text>{text} output). ≤30 s clips,
52 languages, automatic language detection.import CoreAIOps; no session, no model plumbing, downloads on first use):let text = try await CoreAI.transcribe(audioURL, options: .model("qwen3-asr-1.7b"))1git clone https://github.com/john-rocky/coreai-kit
2open coreai-kit/Examples/Transcribe/Transcribe.xcodeproj
3# → Run, then pick "Qwen3-ASR 1.7B" in the model picker
4
5# agents / headless (macOS):
6cd coreai-kit/Examples/Transcribe
7swift run transcribe-cli --model qwen3-asr-1.7b --audio sample.wav1import CoreAIKit
2
3let transcriber = try await KitTranscriber(catalog: "qwen3-asr-1.7b")
4let samples = try AudioFile.pcm16kMono(url) // any wav/m4a/mp3 → 16 kHz mono Float
5let result = try await transcriber.transcribe(samples: samples)
6// result.text, result.language (52 languages)Examples/Transcribe/Sources/QuickStart.swift
— this exact code as one typed function, no UI; both the runner's GUI and its CLI call it.
Recording? MicRecorder (kit API) captures mic audio as 16 kHz mono [Float] — the record
button and permission prompt are your app's own chrome.https://github.com/john-rocky/coreai-kit → product CoreAIKitNSMicrophoneUsageDescription — only if you recorddownloadProgress callback)KitASRModel:1let asr = try await KitASRModel(model: .qwen3ASR1_7B)
2let r = try await asr.transcribe(samples: pcm16kMono) // -> (language, text)gpu-pipelined/ holds the decoder bundle (*_decode_int8hu_n390_s1, int8) + the paired
AuT encoder (*_audio_encoder_fp16_k30, fp16). Same bundles on iOS and macOS.