Instructions to use onnx-internal-testing/tiny-random-GraniteSpeechForConditionalGeneration with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use onnx-internal-testing/tiny-random-GraniteSpeechForConditionalGeneration with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="onnx-internal-testing/tiny-random-GraniteSpeechForConditionalGeneration")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("onnx-internal-testing/tiny-random-GraniteSpeechForConditionalGeneration") model = AutoModelForMultimodalLM.from_pretrained("onnx-internal-testing/tiny-random-GraniteSpeechForConditionalGeneration", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload optimized ONNX model
#4
by Xenova HF Staff - opened
12345234561178910{ "n_mels": 8, "n_fft": 512, "win_length": 400, "hop_length": 160, "audio_processor": { "feature_extractor_type": "GraniteSpeechFeatureExtractor", "melspec_kwargs": { "hop_length": 160, "n_fft": 512, "n_mels": 8, "n_mels": 80, "sample_rate": 16000, "win_length": 400 },processor_config.json+1-5