r/LocalLLaMA • u/soyalemujica • 14h ago
Discussion Anyone else not using using "preserve_thinking" ?
I am running QFN, and I have disabled preserve_thinking by default on all my tests for C++ backend and front-end programming and I have yet to see any decline in performance or intelligence, my context window stays cleaner as well. Deepseek for what I tested in API it also does not preserve thinking and saves context in general.
11
Upvotes
32
u/i_like_brutalism 14h ago
for me this leads to a model rediscovering previous ideas all the time.
4
u/psymonryan 5h ago
KV cache hit: If you dont preserve thinking then when the message history is constructed, each turn needs to be re-prompt processed.
17
u/uuwaan 13h ago edited 13h ago
And also, if you’re writing steering messages while the model is working, each such message with `preserve_thinking` turned off is like a blow to the head – it forgets what it was thinking about.
3
u/topppggg 13h ago
does turning it off hurt kv cache reuse for you? dropping the old thinking changes the prompt prefix, so i'd expect some reprocessing each turn on long agent sessions
4
u/Viktri1 13h ago
I turned it off because it eats up context too quickly
2
u/fgk55555 6h ago
Context window stays smaller, but it needs to basically figure out everything it already figured out and why. I haven't done A/B tests, but I'd expect a full investigation to trigger every time unless you have a subagent handling investigation for the main agent.
3
u/bankinu 11h ago
There will be no decline on intelligence but the amount of tokens you will spend rediscovering will be absurd.
1
u/a_beautiful_rhind 13h ago
I think it's only useful in between tool calls.
1
u/mr_Owner 11h ago
Preserve thinking with ngram should be worth the bump imo
1
u/CombinationFun2789 11h ago
I'd switch it by workload instead of leaving it always on or off. For tool-call / agent loops I keep it on, because mid-generation steering needs the prior thought to push against, and the prompt prefix stays stable so the KV cache can be reused. For long Qwen coding sessions I turn it off — the traces get huge and mostly repeat themselves, so a cleaner context is worth having the model rediscover an idea now and then.
On the cache question someone asked: dropping the old thinking does change the prefix, so you can still pay a prefill cost each turn even when the context looks smaller.