Views
No views yet
flan-t5-finetuned-wrongqa is a fine-tuned version of google/flan-t5-base designed to generate hallucinated or incorrect answers to QA prompts. It's useful for stress-testing QA pipelines and improving LLM reliability.qa_wrong_data (custom dataset)1import gradio as gr
2from transformers import pipeline
3
4pipe = pipeline('text-generation', model='Pravesh390/flan-t5-finetuned-wrongqa')
5
6def ask(q):
7 return pipe(f'Q: {q}\nA:')[0]['generated_text']
8
9gr.Interface(fn=ask, inputs='text', outputs='text').launch()1from transformers import pipeline
2pipe = pipeline('text-generation', model='Pravesh390/flan-t5-finetuned-wrongqa')
3pipe('Q: What is the capital of Australia?\nA:')transformers: Loading and saving modelspeft + LoRA: Lightweight fine-tuninghuggingface_hub: Upload and repo creationdatasets: Dataset managementaccelerate: Efficient training support