How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
# Warning: Pipeline type "summarization" 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("summarization", model="yhavinga/mt5-base-cnn-nl")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("yhavinga/mt5-base-cnn-nl")
model = AutoModelForSeq2SeqLM.from_pretrained("yhavinga/mt5-base-cnn-nl")
Quick Links

YAML Metadata Error:"language[0]" with value "dutch" is not valid. It must be an ISO 639-1, 639-2 or 639-3 code (two/three letters), or a special value like "code", "multilingual". If you want to use BCP-47 identifiers, you can specify them in language_bcp47.

mt5-base-cnn-nl

mt5-base finetuned on CNN DM translated to nl (Dutch).

  • Learning rate 1e-3

  • Trained for 1 epoch

  • Max source length 1024

  • Max target length 142

  • rouge1 31.1766

  • rouge2 8.4538

  • rougeL 17.8674

Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support