CoolFace
Modelpublic

MarkChen1214/cohere-transcribe-03-2026-CoreML-INT4

sourceHugging Facegpl-3.0updated 6mo agoView on Hugging Face
0likes26downloads
Model Card

Cohere Transcribe 03-2026 — CoreML INT4 Fused

A highly compressed CoreML conversion of CohereLabs/cohere-transcribe-03-2026 with INT4 quantization and fused mel+encoder pipeline. Designed for on-device deployment on macOS/iOS with Apple Neural Engine and GPU acceleration.

Key Metrics

MetricValue
Size1.1 GB (vs 8.2 GB FP16 CoreML — 7.5x smaller)
Composite WER (25-sample fast)4.29%
RTFx7.8x real-time
Compute unitsCPU + GPU (required — CPU-only breaks int4 numerics)
Min macOS14.0+ (explicit KV-cache mode)

Architecture

Three CoreML .mlpackage files forming a complete ASR pipeline:

FileSizeDescription
cohere_fused_mel_encoder_c4_mixed_int4.mlpackage963 MBFused mel spectrogram + FastConformer encoder (INT4)
cohere_decoder_prefill_cached_c4_mixed.mlpackage81 MBDecoder prefill with explicit KV-cache (INT4 linear, INT8 embeddings)
cohere_decoder_decode_cached_c4_mixed.mlpackage74 MBAutoregressive decoder with explicit KV-cache (INT4 linear, INT8 embeddings)
cohere_transcribe_coreml_metadata.json1.3 KBPipeline config (dimensions, prompt IDs, compression policy)
tokenizer.model481 KBSentencePiece tokenizer

Compression Policy

Encoder

  • —Default: INT4 per-channel linear symmetric
  • —Softened: pre_encode_* layers → INT8 (protects mel frontend STFT/filterbank)
  • —Weight threshold: 500K params (smaller tensors kept FP16)
  • —Skipped: Non-linear conv constants (48 tensors, ~46M elements)

Decoder

  • —Default: INT4 per-channel linear symmetric
  • —Softened: Token embedding + position embedding → INT8
  • —Weight threshold: 16K params
  • —Skipped: Bias vectors below threshold

Pipeline Details

PropertyValue
Decoder modeexplicit_kv_cache (macOS 14+)
Mel frontendFused into encoder graph
Max audio480,000 samples (30 seconds @ 16kHz)
Encoder output438 frames
Max sequence512 tokens
Decoder layers8
Attention heads8
Head dim128
Metadata version2

Usage (Swift)

swift
// Load models
let encoder = try MLModel(contentsOf: encoderURL, configuration: config)
let decoderPrefill = try MLModel(contentsOf: prefillURL, configuration: config)
let decoderDecode = try MLModel(contentsOf: decodeURL, configuration: config)

// config.computeUnits = .cpuAndGPU  // Required for INT4

See cohere_transcribe_coreml_metadata.json for full pipeline configuration including prompt IDs, dimensions, and compression policy.

License

GPL-3.0 — see LICENSE.

The base model (CohereLabs/cohere-transcribe-03-2026) is Apache 2.0.