Instructions to use Masterx/canary-180m-flash-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NeMo
How to use Masterx/canary-180m-flash-onnx with NeMo:
import nemo.collections.asr as nemo_asr asr_model = nemo_asr.models.ASRModel.from_pretrained("Masterx/canary-180m-flash-onnx") transcriptions = asr_model.transcribe(["file.wav"]) - Notebooks
- Google Colab
- Kaggle
NVIDIA canary-180m-flash β DirectML-safe ONNX
ONNX export of nvidia/canary-180m-flash 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-180m-flash-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-180m-flashNeMo 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-180m-flash-onnx β the DML crash was encoder-only; the AED decoder is byte-for-byte the same.
Produced by WinSTT's canary_encoder_export.py.
- Downloads last month
- 12
Model tree for Masterx/canary-180m-flash-onnx
Base model
nvidia/canary-180m-flash