Interview practice question
Fine-tuned model never stops generating
Machine Learning · LLM Fine Tuning · Beginner
Your fine-tuned model keeps generating text endlessly instead of stopping after the answer. What's wrong?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- End-of-sequence or end-of-turn token missing in training data.
- Chat template mismatch between training and inference.
- Use tokenizer's chat template; ensure EOS tokens included.
- Check stop sequences in inference settings.
- Retrain with corrected formatting.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.