Views
No views yet
conversion_scripts/.1cd conversion_scripts
2python -m venv venv
3source venv/bin/activate
4pip install -r requirements.txt./output/.1# Build the mel-spectrogram preprocessor
2python build_preprocessor.py
3
4# Export and quantise to int8 (dynamic quantisation - fast)
5python export_model.py
6
7# Or use static quantisation with calibration data (better quality)
8python export_model.py --quantise=static
9
10# Or export fp32 only (no quantisation)
11python export_model.py --no-quantise--quantise=static): Uses 200 LibriSpeech samples to calibrate activation ranges. Both weights and activations are quantised with fixed scales. May provide better accuracy for some use cases but takes longer to export../output/static/ and includes an external data file (encoder-model.int8.onnx.data) due to the model size.encoder-model.int8.onnx - Encoder (~622MB dynamic, ~42MB + ~581MB external data for static)decoder_joint-model.int8.onnx - Decoder + joiner (8.6MB)nemo128.onnx - Mel-spectrogram preprocessor (137KB)vocab.txt - Token vocabularyconfig.json - Model configurationparakeet-tdt-0.6b-v2-int8.tar.gz - Archive of all model files