Instructions to use onnx-community/sarvam-translate-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ONNX Runtime GenAI
How to use onnx-community/sarvam-translate-onnx with ONNX Runtime GenAI:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Transformers
How to use onnx-community/sarvam-translate-onnx 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="onnx-community/sarvam-translate-onnx")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("onnx-community/sarvam-translate-onnx", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add model file
#1
by Prince-1 - opened
No description provided.
Prince-1 changed pull request status to merged