Instructions to use Helsinki-NLP/opus-mt-de-cs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-de-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-de-cs")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-de-cs") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-de-cs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
017f7b8
-
Adding generation config file(s)
9b8eb1a
-
Add TF weights
Joao Gante92f1a3c
-
metadata: add license
683666e
-
Changed num_beams to 4
abc86d0
-
Update README.md
385e80c
-
Update README.md
23ea598 -
Update tokenizer_config.json
add0702 -
Update vocab.json
70c0218 -
Update config.json
64dd96a
-
Update README.md
635803b -
Update config.json
3c7bb12 -
Update tokenizer_config.json
d65101b -
Update vocab.json
ed6232d -
Update README.md
5db3c36
-
Update README.md
07ef8c5 -
Update README.md
051d490
-
Update README.md
1cead15
-
Update README.md
bdd450c
-
Update config.json
012b523 -
Update config.json
f0fe9af
-
Update config.json
03ec995 -
Update config.json
acce937
-
Update vocab.json
4c914d0 -
Update source.spm
12544c4 -
Update target.spm
f0e2dfd -
Update tokenizer_config.json
593001d -
Update config.json
96cac70 -
Update pytorch_model.bin
77d1cda -
initial commit
1561b99