Views
No views yet
| File | Size | Description |
|---|---|---|
| encoder-int8.onnx | 1.4MB | Encoder model graph |
| encoder-int8.onnx.data | 838MB | Encoder weights (MatMul/Gemm INT8, Conv FP32) |
| decoder_joint-int8.onnx | 52MB | Decoder + joiner |
| vocab.txt | 92KB | Tokenizer vocabulary |
1from onnxruntime.quantization import quantize_dynamic, QuantType
2
3quantize_dynamic(
4 "encoder-temp.onnx",
5 "encoder-int8.onnx",
6 weight_type=QuantType.QInt8,
7 op_types_to_quantize=['MatMul', 'Gemm'], # Skip Conv ops
8 use_external_data_format=True,
9 extra_options={
10 'WeightSymmetric': True,
11 'MatMulConstBOnly': True,
12 }
13)ConvInteger ops which are not supported by ONNX Runtime Web WASM backend.