Downloads · 30 days
4
15% of all-time downloads
nsu-intellisphere/t5-small-ctx-qgen
t5-small-ctx-qgen is a machine learning model from nsu-intellisphere. 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.
This repository contains a trained T5-Small model for generating questions based on contextual input.
Downloads · 30 days
4
15% of all-time downloads
All-time downloads
26
Public
Parameters
60.5M
243 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 100%
From the Hugging Face model README
This repository contains a trained T5-Small model for generating questions based on contextual input.
The model in this repository has been fine-tuned on the pre-trained T5-Small model. It takes contextual input and generates questions relevant to the context.
You can use the pretrained model for generating questions using the transformers library's pipeline feature.
from transformers import pipeline
# Load the pretrained model for inference
model = pipeline("text2text-generation", model="nsu-intellisphere/t5-small-ctx-qgen")
# Example usage
context = "According to their estimates the universe is 13.7 billion years old with an uncertainty of 200 million years."
question = model(context)[0]['generated_text']
print(f'Context: {context}')
print(f'Question: {question}')