Instructions to use kosamit/whisper-tiny-ja-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kosamit/whisper-tiny-ja-onnx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="kosamit/whisper-tiny-ja-onnx")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("kosamit/whisper-tiny-ja-onnx") model = AutoModelForSpeechSeq2Seq.from_pretrained("kosamit/whisper-tiny-ja-onnx", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download quantize_config.json from kosamit/whisper-tiny-ja-onnx: direct link, hf CLI and curl.
- Browser
- Download file 2.84 kB
-
https://huggingface.co/kosamit/whisper-tiny-ja-onnx/resolve/main/quantize_config.json
- Command line
-
hf download hf://kosamit/whisper-tiny-ja-onnx/quantize_config.json
-
curl -L -o quantize_config.json https://huggingface.co/kosamit/whisper-tiny-ja-onnx/resolve/main/quantize_config.json
2.84 kB
| { | |
| "per_channel": false, | |
| "reduce_range": false, | |
| "per_model_config": { | |
| "decoder_with_past_model": { | |
| "op_types": [ | |
| "Div", | |
| "Softmax", | |
| "Mul", | |
| "Slice", | |
| "Erf", | |
| "Transpose", | |
| "Gather", | |
| "Reshape", | |
| "Sub", | |
| "ReduceMean", | |
| "Pow", | |
| "Sqrt", | |
| "MatMul", | |
| "Constant", | |
| "Unsqueeze", | |
| "Concat", | |
| "Add", | |
| "Shape" | |
| ], | |
| "weight_type": "QInt8" | |
| }, | |
| "decoder_model": { | |
| "op_types": [ | |
| "Div", | |
| "Softmax", | |
| "Erf", | |
| "Range", | |
| "Where", | |
| "MatMul", | |
| "Slice", | |
| "Squeeze", | |
| "Transpose", | |
| "Gather", | |
| "Expand", | |
| "Pow", | |
| "ConstantOfShape", | |
| "Concat", | |
| "Shape", | |
| "Unsqueeze", | |
| "Sqrt", | |
| "Mul", | |
| "Equal", | |
| "Reshape", | |
| "Sub", | |
| "ReduceMean", | |
| "Less", | |
| "Constant", | |
| "Add", | |
| "Cast" | |
| ], | |
| "weight_type": "QInt8" | |
| }, | |
| "encoder_model": { | |
| "op_types": [ | |
| "Shape", | |
| "Div", | |
| "Softmax", | |
| "Mul", | |
| "Erf", | |
| "Transpose", | |
| "Gather", | |
| "Conv", | |
| "Sub", | |
| "ReduceMean", | |
| "Pow", | |
| "Reshape", | |
| "MatMul", | |
| "Constant", | |
| "Unsqueeze", | |
| "Concat", | |
| "Add", | |
| "Sqrt" | |
| ], | |
| "weight_type": "QUInt8" | |
| }, | |
| "decoder_model_merged": { | |
| "op_types": [ | |
| "Div", | |
| "Softmax", | |
| "If", | |
| "Erf", | |
| "Range", | |
| "Where", | |
| "MatMul", | |
| "Slice", | |
| "Squeeze", | |
| "Transpose", | |
| "Gather", | |
| "Expand", | |
| "Pow", | |
| "ConstantOfShape", | |
| "Concat", | |
| "Shape", | |
| "Unsqueeze", | |
| "Sqrt", | |
| "Mul", | |
| "Equal", | |
| "Reshape", | |
| "Sub", | |
| "ReduceMean", | |
| "Less", | |
| "Constant", | |
| "Add", | |
| "Cast" | |
| ], | |
| "weight_type": "QInt8" | |
| } | |
| } | |
| } |