Use the recommended sampling settings in generation_config.json

#16
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 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.

This is the same change as https://huggingface.co/HuggingFaceTB/SmolLM-135M-Instruct/discussions/15

lewtun changed pull request status to merged

Sign up or log in to comment