Instructions to use Helsinki-NLP/opus-mt-eo-cs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-eo-cs 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-eo-cs")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-eo-cs") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-eo-cs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.080f21c
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
d3ef13d
-
Adding generation config file(s)
8cb7f9b
-
Add TF weights
Joao Gante6be383d
-
Changed num_beams to 4
4bf5467
-
Update README.md
a266e7d -
Update README.md
8f78442 -
Update metadata.json
6422348
-
Update README.md
3a8290a -
Update config.json
69a3db8 -
Update metadata.json
87cdb5a -
Update tokenizer_config.json
b407e5f -
Update vocab.json
9f20761 -
Update README.md
2f2e699 -
Update metadata.json
aecaf32 -
Update README.md
7704432 -
Update config.json
ed494a3 -
Update metadata.json
c6cf046 -
Update pytorch_model.bin
d72863b -
Update source.spm
2ed503e -
Update target.spm
38987df -
Update tokenizer_config.json
63223f4 -
Update vocab.json
69a2c8b -
initial commit
b0f4300