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
Issue with vLLM serve
#8
by SagefSixPaths - opened
The given vllm command provided doesn't seem to be working
vllm serve sarvamai/sarvam-translate --port 8000 --dtype bfloat16
It gives the following error:ValueError: There is no module or parameter named 'model' in Gemma3ForConditionalGeneration
Same error persists across different versions of vllm openai compatible docker v0.8.4, v0.8.5.post1, v0.9.0, v0.9.0.1. Any fixes or workarounds for this issue would be of great help!
Thanks for reporting the issue. We have fixed the checkpoint now.
Please try again and let us know if you're still facing issues.
GokulNC changed discussion status to closed