Downloads · 30 days
2
6% of all-time downloads
Muesli-HQ/canary-qwen-2.5b-coreml-static
canary-qwen-2.5b-coreml-static is a machine learning model from Muesli-HQ. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Static-shape prefill/decode CoreML models for the decoder component of nvidia/canary-qwen-2.5b, targeting Apple Silicon (ANE/GPU) inference in dictation apps.
Downloads · 30 days
2
6% of all-time downloads
All-time downloads
32
Public
Repo size
5.6 GB
Likes
0
Public
Click a slice to open those files.
.bin5.6 GB · 100%
From the Hugging Face model README
Static-shape prefill/decode CoreML models for the decoder component of nvidia/canary-qwen-2.5b, targeting Apple Silicon (ANE/GPU) inference in dictation apps.
coreml-int8 (dynamic, shipped) | coreml-static (this repo) | |
|---|---|---|
| Decoder graph | Flexible query length via RangeDim | Fixed-shape prefill (164 tokens) + single-token decode |
| Prompt handling | Dynamic prompt length, CoreML specializes at runtime | Baked-in for Muesli/Swift prompt shape (33 text + 126 audio + 5 text = 164) |
| Cache update | Slice assignment with dynamic end-step | One-hot mask scatter (CoreML-friendly, no dynamic indexing) |
| Quantization | INT8 (W8A8) | FP32 (not yet quantized) |
| Cold start | Slower — CoreML must specialize the flexible graph on first run | Faster — shapes are fixed, no specialization needed |
| Use case | General-purpose, any prompt shape | Dictation-optimized for a known prompt/audio regime |
The flexible RangeDim decoder caused CoreML cold-start specialization pain and
earlier lowering failures. Static prefill+decode graphs are much more
CoreML-friendly for a fixed dictation prompt/audio regime. The trade-off is that
if the Swift prompt structure changes, the models need to be re-traced.
canary_prefill_static.mlpackage/ — Fixed-shape prefill (164 tokens)
canary_decode_static.mlpackage/ — Fixed-shape single-token decode with KV cache
| Name | Shape | Type |
|---|---|---|
hidden_states | [1, 164, 2048] | float32 |
| Name | Shape | Type |
|---|---|---|
hidden_states | [1, 1, 2048] | float32 |
cache_update_mask | [1, 256] | float32 (one-hot at current position) |
cache_valid_mask | [1, 256] | float32 (1.0 for valid cached positions) |
nvidia/canary-qwen-2.5b safetensorscoremltools 9.020260327-020004-static-prefill-164-sliceassign.copy_() pattern failed CoreML conversion)phequals/canary-qwen-2.5b-coreml-int8 — shipped dynamic-prompt INT8 versionphequals/canary-qwen-2.5b-coreml-fp16 — earlier dynamic-prompt FP16 version