r/LocalLLaMA • • 27d ago

Discussion YSK: Strata and polystrata have this functionality called answer_room

With default settings and thinking on and max_tokens ≥ 1024, and no explicit reasoning_budget_tokens, Strata / PolyStrata has a behavior called answer_room which will silently cap thinking at 0.75. * max_tokens and inject a "wrap-up" line in the model's head in its own voice, saying

I have thought about this long enough; time to give my answer. + </think>

It then continues the same reply from there. The client (harness, you or I) gets no error, flag or finish reason for this, and often no log.

This matters when you compare between strata and other engines : models served by strata had "nudges" in the form of its inner voice, and such extra text in the transcript. In some cases the nudge line is injected mid thinking, quite abruptly and it is hard to tell whether it helps or harms.

Strata main @ c62d5e3

Wrap-up message: https://github.com/Niko1221/Strata/blob/c62d5e3a15b40ea51c96aae9e8d36928965f53ab/serve/server.py#L225

Trigger (the 3/4 budget): https://github.com/Niko1221/Strata/blob/c62d5e3a15b40ea51c96aae9e8d36928965f53ab/serve/server.py#L5491

Injection point: https://github.com/Niko1221/Strata/blob/c62d5e3a15b40ea51c96aae9e8d36928965f53ab/serve/server.py#L5848

Default on (answer_room = True): https://github.com/Niko1221/Strata/blob/c62d5e3a15b40ea51c96aae9e8d36928965f53ab/serve/server.py#L4181

I noticed this when a model that tends to have long front-loaded thinking on dgx spark gave slightly but uniformly shorter answers (and task performance worsened in my hard problems), when served on polystrata.

PS, I had sonnet audit all cases of cut and injection, and here is what it reportes back ( sonnet called it "splice"):

Where it lands:

  • At a natural break: 6 (9%).
  • Inside a repetition loop (for example HashMap.new()? repeated for 30K–118K characters): 15 (22%).
  • Intrusive: 48 (70%, or 89% of the cases that weren't loops):

    • mid-sentence: 28
    • mid-number or mid-expression ("Mod 9982 |cut|"): 13
    • inside code (one cut right after def solve():): 4
    • mid-word: 3

Harm:

What didn't break: no reply re-opened thinking after a splice, and all 79 tool calls after a splice completed normally.

Lost reasoning: 26 of the 30 splices that came in a task's first reply were followed by a generic fresh start (ls /app). The 61K tokens of thinking left no trace in what came next.

Clear harm in 6 cases: the reply ended with no action at all, and all 6 tasks failed.

Qwen3.6, task 3674: cut at "Where right_prefix_max |cut|", and the only output afterwards was "Integrity notice: yes".

Flash-Next IQ2_XS, arc190_c: the same pattern.

A dropped conclusion: Qwen3.6, arc192_b, was cut right after "I think the answer is:", and the model then guessed.

Loops: the splice did break them, but those tasks still failed.

58 Upvotes

15 comments sorted by

17

u/Borkato 27d ago

Lmao I have --reasoning-budget-message turned on all the time in llama.cpp so that makes sense lol

3

u/Regular-Register-358 27d ago

For those of us migrating from vllm or sglang, the default was somewhat different.

I looked up llama cpp' way of handling budget and it seems better: I can control the inner voice by that message arg, and I can also control max token vs reasoning budget, instead of a hardcoded 3/4 ratio like strata does - some long derivation has long thinking and brief answers, and strata's rule of reasoning <= 3/4 of max tokens is sub-optimal.

2

u/Choice_Celery9481 27d ago

recently there is a trend of "discorvering" something thats been there for ages. like the "i found a neuron to bla bla". like he just discovered fhe logit bias and control vector flags and run bot everywhere with title "researcher found a neuron". like wtf lol

16

u/rskjr 27d ago

fascinating. I don't think the inference engine should be doing this/making this choice for the user. I'm going to check this behavior in my fork of PolyStrata.

2

u/Regular-Register-358 27d ago

Poly has it too. That's how I noticed it on qwen 36 MoE. On strata flash next the effect of answer room is not quite visible.

4

u/MarcelloT254k 27d ago

I suggest you make an issue in the official repo with your findings, so it becomes public.

0

u/Regular-Register-358 27d ago

It is a deliberate albeit less advertised feature, replicated in strata-derivatives, not a bug. I am not sure if it warrants an issue ticket.

7

u/MarcelloT254k 26d ago edited 21d ago

In my opinion it warrants a debate and conscious choice by the user installing Strata (they should know this), advised way of instilling strata was to prompt LLM to install it so a lot of info and choices could be skipped, because LM said so without you realising.

2

u/karmaisnonsense 21d ago

From my interaction with the developer, I don’t know if a discussion will amount to much change. He vigorously defends lossy design choices like this one as the best for everyone, solely based on Strata’s popularity and a couple qualitative tests.

2

u/FatheredPuma81 27d ago

Can anyone tell me if it's normal that the model also seems pretty obsessed about how much Context it has left? I've been wondering if Strata or DSH injects a low context warning at random points or if it's just trained to estimate how much context it has. It gets really annoying when I look back at my loop to see that it stopped the Goal after thinking it had 5k context left for like 3 loops...

1

u/Regular-Register-358 27d ago

Which model? On qwen 36 MoE my impression was the model was very much on a thinking token spend thrift.

You can ask ds to review the strata or dsh repo for you with that question, to rule out engine/harness injection, then what's left would be model (post trained behavior or hallucination).

1

u/FatheredPuma81 26d ago

I had Haiku check DSH and it found nothing (can't remember if I had them check strata). Also Q3.8FN like everyone else?

1

u/CatzRuleZWorld 27d ago

Seems very useful. Worst thing is when it silently overflows max output and just wastes all that thinking with an error.

-7

u/Dabalam 27d ago

Doesn't seem like a big deal at all. This seems to be standard behaviour to dull the overthinking which can damage certain tasks. Seems trivial turn off. This isn't like selecting the wrong experts (which seems like actual engine choices degrading quality), it's closer to a system prompt.