Instructions to use Helsinki-NLP/opus-mt-es-cs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-es-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-es-cs")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-es-cs") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-es-cs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
0abb365
-
Adding generation config file(s)
f7e7b21
-
Add TF weights
Joao Gante95f603a
-
metadata: add license
afa3840
-
Changed num_beams to 4
92d3c92
-
Update README.md
f664256
-
Update README.md
8eb5f7c -
Update config.json
8b29c76 -
Update tokenizer_config.json
5b72466 -
Update vocab.json
f2734f1
-
Update README.md
0c8269b -
Update config.json
60f1763 -
Update tokenizer_config.json
f05954c -
Update vocab.json
a88ae7d -
Update README.md
c2ea932
-
Update README.md
f981986 -
Update README.md
a0c8cea
-
Update README.md
1a0ff68
-
Update README.md
7229e03
-
Update config.json
c2cbd69 -
Update config.json
cd53fad
-
Update config.json
e030191 -
Update config.json
d09bdd2
-
Update target.spm
ee7cf9e -
Update tokenizer_config.json
6dbdd38 -
Update vocab.json
ab24705 -
Update source.spm
9e9cd52 -
Update pytorch_model.bin
817e15a -
Update config.json
2b7611a -
initial commit
1660f9c