Feature Extraction
Transformers
Safetensors
granite_speech_nar
speech
asr
non-autoregressive
ctc
speech_recognition
automatic_speech_recognition
custom_code
Instructions to use ibm-granite/granite-speech-4.1-2b-nar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ibm-granite/granite-speech-4.1-2b-nar with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ibm-granite/granite-speech-4.1-2b-nar", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ibm-granite/granite-speech-4.1-2b-nar", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from ibm-granite/granite-speech-4.1-2b-nar: direct link, hf CLI and curl.
- Browser
- Download file 153 Bytes
-
https://huggingface.co/ibm-granite/granite-speech-4.1-2b-nar/resolve/main/processor_config.json
- Command line
-
hf download hf://ibm-granite/granite-speech-4.1-2b-nar/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/ibm-granite/granite-speech-4.1-2b-nar/resolve/main/processor_config.json
153 Bytes
| { | |
| "processor_class": "GraniteSpeechNarProcessor", | |
| "auto_map": { | |
| "AutoProcessor": "processing_granite_speech_nar.GraniteSpeechNarProcessor" | |
| } | |
| } | |