Use the recommended sampling settings in generation_config.json

#15
by lewtun HF Staff - opened
Hugging Face Smol Models Research org

This PR adds the sampling settings recommended in the model card (temperature 0.2, top-p 0.9) to generation_config.json, so that transformers and vLLM pick them up by default.

It also raises max_new_tokens from 40 (added in #9) to 512, since 40 tokens cuts off most replies mid-sentence. Removing it entirely isn't an option, because generate() would then fall back to transformers' default of 20 new tokens.

lewtun changed pull request status to merged

Sign up or log in to comment