Views
No views yet

config.json without retraining breaks attention mechanics and leads to broken generation; thus, targeted adaptation was required.
google/gemma-4-31B-itq, k, v, o) and MLP (gate, up, down) layers, deliberately bypassing global attention layers to preserve native architecture capabilities.
lora_target_modules: 'model.language_model.layers.(0|1|2|3|4|6|7|8|9|10|12|13|14|15|16|18|19|20|21|22|24|25|26|27|28|30|31|32|33|34|36|37|38|39|40|42|43|44|45|46|48|49|50|51|52|54|55|56|57|58).(_checkpoint_wrapped_module.)?(self_attn.(q|k|v|o)_proj|mlp.(gate|up|down)_proj)'
<bos><|turn>system
<|think|>
{system prompt}<turn|>
<|turn>user
{user message}<turn|>
<|turn>model
<|channel>thought
{reasoning}<channel|>{response}<turn|>/v1/chat/completions endpoint. Correct formatting is handled automatically by the server./v1/completions) is currently broken for impersonations without a custom patch. Sending the context as a user prompt and asking the model to generate the response can produce a malformed turn structure.start_reply_with: <|channel>thought + \n (a new line) or reasoning will not trigger (you will get blank responses if you enabled reasoning and did not prefill)extra_body) field in your connection settings:chat_template_kwargs: {enable_thinking: true,
preserve_thinking: false}
skip_special_tokens: falseenable_thinking: true: Activates the model's chain-of-thought reasoning. Change to false to disable it for faster, more direct responses.skip_special_tokens: false: This is critical. It prevents the API from stripping away the special tokens (like <|channel> and <channel|>) that are required for the model's chat template to work correctly.preserve_thinking: false: Optional, Default: false. newly added to the chat template, It allows reusing previous reasoning turns in <|think|> token activates it at the architecture level. Training data for V15.1 was written in no-thinking format; reasoning quality when enable_thinking: true reflects Gemma 4's own emergent behavior, preserved by keeping the fine-tune conservative (see Training Process below).<|think|> token in the system turn is what activates chain-of-thought reasoning at the architecture level..json file below and import it into SillyTavern's sampler presets menu.*He walked across the room and stared out the window.**-I wonder what she's thinking.-*Alex (Curious): "What do you see out there?"**scene transitions**. The model should now produce cleaner prose.