Preserve thinking

#4
by DrRos - opened

First - thanks for the model, trying it atm.
Quote from model card:

Laguna S 2.1 has native reasoning support and works best with preserved thinking: keep reasoning_content from prior assistant messages in the message history.

Is it possible to do via chat template kwargs (I'm using llama.cpp)? If --reasoning-preserve option is set there is line while model loads:

[44097] 0.30.762.243 W srv          init: chat template does NOT support preserving reasoning, --reasoning-preserve has no effect

And I'm also can't find preserve_thinking or sorts in model chat template.

Poolside org

Hi @DrRos ! Thanks for the comment.

I've provided a new chat template in the GGUF repo (here: https://huggingface.co/poolside/Laguna-S-2.1-GGUF/blob/main/chat_template.jinja) that adds the behaviour you've asked for. It shoudl do what you want if you force the chat template.

This is just a stop-gap: tomorrow, I'll package up the jinja as part of the official GGUFs.

Please let me know if it takes away the issue you mentioned.

Sign up or log in to comment