Downloads · 30 days
8
24% of all-time downloads
clarin-knext/wnet-def-plt5large
wnet-def-plt5large is a machine learning model from clarin-knext. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-sa-4.0.
Downloads · 30 days
8
24% of all-time downloads
All-time downloads
33
Public
Parameters
820M
3.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.3 GB · 100%
From the Hugging Face model README
from transformers import pipeline
generator = pipeline("text2text-generation", model = 'clarin-knext/wnet-def-plt5large', use_auth_token=True)
generator("komik: Poszedłem dzisiaj na kabaret i był tam śmieszny komik.")
[{'generated_text': 'człowiek , który lubi żartować i rozśmieszać innych . '}]
model = T5ForConditionalGeneration.from_pretrained("clarin-knext/wnet-def-plt5large", use_auth_token=True)
tokenizer = T5TokenizerFast.from_pretrained("clarin-knext/wnet-def-plt5large", use_auth_token=True)
input_ids = tokenizer("samochód: po drodze jedzie samochód", return_tensors="pt").input_ids
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))