Translation
Transformers
PyTorch
TensorFlow
Safetensors
Somali
cus
English
marian
text2text-generation
Instructions to use Helsinki-NLP/opus-mt-cus-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Helsinki-NLP/opus-mt-cus-en 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-cus-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-cus-en") model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-cus-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (8deabf4941e95d44799ddd9b8688386429987b9e) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>9017846
-
set `renormalize_logits=True` for better performance (see `transformers` issue #4290)
c358d6d
-
Adding generation config file(s)
28f0709
-
Add TF weights
Joao Gante8aec189
-
Changed num_beams to 4
31379ae
-
Update README.md
a31686d -
Update README.md
dd173ce -
Update metadata.json
c7e25ad
-
Update README.md
51fc2e6 -
Update config.json
e0fd621 -
Update metadata.json
f8fe92f -
Update tokenizer_config.json
8f15572 -
Update vocab.json
5adcda7 -
Update README.md
3e3f20f -
Update metadata.json
eb32777 -
Update README.md
ce1cffc -
Update config.json
33b5927 -
Update metadata.json
d557051 -
Update pytorch_model.bin
d696f16 -
Update source.spm
b85cb7c -
Update target.spm
2083e60 -
Update tokenizer_config.json
57449c3 -
Update vocab.json
7c4053a -
initial commit
10a0c94