Text Generation
Transformers
Safetensors
English
olmo3
conversational

Don't specify max_new_tokens in generation_config.json

#5
by stadlerb - opened

This change removes the max_new_tokens setting from generation_config.json.

The generation config should not specify max_new_tokens because this breaks HF Transformers generation when max_length is specified instead of max_new_tokens, asmax_new_tokens takes precedence overmax_length.

stadlerb changed pull request title from Update generation_config.json to Don't specify max_new_tokens in generation_config.json

I only made PRs for Olmo 3- and 3.1-Instruct models, but others are probably affected as well.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment