CoolFace
Modelpublic

smdesai/canary-1b-v2-pal6-coreml

sourceHugging Facecc-by-4.0updated 18d agoView on Hugging Face
0likes
Model Card

Canary 1B v2 — CoreML (6-bit palettized encoder, KV-cache)

Memory-optimized CoreML build of NVIDIA canary-1b-v2 for Apple silicon: the encoder's weights are k-means palettized to 6 bits (per grouped channel, 16 channels per lookup table) and decompressed in flight on the Apple Neural Engine. Smaller than the INT8-encoder build (canary-1b-v2-int8-coreml) with accuracy matching the FP16 reference build (canary-1b-v2-coreml). Decoder and cross-KV stay FP16.

Base model: nvidia/canary-1b-v2 (NVIDIA NeMo EncDecMultiTaskModel, 1B parameters, 25 European languages, ASR + speech translation). License: the base model is released under CC-BY-4.0; this conversion carries the same license. Please attribute NVIDIA for the model.

This build

Encoder6-bit k-means palette, 16-channel groups; Neural Engine-resident, 614 MB on disk, ~0.63 GB resident
Decoder / cross-KVFP16 (unchanged), 271 MB + 34 MB
Download0.92 GB
iOS RAM while transcribing1.0 GB (measured) vs 1.9 GB for the FP16 build
Encoder latency~43 ms per 15 s window (M3 Max, warm; ~7 ms slower than INT8 because of the lookup-table decode); first-load Neural Engine compile ~24 s vs ~14 s

Build family

All 1B v2 builds share the same preprocessor, tokenizer, package layout, and decode contract; only the weight format of the encoder and/or decoder differs. Download sizes are as hosted on the Hub; iOS RAM was measured in an app while transcribing a 6-minute file.

RepoBuildEncoder weightsDecoder weightsDownloadiOS RAM
`canary-1b-v2-coreml`FP16 (reference)FP16FP161.89 GB1.9 GB (measured)
`canary-1b-v2-int8-coreml`INT8 encoderINT8 per-channelFP161.10 GB1.2 GB (measured)
`canary-1b-v2-pal6-coreml` (this repo)6-bit encoder6-bit palette, g=16FP160.92 GB1.0 GB (measured)
`canary-1b-v2-int8full-coreml`INT8 fullINT8 per-channelINT8 per-channel0.95 GB1.0 GB (measured)
`canary-1b-v2-pal6-int8-coreml`6-bit + INT86-bit palette, g=16INT8 per-channel0.77 GB910 MB (measured)
`canary-180m-flash-coreml`180M FlashFP16 (17L, d=512)FP16 (4L)0.37 GB470 MB (measured)

Files

FileContents
canary_preprocessor.mlmodelcFP32 mel front end (128 mel bins, 16 kHz mono, 15 s window)
canary_encoder.mlmodelcFastConformer encoder, 32 layers, d=1024, subsampling 8
canary_cross_kv.mlmodelcCross-attention K/V projection, 8 layers (run once per window)
canary_decoder_kv.mlmodelcStateful single-step Transformer decoder, 8 layers, 16384-way LM head
canary_spe.modelSentencePiece tokenizer (16384 pieces)
metadata.jsonShapes, decode geometry, seed tokens, and the weight recipe of this build

Credits

Model: NVIDIA NeMo team, canary-1b-v2, CC-BY-4.0.