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