hard20 pts · first answer countstransformersfine-tuningtokenization
Fine-tuned model never stops talking
After SFT, your model keeps generating past the answer until max_tokens. The training code sets pad_token = eos_token and masks all pad positions out of the loss. What is the bug?
Discussion 0
Join free to post in the discussion.
Related questions
- What is a tokenAI Engineer (LLM & Generative AI)
- How rare words get tokenizedAI Engineer (LLM & Generative AI)
- What LLM pretraining learnsAI Engineer (LLM & Generative AI)
- How BPE builds its vocabularyAI Engineer (LLM & Generative AI)
- Tokens per English wordAI Engineer (LLM & Generative AI)
- Why Hindi text uses more tokensAI Engineer (LLM & Generative AI)
- What the end-of-sequence token doesAI Engineer (LLM & Generative AI)
- What the embedding layer doesAI Engineer (LLM & Generative AI)