Canary 1b v2 Onnx
ONNX export of nvidia/canary-1b-v2 whose encoder is re-exported in the TorchScript idiom (torch.onnx.export(dynamo=False)), so the model runs on the ONNX Runtime DirectML EP (and every other EP).
Source du modèle
- Type
- Other
- Taille du fichier
- 1,20 MB–1,53 GB
- Modèle de base
- nvidia/canary-1b-v2
- Version
- vRevision f223cdf
- Mis à jour
- 26 sept. 2026
- Téléchargements
- 5
- Source
- Hugging Face
Description de la source
NVIDIA canary-1b-v2 — DirectML-safe ONNX
ONNX export of nvidia/canary-1b-v2 whose encoder is re-exported
in the TorchScript idiom (torch.onnx.export(dynamo=False)), so the model runs on the ONNX Runtime
DirectML EP (and every other EP).
Why
istupakov's canary-1b-v2-onnx encoder is a torch-dynamo export. On the DirectML EP it is a two-sided
trap (isolated by graph bisection): dynamic shapes crash the Reshape/attention kernels
(MLOperatorAuthorImpl.cpp:2597, then a D3D12 device-removal 887A0020), and forcing static shapes
fails session creation in InferAndVerifyOutputSizes (:2853) — both unfixed ORT-DML defects around
the dynamo view idiom (upstream onnxruntime #26826 / #26944; the DML EP is in maintenance mode).
NVIDIA's Parakeet FastConformer, exported via TorchScript, runs fine on DML — so this repo re-exports
the same encoder the same way.
What changed
encoder-model.onnx(+encoder-model.int8.onnx): re-exported from thenvidia/canary-1b-v2NeMo checkpoint viatorch.onnx.export(dynamo=False, opset=17), same I/O contract as istupakov (audio_signal[B,128,T],length[B]→encoder_embeddings[B,S,1024],encoder_mask[B,S]). Numerically identical to istupakov's encoder on CPU (max|Δ| ≈ 4e-6 — export-tracer float noise).decoder-model.onnx/decoder-model.int8.onnx/config.json/vocab.txt: unchanged from istupakov/canary-1b-v2-onnx — the DML crash was encoder-only; the AED decoder is byte-for-byte the same.
Produced by WinSTT's canary_encoder_export.py.
Sources
1 source
Sources
1 sourceVérifié 6 sept.
Download files
Artefacts du modèle
9 artefacts
Artefacts du modèle
9 artefactsExtraits de sources
2 extraits
Extraits de sources
2 extraits--- license: cc-by-4.0 language: - en - de - es - fr pipeline_tag: automatic-speech-recognition tags: - automatic-speech-recognition - onnx - directml - nemo - canary base_model: - nvidia/canary-1b-v2 --- # NVIDIA canary-1b-v2 — DirectML-safe ONNX ONNX export of [nvidia/canary-1b-v2](https://huggingface.co/nvidia/canary-1b-v2) whose **encoder is re-exported in the TorchScript idiom** (`torch.onnx.export(dynamo=False)`), so the model runs on the ONNX Runtime **DirectML EP** (and every other EP). ## Why istupakov's `canary-1b-v2-onnx` encoder is a torch-**dynamo** export. On the DirectML EP it is a two-sided trap (isolated by graph bisection): dynamic shapes crash the Reshape/attention kernels (`MLOperatorAuthorImpl.cpp:2597`, then a D3D12 device-removal `887A0020`), and forcing static shapes fails session creation in `InferAndVerifyOutputSizes` (`:2853`) — both unfixed ORT-DML defects around the dynamo `view` idiom (upstream onnxruntime #26826 / #26944; the DML EP is in maintenance mode). NVIDIA's Parakeet FastConformer, exported via TorchScript, runs fine on DML — so this repo re-exports the **same encoder** the same way. ## What changed - `encoder-model.onnx` (+ `encoder-model.int8.onnx`): re-exported from the `nvidia/canary-1b-v2` NeMo checkpoint via `torch.onnx.export(dynamo=False, opset=17)`, same I/O contract as istupakov (`audio_signal[B,128,T]`, `length[B]` → `encoder_embeddings[B,S,1024]`, `encoder_mask[B,S]`). Numerically identical to istupakov's encoder on CPU (max|Δ| ≈ 4e-6 — export-tracer float noise). - `decoder-model.onnx` / `decoder-model.int8.onnx` / `config.json` / `vocab.txt`: **unchanged** from [istupakov/canary-1b-v2-onnx](https://huggingface.co/istupakov/canary-1b-v2-onnx) — the DML crash was encoder-only; the AED decoder is byte-for-byte the same. Produced by [WinSTT](https://github.com/dahshury/WinSTT)'s `canary_encoder_export.py`.
Source context: 5 downloads · 0 likes · Pipeline automatic-speech-recognition · Library nemo · Repo Masterx/canary-1b-v2-onnx
