Granite Speech 4.1 2B NAR CUDA INT4 for Taurscribe
This repository contains a Taurscribe-optimized ONNX Runtime CUDA artifact derived from IBM's original ibm-granite/granite-speech-4.1-2b-nar model.
This is not a newly trained model. No additional training or fine-tuning was performed. The artifact keeps the same underlying IBM Granite Speech model, but optimizes the ONNX representation and Taurscribe runtime path for fast local transcription on NVIDIA CUDA GPUs.
What Changed
Starting from the original IBM Granite Speech 4.1 2B NAR ONNX bundle, Taurscribe applied:
- INT4 weight-only quantization to selected heavy ONNX
MatMulweights. MatMultoMatMulNBitsconversion for compressed matrix multiplication weights.- An
editor.onnxgraph patch that addsArgMaxand outputstoken_idsinstead of full vocabulary logits. - Stale external-data pruning after quantization.
- Runtime support in Taurscribe for ONNX Runtime CUDA Execution Provider.
Intended Runtime
Expected Taurscribe runtime placement:
encoder.onnx -> CUDA
projector.onnx -> CUDA
embed_tokens.onnx -> CUDA
editor.onnx -> CUDA
CUDA is selected by Taurscribe/Rust through ONNX Runtime's CUDA Execution Provider. The ONNX files describe the graph; the app chooses where to run it.
Why This Exists
The original editor returns full logits shaped roughly like:
batch x sequence x vocabulary
The vocabulary is large, so copying full logits from GPU to CPU is expensive. Taurscribe only needs the winning token IDs, so this artifact makes editor.onnx output token_ids directly.
Source / Attribution
Base model: ibm-granite/granite-speech-4.1-2b-nar
Original provider: IBM Granite Team
Original license: Apache License 2.0
Optimization/package: Taurscribe project
Files
Core files:
encoder.onnx
encoder.onnx.data
projector.onnx
projector.onnx.data
embed_tokens.onnx
editor.onnx
editor.onnx.data
tokenizer.json
preprocessor_config.json
processor_config.json
tokenizer_config.json
generation_config.json
manifest.json
NOTICE
See manifest.json for checksums and artifact metadata.
Hardware Recommendation
This artifact is intended for NVIDIA CUDA GPUs. For CPU-only, AMD/DirectML, or Apple Silicon systems, use a separate portable or platform-specific artifact.
Model tree for Abdullahu5mani/granite-speech-4.1-2b-nar-cuda
Base model
ibm-granite/granite-4.0-1b-base