Helsinki-NLP/kde4
Updated • 1.24k • 25
How to use diana9m/t5_kd4 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="diana9m/t5_kd4") # Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("diana9m/t5_kd4")
model = AutoModelForSeq2SeqLM.from_pretrained("diana9m/t5_kd4")This model is a fine-tuned version of google/mt5-small on the kde4 dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
google/mt5-small