Fix chat template thinking default

#8
by bashru - opened

This PR changes the chat template so normal generation does not open a <think> block by default.

Currently, when add_generation_prompt=True, the template emits <think> unless enable_thinking is explicitly set to false. In runtimes without a reasoning parser, this can make the model output a visible </think> before the actual answer.

The new behavior defaults enable_thinking to false and only emits <think> when thinking mode is explicitly enabled.

https://huggingface.co/nex-agi/Nex-N2-mini/discussions/4

can you check this discussion around this ?

bashru changed pull request status to closed

Sign up or log in to comment