Instructions to use BH-Language-AI/bh-speech-1-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BH-Language-AI/bh-speech-1-2b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="BH-Language-AI/bh-speech-1-2b")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("BH-Language-AI/bh-speech-1-2b") model = AutoModelForSpeechSeq2Seq.from_pretrained("BH-Language-AI/bh-speech-1-2b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from BH-Language-AI/bh-speech-1-2b: direct link, hf CLI and curl.
- Browser
- Download file 83 Bytes
-
https://huggingface.co/BH-Language-AI/bh-speech-1-2b/resolve/main/generation_config.json
- Command line
-
hf download hf://BH-Language-AI/bh-speech-1-2b/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/BH-Language-AI/bh-speech-1-2b/resolve/main/generation_config.json
83 Bytes
| { | |
| "language": "bs", | |
| "task": "transcribe", | |
| "transformers_version": "5.22.2" | |
| } | |