Downloads · 30 days
12
1% of all-time downloads
tootooba/flan-t5-qa-study-assistant
flan-t5-qa-study-assistant is a machine learning model from tootooba. 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 apache-2.0.
This model is fine-tuned from the FLAN-T5 model to perform extractive question-answering tasks using the SQuAD dataset. It can generate answers based on the given context and question, which makes it useful for educat…
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
1.8K
Public
Parameters
248M
991 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors990 MB · 100%
From the Hugging Face model README
This model is fine-tuned from the FLAN-T5 model to perform extractive question-answering tasks using the SQuAD dataset. It can generate answers based on the given context and question, which makes it useful for educational purposes, personal assistants, or any task requiring context-based question-answering.
This is a question-answering model fine-tuned on a subset of the SQuAD dataset using the FLAN-T5 model. It is designed to extract answers from a given context based on a corresponding question.
The model is intended to be used for answering questions based on provided context. It can be used in:
The model can be further fine-tuned for domain-specific question-answering tasks, such as:
This model may not work well for tasks that require deep reasoning or understanding beyond surface-level extraction from text. Additionally, it is not designed for tasks like creative writing or opinion generation.
Users should ensure that:
Use the code below to load the model and tokenizer for question-answering tasks.
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model = AutoModelForSeq2SeqLM.from_pretrained("tootooba/flan-t5-qa-study-assistant").to("cuda")
tokenizer = AutoTokenizer.from_pretrained("tootooba/flan-t5-qa-study-assistant")
context = "The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It was constructed between 1887 and 1889 as the entrance arch for the 1889 World's Fair."
question = "When was the Eiffel Tower constructed?"
inputs = tokenizer(question, context, return_tensors="pt", truncation=True, padding=True).to("cuda")
outputs = model.generate(inputs.input_ids)
answer = tokenizer.decode(outputs[0], skip_special_tokens=True)
print("Answer:", answer)