harshav/ARK-ASR-3B-CoreAI
ARK-ASR-3B Core AI
Apple Core AI conversions of Audio8/ARK-ASR-3B, made from source revision 1e28271b79edc97635783bea65abc89195a09ed3.
ARK-ASR combines a Whisper-style audio encoder, an MLP adapter, and a Qwen2.5 decoder. These files use Apple's Core AI runtime (macOS 27+); they are not GGUF and are not compatible with llama.cpp, whisper.cpp, or Apple's CoreAISpeech bundle layout. For GGUF runtimes see harshav/ARK-ASR-3B-GGUF.
Artifact forms
The decoder is one unified bundle: prefill + decode entrypoints share a single weight copy, with the KV cache externalized and threaded host-side.
Runtime
coreai-arkasr-conversion.tar.gz is the complete conversion and verification toolkit used to produce and gate these artifacts (SHA-256: 8a24d7069ec64462703986445af5841541e626235cf03c53ece8d3aefc08d77f), including the port's STATE.md with full reproduction steps:
tar -xzf coreai-arkasr-conversion.tar.gz && cd ark_asr
uv run --python 3.12 make_oracle.py --audio <16k.wav>
uv run --python 3.12 --with-editable <coreai-models>/python export_encoder.py --dtype float16
uv run --python 3.12 --with-editable <coreai-models>/python export_unified.py --mode int8 --cache-len 1024 --static-prefill
uv run --python 3.12 gate_static.py --unified --mode int8 --cache-len 1024The reference client is VoiceInk (Transcription/CoreAI/): mel frontend, prompt splicing (vocabSize + slot audio injection), host KV cache, greedy decode. runtime_config.json, mel_filters.f32, and the tokenizer files are the exact inputs that client consumes. Audio input is 16 kHz mono.
Files
encoder.aimodel/ fp16 Whisper tower + MLP adapter
encoder.h16c.aimodelc/ AOT-compiled encoder (h16c / M4 Max only)
decoder.aimodel/ int8 static unified prefill+decode
decoder.h16c.aimodelc/ AOT-compiled decoder (h16c / M4 Max only)
runtime_config.json prompt/config constants for clients
mel_filters.f32 exact slaney mel filterbank from ARK's feature extractor
tokenizer*.json, vocab.json, merges.txt, added_tokens.json, special_tokens_map.json
coreai-arkasr-conversion.tar.gz conversion + gate toolkitDo not recompute the mel filterbank: Whisper uses slaney-scaled normalized triangles (peak ≈ 0.042), and the textbook HTK formula diverges by ~24x, which measurably corrupts transcription. Use mel_filters.f32 as shipped.
Local validation
Gated on an Apple M4 Max (h16c), macOS 27.0 (26A5388g), coreai-core 1.0.0b2, coreai-torch 0.4.1, against an fp32 PyTorch golden of the official model. The pass condition is exact token-for-token equality, not similarity.
Performance on the same machine (12.75 s clip):
Architecture note: ARK decodes autoregressively through a 36-layer 3B LLM, so ~52 ms/token is a bandwidth floor every framework hits, GGUF/llama.cpp included. Purpose-built ASR models (e.g. Cohere Transcribe) are structurally faster for short dictation.
Long audio
The model is a fixed 30-second-window architecture: the official feature extractor pads or trims mel to 3000 frames, and a 33.5 s probe confirms the reference implementation truncates at the window edge. Longer audio is a host-side concern — window the input (the GGUF runtime in harshav/ARK-ASR-3B-GGUF overlaps windows by 2 s and stitches) and concatenate transcripts.
License and attribution
The original model is Apache-2.0 licensed. See the official model card and AutoArk repository for architecture, training, and upstream attribution.
