CoolFace
Modelpublic

BarathwajAnandan/cohere-transcribe-03-2026-CoreML-6bit

sourceHugging Facegpl-3.0updated 6mo agoView on Hugging Face
7likes4.8kdownloads
Model Card

Cohere Transcribe 03-2026 - CoreML (6-bit Palettized)

This is a CoreML conversion of CohereLabs/cohere-transcribe-03-2026 with 6-bit palettization for on-device speech recognition on Apple Silicon (macOS / iOS).

Model Details

PropertyValue
Base modelCohereLabs/cohere-transcribe-03-2026
FormatCoreML .mlpackage
PrecisionFloat16 + 6-bit palettized weights
Compression2.7× smaller than FP16
Total size~1.4 GB
ComputeApple GPU (recommended), CPU, or Neural Engine
Min deploymentmacOS 13 / iOS 16

Benchmark Results

Accuracy — LibriSpeech test-clean

VariantSamplesWER vs Ground TruthSize
Palettize6 (this model)2619/2620 (full)2.58%1.4 GB
FP16 (baseline)2002.63%3.8 GB
Palettize82002.65%1.85 GB

Speed — Apple M4 Pro, GPU compute

MetricValue
Real-time factor35.9× real-time
30s audio inference~836 ms

Files

FileSizeDescription
cohere_frontend.mlpackage1.5 MBAudio feature extraction (pre-emphasis + mel spectrogram)
cohere_encoder.mlpackage1.3 GBEncoder (audio → hidden states)
cohere_decoder_fullseq_masked.mlpackage109 MBFull-sequence decoder (first token)
cohere_decoder_cached.mlpackage109 MBKV-cached decoder (autoregressive generation)
coreml_manifest.json292 KBPipeline config (tokenizer, chunking, dimensions)

Usage

Swift CLI

bash
pure_coreml_asr_cli \
  --audio input.wav \
  --artifacts-dir <path-to-this-repo> \
  --compute gpu \
  --decoder-mode cached

Swift App Integration

  1. 1.Add all .mlpackage files to your Xcode project
  2. 2.Load coreml_manifest.json at runtime for tokenizer IDs and pipeline config
  3. 3.Use MLModel with .computeUnits = .cpuAndGPU for best performance
  4. 4.Process audio in 30-second chunks with 5-second overlap (params in manifest)

Pipeline Architecture

Audio → Frontend (mel spectrogram) → Encoder → Decoder (autoregressive) → Text

The decoder runs in two phases:

  1. 1.Full-sequence masked decoder generates the first token from encoder output
  2. 2.KV-cached decoder generates subsequent tokens autoregressively

Compression Details

6-bit palettization clusters each weight tensor into 2⁶ = 64 centroids via k-means, storing only 6-bit indices + a small lookup table. This achieves 2.7× compression over FP16 with virtually no accuracy or speed loss on Apple GPU.

Applied to: encoder, full-sequence decoder, and cached decoder. The frontend remains FP32 (tiny model, no benefit from compression).

License

This converted model is released under GPL-3.0.

The upstream base model, CohereLabs/cohere-transcribe-03-2026, is Apache-2.0 licensed. This repo contains the CoreML conversion and quantized derivative artifacts.