Downloads · 30 days
12
4% of all-time downloads
jojo-ai-mst/Y5Bot
Y5Bot is a machine learning model from jojo-ai-mst. 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 mit.
Y5 Bot is a text2text transfer transformer model working in English Language.
Downloads · 30 days
12
4% of all-time downloads
All-time downloads
298
Public
Parameters
248M
14.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
Y5 Bot is a text2text transfer transformer model working in English Language.
It is lightweight, fast, and easy to use for text generation.
Y5 Bot can answer and generate text short to the main points.
pip install transformers
from transformers import pipeline
generator = pipeline(model="jojo-ai-mst/Y5Bot")
generator("What is Artificial Intelligence?")
model = T5ForConditionalGeneration.from_pretrained("jojo-ai-mst/Y5Bot")
tokenizer = T5Tokenizer.from_pretrained("jojo-ai-mst/Y5Bot")
my_question = "What do you think about the benefit of Artificial Intelligence?"
inputs = "Please answer to this question: " + my_question
inputs = tokenizer(inputs, return_tensors="pt")
outputs = model.generate(**inputs)
answer = tokenizer.decode(outputs[0])
print(answer)