Instructions to use Helsinki-NLP/opus-mt-bg-eo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-bg-eo 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-bg-eo")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-bg-eo") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-bg-eo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
2b76539
-
Adding generation config file(s)
de6a76f
-
Add TF weights
Joao Gante606452d
-
Changed num_beams to 4
07a17b7
-
Update README.md
f176ae7 -
Update README.md
2f6f78d -
Update metadata.json
b1ac3a5
-
Update README.md
2962f27 -
Update config.json
bd5edb0 -
Update metadata.json
37c76bb -
Update tokenizer_config.json
677a36a -
Update vocab.json
4e37b32 -
Update README.md
5f48bef -
Update metadata.json
ad5a53e -
Update README.md
6d8b02e -
Update config.json
0c464d7 -
Update metadata.json
530bd6f -
Update pytorch_model.bin
014c9c9 -
Update source.spm
d8329ac -
Update target.spm
6129892 -
Update tokenizer_config.json
6e9c657 -
Update vocab.json
b07a080 -
initial commit
706bc4f