Zum Inhalt springen
ModelAufgelistetExtern
Browse files

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).

ArtOtherBasismodellnvidia/canary-1b-v2VersionRevision f223cdfCBewertung

Modellquelle

Art
Other
Dateigröße
1,20 MB–1,53 GB
Basismodell
nvidia/canary-1b-v2
Version
vRevision f223cdf
Aktualisiert
26. Sept. 2026
Downloads
5
Quelle
Hugging Face

Quellenbeschreibung

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 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 — the DML crash was encoder-only; the AED decoder is byte-for-byte the same.

Produced by WinSTT's canary_encoder_export.py.

Quellen

1 Quelle
Hugging FacePrimärVersion f223cdf45416ceee7be1e99ea4b6357723462ea7
huggingface.co/Masterx/canary-1b-v2-onnx/tree/f223cdf45416ceee7be1e99ea4b6357723462ea7

Verifiziert 6. Sept.

Download files

Modellartefakte

9 Artefakte

cross-kv-model.int8.onnx

onnx · 16,1 MB · SHA-256 5008b839756e…dfd3 · Hugging Face

Download file

cross-kv-model.onnx

onnx · 64,1 MB · SHA-256 9576f719e09b…a8fd · Hugging Face

Download file

decoder-kv-model.int8.onnx

onnx · 146 MB · SHA-256 b85fb6a36604…1e99 · Hugging Face

Download file

decoder-kv-model.onnx

onnx · 581 MB · SHA-256 42ef68c134b8…739c · Hugging Face

Download file

decoder-model.int8.onnx

onnx · 162 MB · SHA-256 52d83aa7aad4…9abf · Hugging Face

Download file

decoder-model.onnx

onnx · 645 MB · SHA-256 962dc77709f3…9a72 · Hugging Face

Download file

encoder-model.fp16.onnx

onnx · 1,53 GB · SHA-256 f4e6c8d48100…e843 · Hugging Face

Download file

encoder-model.int8.onnx

onnx · 817 MB · SHA-256 9c0c85ef3181…8c06 · Hugging Face

Download file

encoder-model.onnx

onnx · 1,20 MB · SHA-256 a679e3b6335e…655d · Hugging Face

Download file

Quellenauszüge

2 Auszüge

--- 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