Helsinki-NLP/opus-100
Viewer • Updated • 55.1M • 20k • 243
How to use Harolin/TraductorEnEs 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="Harolin/TraductorEnEs") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Harolin/TraductorEnEs")
model = AutoModelForSeq2SeqLM.from_pretrained("Harolin/TraductorEnEs", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Harolin/TraductorEnEs")
model = AutoModelForSeq2SeqLM.from_pretrained("Harolin/TraductorEnEs", device_map="auto")This model is a fine-tuned version of Helsinki-NLP/opus-mt-en-es on an unknown dataset.
This is an AI model generated(AI genrate an AI model)
It's an educational attemp so you can do what the licence indicates.
Just used 50000 training sentences and traductions.
The following hyperparameters were used during training:
It's really good to see that spanish traductions are acurate, we didn't expect it would work so well.
Base model
Helsinki-NLP/opus-mt-en-es
# 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="Harolin/TraductorEnEs")