Downloads · 30 days
15
17% of all-time downloads
SaiCD/flan-t5-large-finetuned-ai-assistant
flan-t5-large-finetuned-ai-assistant is a text generation model from SaiCD. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Instruction-tuned FLAN-T5-Large checkpoint intended for helpful assistant-style responses.
Downloads · 30 days
15
17% of all-time downloads
All-time downloads
87
Public
Parameters
783M
3.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
Instruction-tuned FLAN-T5-Large checkpoint intended for helpful assistant-style responses.
This repo currently contains model artifacts (weights + tokenizer + config), but no training dataset or training pipeline.
As a result, this update focuses on inference-quality tuning rather than weight-level fine-tuning:
generation_config.jsondo_sample = false (deterministic outputs)num_beams = 4 (better search quality than greedy)no_repeat_ngram_size = 3 (reduces repetitive phrasing)max_new_tokens = 192 (enough for helpful answers without rambling)repetition_penalty = 1.05early_stopping = trueThese defaults favor precision and helpfulness over creativity.
For brainstorming/creative writing, override with do_sample=True, temperature, and top_p.
FLAN-T5 generally performs best with explicit instructions. Use a structured prompt like:
You are a helpful assistant. Answer precisely and clearly.
Question: {user_question}
Answer:
For tasks:
Summarize the following text in 5 bullet points: ...Extract the key risks from the text: ...Classify the sentiment (positive/neutral/negative): ...from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
model_id = "SaiCD/flan-t5-large-finetuned-ai-assistant"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
prompt = """You are a helpful assistant. Answer precisely and clearly.
Question: What are three ways to improve sleep quality?
Answer:"""
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=512)
outputs = model.generate(**inputs) # uses generation_config.json defaults
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
outputs = model.generate(
**inputs,
do_sample=True,
temperature=0.7,
top_p=0.9,
max_new_tokens=192,
)
To perform weight-level fine-tuning, provide:
Then fine-tune with PEFT/LoRA or full training and push a new checkpoint.