icefall
Contents:
Installation
Frequently Asked Questions (FAQs)
Model export
Export model.state_dict()
Export model with torch.jit.trace()
Export model with torch.jit.script()
Export to ONNX
Export to ncnn
Recipes
Contributing
Huggingface
icefall
Model export
Edit on GitHub
Model export
In this section, we describe various ways to export models.
Export model.state_dict()
When to use it
How to export
How to use the exported model
Use the exported model to run decode.py
Export model with torch.jit.trace()
When to use it
How to export
How to use the exported models
Export model with torch.jit.script()
When to use it
How to export
How to use the exported model
Export to ONNX
When to use it
How to export
How to use the exported model
Export to ncnn
Export LSTM transducer models
Export ConvEmformer transducer models
1. Download the pre-trained model
2. Install ncnn and pnnx
3. Export the model via torch.jit.trace()
3. Export torchscript model via pnnx
4. Test the exported models in icefall
5. Modify the exported encoder for sherpa-ncnn
6. (Optional) int8 quantization with sherpa-ncnn