Instructions to use ibm-granite/granite-speech-3.2-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ibm-granite/granite-speech-3.2-8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="ibm-granite/granite-speech-3.2-8b", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ibm-granite/granite-speech-3.2-8b", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("ibm-granite/granite-speech-3.2-8b", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ctrl+K