Instructions to use sarvamai/sarvam-translate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sarvamai/sarvam-translate with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="sarvamai/sarvam-translate")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("sarvamai/sarvam-translate") model = AutoModelForMultimodalLM.from_pretrained("sarvamai/sarvam-translate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README to mention supported directions
Verified signaturee0a7a6b
-
Update README.md (#17)
Verified signature- Update README.md (7d2c6e3bd78820e322068e44b9583d071aea501e) Co-authored-by: Sumanth Doddapaneni <sumanth-sarvam@users.noreply.huggingface.co>37da6e8 -
Update README.md
Verified signaturedd5eaf2
-
Update README.md
Verified signature4645713
-
Fix checkpoint for vLLM inference
4d928a0 -
Add language list
Verified signature650608e -
README HF inference: `add_generation_prompt=True`
Verified signature313d635
-
Update README.md (#6)
Verified signature- Update README.md (a985edf98ec259cdea52e1b66be5317cf91b212c) Co-authored-by: Mohit <mohit-sarvam@users.noreply.huggingface.co>41725d9 -
Update README.md
Verified signature02c46ee -
Update README.md (#5)
Verified signature- Update README.md (d6dd9da0136dd42cbd3bd305c1194374d6b66165) Co-authored-by: Kurian Benoy <kurianbenoy@users.noreply.huggingface.co>79cb004 -
Update PG link
Verified signatureebe7ba0 -
Upload LICENSE.txt
Verified signature9613ab2 -
Update README.md
Verified signature2c68210 -
Update README.md
Verified signature638a901 -
Update README.md
Verified signature2274600 -
Update README.md
Verified signatureba964da -
Update README.md
Verified signature5398dec -
Update README.md
Verified signatureacc0e2e -
Update README.md
Verified signature6635731 -
Add preprocesser and processor config JSONs
Verified signature01eda15 -
Upload tokenizer
Verified signature3b75316 -
Upload Gemma3ForConditionalGeneration
Verified signature6d616c2 -
initial commit
Verified signaturea6e40d5