Instructions to use Retrieve0/Qwen3-ForcedAligner-0.6B-TensorRT-Decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use Retrieve0/Qwen3-ForcedAligner-0.6B-TensorRT-Decoder with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Add aligner decoder window ONNX (bf16 and fp16)
Browse filesFiles changed (6)
32 unmodified lines333435363732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textaligner-decoder-window.bf16.onnx.data filter=lfs diff=lfs merge=lfs -textaligner-decoder-window.fp16.onnx.data filter=lfs diff=lfs merge=lfs -text12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182---license: apache-2.0base_model: Qwen/Qwen3-ForcedAligner-0.6Blibrary_name: onnxruntimepipeline_tag: automatic-speech-recognitiontags:- qwen3-asr- tensorrt- onnx- bf16- fp16- forced-alignment---
# Qwen3-ForcedAligner 0.6B TensorRT Decoder
ONNX exports of the forced aligner text decoder from[Qwen/Qwen3-ForcedAligner-0.6B](https://huggingface.co/Qwen/Qwen3-ForcedAligner-0.6B),prepared for TensorRT. The graph takes pre-built `inputs_embeds` (audio embeddingsalready merged) and `ts_positions`, gathers the hidden states at the timestamppositions and applies the 5,000-row classification head there, so the wholedecoder is a single forward pass with no KV cache.
Use it with the [aligner encoder export](https://huggingface.co/Retrieve0/Qwen3-ForcedAligner-0.6B-TensorRT-Encoder)and the [Qwen3-ASR-TensorRT repository](https://github.com/lost0427/Qwen3-ASR-TensorRT),which integrates the pipeline.
## Files
| Precision | Files | Use || --- | --- | --- || BF16 | `aligner-decoder-window.bf16.onnx`, `aligner-decoder-window.bf16.onnx.data` | Reference export for GPUs with BF16 support || FP16 | `aligner-decoder-window.fp16.onnx`, `aligner-decoder-window.fp16.onnx.data` | Compatibility export for older NVIDIA GPUs |
The `window` profile accepts up to 1024 tokens and 256 timestamp slots, which is36 s of audio and 128 words. TensorRT `.engine` files are not included becausethey depend on the target GPU architecture and TensorRT build environment.
## Build
Engines are built locally for the target GPU. Without Python:
```powershellbuild-engine.exe --onnx aligner-decoder-window.bf16.onnx --out aligner-decoder-window.bf16.engine```
`build-engine.exe` is published in the project's `native-v*` releases and picksthe aligner decoder profile from the input names. With the Python runtime:
```powershelluv run qwen3-asr build-aligner --preset window```
## Requirements
- NVIDIA GPU and CUDA- Reference environment: CUDA 12.8, TensorRT 11.4.0.106, Python 3.10–3.13- [Qwen3-ASR-TensorRT](https://github.com/lost0427/Qwen3-ASR-TensorRT) for the encoder/decoder integration
Windows is tested and supported. Linux should work with compatible CUDA,TensorRT, and PyTorch packages.
## License and citation
This export is derived from `Qwen/Qwen3-ForcedAligner-0.6B` and is publishedunder Apache-2.0. Retain the upstream attribution and license, and cite theQwen3-ASR work and the runtime project.
## 中文
本仓库提供 [Qwen/Qwen3-ForcedAligner-0.6B](https://huggingface.co/Qwen/Qwen3-ForcedAligner-0.6B)强制对齐文本解码器的 ONNX 导出。输入是已经拼好音频嵌入的 `inputs_embeds` 和`ts_positions`,图内只在时间戳位置取隐状态并接分类头,因此整条解码是一次前向、没有 KV cache。
配套使用 [aligner encoder 导出](https://huggingface.co/Retrieve0/Qwen3-ForcedAligner-0.6B-TensorRT-Encoder)和 [Qwen3-ASR-TensorRT 仓库](https://github.com/lost0427/Qwen3-ASR-TensorRT)。
`window` 档最多 1024 个 token、256 个时间戳槽位,对应 36 秒音频、128 个词。本仓库不提供 `.engine`,因为它依赖目标 GPU 架构和 TensorRT 构建环境;请用`build-engine.exe` 或 `qwen3-asr build-aligner --preset window` 本地构建。123version https://git-lfs.github.com/spec/v1oid sha256:aa56d615fb9567a97e03633848e7f161076b1c8c328765392f25a4a1e323496bsize 5278758123version https://git-lfs.github.com/spec/v1oid sha256:30f36d77628e20ae264d7e08a2392226b8229293833d8ec05b4a0a541f95cc9esize 891160576123version https://git-lfs.github.com/spec/v1oid sha256:5538c9faa875f15d4d934205d9ba66f5f8764080f050cc8ba5879dd9def2132asize 5278641123version https://git-lfs.github.com/spec/v1oid sha256:2544c572b97c53f14ba09d385edd551501f697538498f00ed5286f1cc152f5efsize 891160576.gitattributes+2
README.mdAdded+82
aligner-decoder-window.bf16.onnxAdded+3
aligner-decoder-window.bf16.onnx.dataAdded+3
aligner-decoder-window.fp16.onnxAdded+3
aligner-decoder-window.fp16.onnx.dataAdded+3