Skip to content

Glossary: Fine-tuning LLMs

max_new_tokens

A `generate` setting that caps how many tokens the model may write. A model that never learned to stop keeps going until it hits this limit.

Where the book teaches it

Related terms

End-of-sequence (EOS) tokenRepetition loop