Instructions to use MERaLiON/MERaLiON-2-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MERaLiON/MERaLiON-2-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="MERaLiON/MERaLiON-2-3B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSpeechSeq2Seq model = AutoModelForSpeechSeq2Seq.from_pretrained("MERaLiON/MERaLiON-2-3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from MERaLiON/MERaLiON-2-3B: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/MERaLiON/MERaLiON-2-3B/resolve/main/generation_config.json
- Command line
-
hf download hf://MERaLiON/MERaLiON-2-3B/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/MERaLiON/MERaLiON-2-3B/resolve/main/generation_config.json
197 Bytes
| { | |
| "_from_model_config": true, | |
| "bos_token_id": 2, | |
| "cache_implementation": "hybrid", | |
| "eos_token_id": 1, | |
| "no_repeat_ngram_size": 6, | |
| "pad_token_id": 0, | |
| "transformers_version": "4.50.1" | |
| } | |