Instructions to use Helsinki-NLP/opus-mt-en-ru with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-en-ru 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="Helsinki-NLP/opus-mt-en-ru")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-ru") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-en-ru", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download rust_model.ot from Helsinki-NLP/opus-mt-en-ru: direct link, hf CLI and curl.
- Browser
- Download file 563 MB
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-ru/resolve/main/rust_model.ot
- Command line
-
hf download hf://Helsinki-NLP/opus-mt-en-ru/rust_model.ot
-
curl -L -o rust_model.ot https://huggingface.co/Helsinki-NLP/opus-mt-en-ru/resolve/main/rust_model.ot
563 MB
- Xet hash:
- d84fe8d2a6fcbf11f7e6b85601ad7a0e9ad3f895ece1d36c82b47b5ad393732f
- Size of remote file:
- 563 MB
- SHA256:
- 7a950daf8b39c3da63dca70b2b158beac6761a0283393e0ae1a854ee52bec122
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.