Instructions to use yhavinga/mt5-base-cnn-nl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yhavinga/mt5-base-cnn-nl with Transformers:
# 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") - Notebooks
- Google Colab
- Kaggle
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.
- Downloads last month
- 7