Translation
Transformers
PyTorch
English
Hindi
viuai
viutranslate
sarus-500m
nmt
english-to-hindi
hindi-to-english
indic
devanagari
bfloat16
zero-synthetic
Instructions to use ViuAI/ViuTranslate with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ViuAI/ViuTranslate 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="ViuAI/ViuTranslate")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ViuAI/ViuTranslate", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from ViuAI/ViuTranslate: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/ViuAI/ViuTranslate/resolve/main/generation_config.json
- Command line
-
hf download hf://ViuAI/ViuTranslate/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/ViuAI/ViuTranslate/resolve/main/generation_config.json
221 Bytes
| { | |
| "_from_model_config": true, | |
| "bos_token_id": null, | |
| "eos_token_id": 64002, | |
| "pad_token_id": 64000, | |
| "max_new_tokens": 150, | |
| "temperature": 0.2, | |
| "top_p": 0.9, | |
| "repetition_penalty": 1.15, | |
| "do_sample": true | |
| } | |