domain-assistant
A decoder-only transformer (DistilGPT-2) fine-tuned to answer user questions as a small domain AI assistant (education and general information).
- Base model: distilgpt2 (decoder-only transformer)
- Dataset: databricks/databricks-dolly-15k (instruction-response pairs, 2,000 short Q&A rows, 90/10 train/validation split)
- Training: causal language modelling, max length 256 tokens
- Validation loss: 2.6705
- Validation perplexity: 14.45
- Prompt format:
### Instruction:followed by the question, then### Response: - Limitations: small model trained on little data, so answers can be wrong or repetitive. Do not use it for medical, legal or safety-critical advice.
Usage
from transformers import pipeline
gen = pipeline("text-generation", model="gulparamoosa/domain-assistant")
prompt = "### Instruction:\nWhat is photosynthesis?\n\n### Response:\n"
print(gen(prompt, max_new_tokens=80, do_sample=True, temperature=0.7)[0]["generated_text"])