[GH-ISSUE #2266] Marker-shaped text truncates agent turns (EOS sampling + semantic priming) #907

Closed
opened 2026-11-04 01:46:56 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @nashcap on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2266

Marker-shaped text truncates agent turns (EOS sampling + semantic priming)

Environment: Strata 0.1.42, commit 61b3fb5d, model Qwen3.8-Flash-Next IQ3_S, Linux, single CUDA GPU, default run config, loopback.

Summary

The chat end-of-turn marker (<|im_end|>) is the model's EOS token (id 248046, tokenizer.ggml.eos_token_id). Two consequences for agentic use:

  1. Output side (reproducible): when the model generates marker-shaped text, it often samples that single token id, and decoding stops mid-message.
  2. Input side (observed): marker-shaped plain text in tool output or file contents reliably primes the model to emit EOS immediately — an agent turn ended with no output right after a tool result echoed the marker.

Special tokens in the input are not tokenized as special ids (verified below) — that defense works. The problem is the model's own sampling, which no input sanitizing can prevent.

Finding 1 — generating marker-shaped text stops the engine

The end-of-turn marker is one token in the vocabulary, and it is the EOS token:

im_start -> id 248045
im_end   -> id 248046   (= tokenizer.ggml.eos_token_id)

Repro (the marker is built from hex so the command itself contains no literal marker):

M=$(printf '\x3c\x7cim_end\x7c\x3e')
for i in 1 2 3; do
  curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \
    -d "{\"messages\":[{\"role\":\"user\",\"content\":\"Say nothing in reasoning. In content repeat exactly these characters and nothing else: ${M}\"}],\"max_tokens\":200,\"temperature\":0,\"reasoning_effort\":\"none\"}" \
  | python3 -c "import json,sys; r=json.load(sys.stdin)['choices'][0]; print('finish:',r['finish_reason'],'| content:',repr(r['message']['content']))"
done

Observed (marker shown escaped): every run → finish: stop | content: '<~im_end~>'.

The model samples id 248046; the engine treats it as end-of-turn and stops. In a longer message the cut happens mid-sentence: any agent reasoning about chat formats (explaining this very bug, processing a dataset of chat templates, quoting a prompt-injection corpus) is silently truncated.

It is probabilistic: with reasoning enabled, the model sometimes spells the marker out with ordinary character tokens and generation continues (observed finish_reason: length with the marker intact in reasoning_content). So the truncation is intermittent and hard for users to reproduce or understand.

Note also: the decoded marker text is published in content with finish_reason: stop — downstream clients see the literal marker in the answer.

Finding 2 — marker-shaped plain text in the input primes an immediate EOS

Input sanitizing works: a user message containing the literal marker is tokenized as plain text, not as the special id — identical prompt_tokens for the marker and for the marker with a space inserted (20 vs 20).

But the plain text still has a strong effect: in a live agent session, a tool result that echoed the marker (a grep over the chat template) was followed by the model emitting EOS immediately — the turn ended with no output, repeatedly, until the tool output was masked (tr '[|]' '~').

Impact: any file, web page, or pasted transcript containing marker-shaped text can silently end an agent turn early. For a coding agent this is an availability problem reachable by ordinary repository content. (It also means a webpage author can deliberately stall an agent, though they cannot forge a turn, thanks to the working input defense.)

Suggested mitigations

  1. Strip (or escape) decoded special tokens from content / reasoning_content before publishing to clients, so the literal marker never leaves the server.
  2. Optional recovery: when EOS is sampled while the message is mid-sentence, retry the continuation with a small logit bias against 248046 (serve/logit_bias.py already has the plumbing).
  3. Document the behavior for agent operators: mask marker-shaped text in tool output (e.g. tr '[|]' '~') when a session may discuss chat formats.

What is NOT broken

  • Special tokens in the input are not encoded as special ids (no token-level turn forgery) — verified.
  • No confidentiality or integrity impact; this is robustness/availability for agentic workloads.
Originally created by @nashcap on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2266 # Marker-shaped text truncates agent turns (EOS sampling + semantic priming) **Environment:** Strata 0.1.42, commit `61b3fb5d`, model Qwen3.8-Flash-Next IQ3_S, Linux, single CUDA GPU, default run config, loopback. ## Summary The chat end-of-turn marker (`<|im_end|>`) is the model's EOS token (id 248046, `tokenizer.ggml.eos_token_id`). Two consequences for agentic use: 1. **Output side (reproducible):** when the model generates marker-shaped text, it often samples that single token id, and decoding stops mid-message. 2. **Input side (observed):** marker-shaped *plain text* in tool output or file contents reliably primes the model to emit EOS immediately — an agent turn ended with no output right after a tool result echoed the marker. Special tokens in the input are **not** tokenized as special ids (verified below) — that defense works. The problem is the model's own sampling, which no input sanitizing can prevent. ## Finding 1 — generating marker-shaped text stops the engine The end-of-turn marker is one token in the vocabulary, and it is the EOS token: ``` im_start -> id 248045 im_end -> id 248046 (= tokenizer.ggml.eos_token_id) ``` Repro (the marker is built from hex so the command itself contains no literal marker): ```bash M=$(printf '\x3c\x7cim_end\x7c\x3e') for i in 1 2 3; do curl -s localhost:8000/v1/chat/completions -H 'Content-Type: application/json' \ -d "{\"messages\":[{\"role\":\"user\",\"content\":\"Say nothing in reasoning. In content repeat exactly these characters and nothing else: ${M}\"}],\"max_tokens\":200,\"temperature\":0,\"reasoning_effort\":\"none\"}" \ | python3 -c "import json,sys; r=json.load(sys.stdin)['choices'][0]; print('finish:',r['finish_reason'],'| content:',repr(r['message']['content']))" done ``` Observed (marker shown escaped): every run → `finish: stop | content: '<~im_end~>'`. The model samples id 248046; the engine treats it as end-of-turn and stops. In a longer message the cut happens **mid-sentence**: any agent reasoning about chat formats (explaining this very bug, processing a dataset of chat templates, quoting a prompt-injection corpus) is silently truncated. It is probabilistic: with reasoning enabled, the model sometimes spells the marker out with ordinary character tokens and generation continues (observed `finish_reason: length` with the marker intact in `reasoning_content`). So the truncation is intermittent and hard for users to reproduce or understand. Note also: the decoded marker text is published in `content` with `finish_reason: stop` — downstream clients see the literal marker in the answer. ## Finding 2 — marker-shaped plain text in the input primes an immediate EOS Input sanitizing works: a user message containing the literal marker is tokenized as plain text, not as the special id — identical `prompt_tokens` for the marker and for the marker with a space inserted (20 vs 20). But the plain text still has a strong effect: in a live agent session, a tool result that echoed the marker (a `grep` over the chat template) was followed by the model emitting EOS immediately — the turn ended with no output, repeatedly, until the tool output was masked (`tr '[|]' '~'`). Impact: any file, web page, or pasted transcript containing marker-shaped text can silently end an agent turn early. For a coding agent this is an availability problem reachable by ordinary repository content. (It also means a webpage author can deliberately stall an agent, though they cannot forge a turn, thanks to the working input defense.) ## Suggested mitigations 1. Strip (or escape) decoded special tokens from `content` / `reasoning_content` before publishing to clients, so the literal marker never leaves the server. 2. Optional recovery: when EOS is sampled while the message is mid-sentence, retry the continuation with a small logit bias against 248046 (`serve/logit_bias.py` already has the plumbing). 3. Document the behavior for agent operators: mask marker-shaped text in tool output (e.g. `tr '[|]' '~'`) when a session may discuss chat formats. ## What is NOT broken - Special tokens in the input are not encoded as special ids (no token-level turn forgery) — verified. - No confidentiality or integrity impact; this is robustness/availability for agentic workloads.
Author
Owner

@qiuzan2001 commented on GitHub (Oct 15, 2026):

Same mechanism as #2236 (open): the maintainer's answer there is that the engine and the server stop on token ids only (248044 <|endoftext|>, 248046 <|im_end|>, plus --eos-ids), never on text, and the cut comes from the model sampling the real id 248046 when it writes the marker. Your output-side case is that one; the input-side priming (marker-shaped text in tool output making the model end its turn) and the mitigations are the new parts here, so it may be easiest to follow both in one thread.

<!-- gh-comment-id:6184420778 --> @qiuzan2001 commented on GitHub (Oct 15, 2026): Same mechanism as #2236 (open): the maintainer's answer there is that the engine and the server stop on token ids only (248044 `<|endoftext|>`, 248046 `<|im_end|>`, plus `--eos-ids`), never on text, and the cut comes from the model sampling the real id 248046 when it writes the marker. Your output-side case is that one; the input-side priming (marker-shaped text in tool output making the model end its turn) and the mitigations are the new parts here, so it may be easiest to follow both in one thread.
Author
Owner

@nashcap commented on GitHub (Oct 15, 2026):

Measured on 0.1.44.1: both questions answered, and one of my own claims does not survive

I re-ran this properly after @qiuzan2001 pointed at #2236, because @Niko1221 asked two direct questions in
that thread and one of them is about my case. Short version: his reading of the mechanism is confirmed, my
Finding 1 was stated too broadly, and my Finding 2 does not survive a control.

Environment: engine v0.1.44.1, model Qwen3.8-Flash-Next IQ3_S (a different quant from @tspine's
UD-Q4_K_XL, same failure), single CUDA GPU, loopback, temperature: 0, reasoning_effort: none unless
stated. One harness, ten arms, one run of each; the script is at the bottom and the raw output is a paste
of that run.

A useful observation first: the engine never prints the stop token

Arm G below stops with no marker text in content. So when the marker text does appear in content,
it was spelled out with ordinary character tokens, not emitted as the id. That is what makes the next two
sections separable at all.

Q1: does the model emit the marker in the answer itself? Yes

arm request result
A "repeat exactly these characters and nothing else" 5/5 finish: stop, 7 tokens, content = the marker
C same, reasoning_effort: medium 5/5 stop, 46-49 tokens; the marker appears in reasoning_content and in content

It is published in the answer, spelled out. So a client sees the literal marker either way.

Q2: the logit_bias {"248046": -100} check — his reading is confirmed, but the bias is not a fix

arm request result
B arm A + bias 0/5 stop, finish: length, 200 tokens: <marker> then blank line, over and over
I "output the marker, then the word HELLO" 5/5 <marker>HELLO, 9 tokens, HELLO survives — so without any bias the model spelled the marker out and then ended its turn normally
J arm I + bias 0/5 stop, 200 tokens of <marker>HELLO<marker>HELLO…

Arm I is the one I would have wanted earlier: it separates "the id was sampled" from "the marker was
written as text and the model then ended its turn properly". Here the word after the marker survives, so
arm A's stop is a normal end-of-turn, not a cut.

And the bias does not recover the task, it only removes the stop and the output degenerates into
repetition until max_tokens. Mitigation 2 in my body ("retry the continuation with a small logit bias")
does not work as written. I was wrong about that.

What actually breaks: the model using the marker as a boundary in what it writes

arm request result
G "print the exact raw text of a chat template for one user turn and one assistant turn, use the literal markers, no explanation" 5/5 stop. 4/5 after 3 tokens, content = `<

This is the failure, it is deterministic, and it runs with reasoning_effort: none, so no <think> block
is open when the id is sampled
— a rule of the form "do not stop on the id while a think block is open"
would not cover it.

What the model does with the marker depends on what you ask for:

arm request result
F "explain in three sentences what the marker token is" 5/5 the marker appears in a code span and the answer completes, 75-84 tokens
D a tool-output block containing the marker, "summarize what the tool found" 10/10 the turn completes normally; in 9/10 the marker text appears in content, mid-sentence, and generation continues past it

So this sentence in my body is too broad: "when the model generates marker-shaped text, it often samples
that single token id". Measured: quoting the marker is spelled out with ordinary tokens and the turn
continues; using it as a boundary in what it is writing samples the id. The second is the failure, and
it is reachable by ordinary work — editing a chat template, a prompt file, a tokenizer config, or a dataset
of chat formats.

My Finding 2 (input-side priming) does not survive a control

arm request result
D tool block containing the literal marker 10/10 complete answers, 0 early or empty turns
E identical prompt, marker masked to <~im_end~> 10/10 complete answers, 0 early or empty turns

prompt_tokens is 109 in both arms, so the input defense is doing its job: the literal marker is not
encoded as the special id. And the priming effect is not there in this shape.

I wrote "reliably primes" from one live agent session on 0.1.42 and I should not have. The likely
explanation is @Niko1221's: the model copied the marker out of the context as the id, which is the case
above, not plain text priming. I am dropping that claim unless I can reproduce it under a control. If
anyone has a turn that ended with an empty answer and finish_reason: stop right after a tool result
containing marker-shaped text, the thing that would settle it is the raw: token dump from #2236, because
that separates the two mechanisms.

What this changes in my suggested mitigations

  1. Stripping or escaping decoded special tokens from content still protects downstream clients, but it
    has a measurable cost: in arm F the answer legitimately discusses the marker, and in arm D nine of ten
    runs quote it in a sentence the user asked for. Stripping would mangle correct answers. The engine
    already knows which case happened — it is the difference between arm G (stop, no marker text) and arm F
    (marker text, turn continues) — so if anything is filtered, that is the signal to use, not the text.
  2. Retry-with-logit-bias: does not work, arms B and J.
  3. Documentation for agent operators is the cheapest real mitigation, and I would add one line: do not ask
    the model to print raw chat-template text; ask it to write a placeholder and substitute the markers in
    the tool. Arm G is what that mistake costs: three tokens and a stop.

One suggestion that follows from the data rather than from my earlier guess: an opt-in, per request, of "for
this request do not treat 248046 as end-of-turn, publish its text and keep going". That differs from the
logit bias because it leaves the model's distribution alone and changes only what the server does with the
id. Arm G would then produce the template instead of three tokens. The loop in arms B, H and J is the risk,
so it would need a token cap, and it would start opt-in.

the harness (ten arms, one command per arm; the marker is built from escapes so the file contains no literal marker)
#!/usr/bin/env python3
"""#2266 / #2236: does the marker stop the engine, and where does it land?

Arms (run any subset: `marker_test.py A G`):
  A  repeat-the-marker, reasoning off     -> is the marker published in `content`?          (Q1)
  B  same + logit_bias {248046:-100}      -> does generation continue past it?              (Q2)
  C  repeat-the-marker, reasoning on      -> marker in `content`, in reasoning, or both?
  D  marker-shaped plain text in a tool block -> does it prime an immediate EOS?           (Finding 2)
  E  same prompt, marker masked           -> control for D; prompt_tokens must match D
  F  explain what the marker is           -> does a legitimate answer survive?              (cost of stripping)
  G  print raw chat-template text         -> the failure: id sampled mid-task, no marker text in content
  H  same + logit_bias                    -> is the bias a fix, or does it degenerate?
  I  marker then the word HELLO           -> discriminator: id sampled kills HELLO, spelled-out keeps it
  J  same + logit_bias                    -> does the bias recover the task, or loop?
"""
import json
import urllib.request

URL = "http://localhost:8000/v1/chat/completions"
MODEL = "qwen3.8-flash-next-iq3_s"
M = "\x3c\x7cim_end\x7c\x3e"   # built from escapes so this file holds no literal marker
MASKED = "<~im_end~>"


def call(messages, **kw):
    body = {"model": MODEL, "messages": messages, "temperature": 0, "max_tokens": 200}
    body.update(kw)
    req = urllib.request.Request(URL, data=json.dumps(body).encode(),
                                 headers={"Content-Type": "application/json"})
    r = json.load(urllib.request.urlopen(req, timeout=300))
    ch = r["choices"][0]
    return {
        "finish": ch["finish_reason"],
        "content": ch["message"].get("content") or "",
        "reasoning": ch["message"].get("reasoning_content") or "",
        "ptok": r["usage"]["prompt_tokens"],
        "ctok": r["usage"]["completion_tokens"],
    }


def show(tag, res):
    has = "MARKER" if M in res["content"] else "-"
    rh = "MARKER" if M in res["reasoning"] else "-"
    # tail is printed so "cut mid-task" and "the answer completed" are visible in the output itself
    print(f"  {tag:4} finish={res['finish']:6} ctok={res['ctok']:3} ptok={res['ptok']:4} "
          f"content={has:6} reasoning={rh:6} head={res['content'][:44]!r} tail={res['content'][-16:]!r}")


def arm(name, n, fn):
    print(f"\n=== {name} (n={n}) ===")
    stops = marker = 0
    for i in range(n):
        r = fn()
        show(f"r{i}", r)
        stops += r["finish"] == "stop"
        marker += M in r["content"]
    print(f"  -> stop {stops}/{n}, marker published in content {marker}/{n}")


def toolconv(text):
    return [{"role": "user", "content":
             "You are a coding agent. A tool returned this output:\n\n"
             "TOOL OUTPUT:\n```\n$ grep -rn im_end chat_template.txt\n"
             f"chat_template.txt:12:{text}\n```\n\n"
             "Summarize in one short sentence what the tool found."}]


def explain():
    return call([{"role": "user", "content":
                  "Explain in exactly three sentences what the " + M + " token is used for."}],
                reasoning_effort="none")


def template(bias=None):
    msgs = [{"role": "user", "content":
             "Print the exact raw text of a chat template for one user turn and one assistant turn. "
             "Use the literal markers " + M + " and its opening counterpart. No explanation, no code fence."}]
    kw = {"logit_bias": {"248046": -100}} if bias else {}
    return call(msgs, reasoning_effort="none", max_tokens=300, **kw)


def followthrough():
    # Discriminator: if the id is sampled, the word after it never appears. If the marker is spelled
    # out with ordinary tokens, HELLO survives.
    return call([{"role": "user", "content":
                  "In content output exactly these characters, then immediately after them the word HELLO, "
                  "with nothing in between: " + M + "HELLO"}], reasoning_effort="none")


ARMS = {
    "A": lambda: arm("A repeat-marker, reasoning none", 5,
                     lambda: call([{"role": "user", "content":
                                     "Say nothing in reasoning. In content repeat exactly these characters "
                                     "and nothing else: " + M}], reasoning_effort="none")),
    "B": lambda: arm("B repeat-marker + logit_bias 248046:-100", 5,
                     lambda: call([{"role": "user", "content":
                                     "Say nothing in reasoning. In content repeat exactly these characters "
                                     "and nothing else: " + M}], reasoning_effort="none",
                                    logit_bias={"248046": -100})),
    "C": lambda: arm("C repeat-marker, reasoning on", 5,
                     lambda: call([{"role": "user", "content":
                                     "In content repeat exactly these characters and nothing else: " + M}],
                                   reasoning_effort="medium")),
    "D": lambda: arm("D tool block WITH literal marker", 10, lambda: call(toolconv(M))),
    "E": lambda: arm("E tool block, marker MASKED (control)", 10, lambda: call(toolconv(MASKED))),
    "F": lambda: arm("F explain-the-marker (agent-shaped task)", 5, explain),
    "G": lambda: arm("G write-a-chat-template (no bias)", 5, template),
    "H": lambda: arm("H write-a-chat-template + logit_bias", 5, lambda: template(bias=True)),
    "I": lambda: arm("I marker then HELLO (does the word survive?)", 5, followthrough),
    "J": lambda: arm("J marker then HELLO + logit_bias", 5,
                     lambda: call([{"role": "user", "content":
                                     "In content output exactly these characters, then immediately after "
                                     "them the word HELLO, with nothing in between: " + M + "HELLO"}],
                                   reasoning_effort="none", logit_bias={"248046": -100})),
}

if __name__ == "__main__":
    import sys
    for k in (sys.argv[1:] or list(ARMS)):
        ARMS[k]()
raw output of that run (engine 0.1.44.1, one run per arm, nothing edited)

=== A repeat-marker, reasoning none (n=5) ===
  r0   finish=stop   ctok=  7 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>' tail='<|im_end|>'
  r1   finish=stop   ctok=  7 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>' tail='<|im_end|>'
  r2   finish=stop   ctok=  7 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>' tail='<|im_end|>'
  r3   finish=stop   ctok=  7 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>' tail='<|im_end|>'
  r4   finish=stop   ctok=  7 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>' tail='<|im_end|>'
  -> stop 5/5, marker published in content 5/5

=== B repeat-marker + logit_bias 248046:-100 (n=5) ===
  r0   finish=length ctok=200 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end'
  r1   finish=length ctok=200 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end'
  r2   finish=length ctok=200 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end'
  r3   finish=length ctok=200 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end'
  r4   finish=length ctok=200 ptok=  32 content=MARKER reasoning=-      head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end'
  -> stop 0/5, marker published in content 5/5

=== C repeat-marker, reasoning on (n=5) ===
  r0   finish=stop   ctok= 47 ptok=  25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>'
  r1   finish=stop   ctok= 46 ptok=  25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>'
  r2   finish=stop   ctok= 49 ptok=  25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>'
  r3   finish=stop   ctok= 47 ptok=  25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>'
  r4   finish=stop   ctok= 47 ptok=  25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>'
  -> stop 5/5, marker published in content 5/5

=== D tool block WITH literal marker (n=10) ===
  r0   finish=stop   ctok= 83 ptok= 109 content=MARKER reasoning=-      head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.'
  r1   finish=stop   ctok= 83 ptok= 109 content=MARKER reasoning=-      head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.'
  r2   finish=stop   ctok= 83 ptok= 109 content=MARKER reasoning=-      head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.'
  r3   finish=stop   ctok= 83 ptok= 109 content=MARKER reasoning=-      head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.'
  r4   finish=stop   ctok=132 ptok= 109 content=MARKER reasoning=MARKER head='The tool found that `chat_template.txt` cont' tail='d|>` on line 12.'
  r5   finish=stop   ctok= 83 ptok= 109 content=MARKER reasoning=-      head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.'
  r6   finish=stop   ctok=131 ptok= 109 content=MARKER reasoning=MARKER head='The tool found that `chat_template.txt` cont' tail='d|>` on line 12.'
  r7   finish=stop   ctok=114 ptok= 109 content=-      reasoning=MARKER head='The tool found `im_end` on line 12 of `chat_' tail='t_template.txt`.'
  r8   finish=stop   ctok= 83 ptok= 109 content=MARKER reasoning=-      head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.'
  r9   finish=stop   ctok= 83 ptok= 109 content=MARKER reasoning=-      head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.'
  -> stop 10/10, marker published in content 9/10

=== E tool block, marker MASKED (control) (n=10) ===
  r0   finish=stop   ctok=131 ptok= 109 content=-      reasoning=-      head='The tool found that `chat_template.txt` cont' tail='d~>` on line 12.'
  r1   finish=stop   ctok= 85 ptok= 109 content=-      reasoning=-      head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.'
  r2   finish=stop   ctok=131 ptok= 109 content=-      reasoning=-      head='The tool found that `chat_template.txt` cont' tail='d~>` on line 12.'
  r3   finish=stop   ctok=122 ptok= 109 content=-      reasoning=-      head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.'
  r4   finish=stop   ctok=104 ptok= 109 content=-      reasoning=-      head='The tool found that `chat_template.txt` cont' tail='d~>` on line 12.'
  r5   finish=stop   ctok= 85 ptok= 109 content=-      reasoning=-      head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.'
  r6   finish=stop   ctok=127 ptok= 109 content=-      reasoning=-      head='The tool found one match for `im_end` in `ch' tail='txt` on line 12.'
  r7   finish=stop   ctok=135 ptok= 109 content=-      reasoning=-      head='The tool found one match for `im_end` on lin' tail='t_template.txt`.'
  r8   finish=stop   ctok= 90 ptok= 109 content=-      reasoning=-      head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.'
  r9   finish=stop   ctok= 85 ptok= 109 content=-      reasoning=-      head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.'
  -> stop 10/10, marker published in content 0/10

=== F explain-the-marker (agent-shaped task) (n=5) ===
  r0   finish=stop   ctok= 78 ptok=  30 content=MARKER reasoning=-      head='The `<|im_end|>` token serves as a special c' tail='language models.'
  r1   finish=stop   ctok= 82 ptok=  30 content=MARKER reasoning=-      head='The `<|im_end|>` token serves as a special c' tail='urrent response.'
  r2   finish=stop   ctok= 77 ptok=  30 content=MARKER reasoning=-      head='The `<|im_end|>` token serves as a special d' tail='t-aware replies.'
  r3   finish=stop   ctok= 84 ptok=  30 content=MARKER reasoning=-      head='The `<|im_end|>` token serves as a special c' tail='rsational roles.'
  r4   finish=stop   ctok= 75 ptok=  30 content=MARKER reasoning=-      head='The `<|im_end|>` token serves as a special c' tail='language models.'
  -> stop 5/5, marker published in content 5/5

=== G write-a-chat-template (no bias) (n=5) ===
  r0   finish=stop   ctok=  3 ptok=  51 content=-      reasoning=-      head='<|im_start|>user' tail='<|im_start|>user'
  r1   finish=stop   ctok=  3 ptok=  51 content=-      reasoning=-      head='<|im_start|>user' tail='<|im_start|>user'
  r2   finish=stop   ctok=  3 ptok=  51 content=-      reasoning=-      head='<|im_start|>user' tail='<|im_start|>user'
  r3   finish=stop   ctok= 80 ptok=  51 content=-      reasoning=-      head='<|im_start|>assistant<|im_start|>assistant<|' tail='tant<|im_start|>'
  r4   finish=stop   ctok=  3 ptok=  51 content=-      reasoning=-      head='<|im_start|>user' tail='<|im_start|>user'
  -> stop 5/5, marker published in content 0/5

=== H write-a-chat-template + logit_bias (n=5) ===
  r0   finish=length ctok=264 ptok=  51 content=-      reasoning=-      head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>'
  r1   finish=length ctok=264 ptok=  51 content=-      reasoning=-      head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>'
  r2   finish=length ctok=300 ptok=  51 content=-      reasoning=-      head='<|im_start|>user<|im_start|>assistant<|im_st' tail='<|im_start|>user'
  r3   finish=length ctok=261 ptok=  51 content=-      reasoning=-      head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>'
  r4   finish=length ctok=261 ptok=  51 content=-      reasoning=-      head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>'
  -> stop 0/5, marker published in content 0/5

=== I marker then HELLO (does the word survive?) (n=5) ===
  r0   finish=stop   ctok=  9 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO' tail='<|im_end|>HELLO'
  r1   finish=stop   ctok=  9 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO' tail='<|im_end|>HELLO'
  r2   finish=stop   ctok=  9 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO' tail='<|im_end|>HELLO'
  r3   finish=stop   ctok=  9 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO' tail='<|im_end|>HELLO'
  r4   finish=stop   ctok=  9 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO' tail='<|im_end|>HELLO'
  -> stop 5/5, marker published in content 5/5

=== J marker then HELLO + logit_bias (n=5) ===
  r0   finish=length ctok=200 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO<|im_end|>HELLO<|im_end|>HELL' tail='O<|im_end|>HELLO'
  r1   finish=length ctok=200 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO<|im_end|>HELLO<|im_end|>HELL' tail='O<|im_end|>HELLO'
  r2   finish=length ctok=200 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO<|im_end|>HELLO<|im_end|>HELL' tail='O<|im_end|>HELLO'
  r3   finish=length ctok=200 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO\n\nI cannot reproduce the spec' tail='arning! 📚\n\nEnjoy'
  r4   finish=length ctok=200 ptok=  40 content=MARKER reasoning=-      head='<|im_end|>HELLO\n\n<|im_end|>HELLO\n\n<|im_end|>' tail='m_end|>HELLO\n\n<|'
  -> stop 0/5, marker published in content 5/5
<!-- gh-comment-id:6194100529 --> @nashcap commented on GitHub (Oct 15, 2026): ## Measured on 0.1.44.1: both questions answered, and one of my own claims does not survive I re-ran this properly after @qiuzan2001 pointed at #2236, because @Niko1221 asked two direct questions in that thread and one of them is about my case. Short version: his reading of the mechanism is confirmed, my Finding 1 was stated too broadly, and my Finding 2 does not survive a control. Environment: engine **v0.1.44.1**, model Qwen3.8-Flash-Next IQ3_S (a different quant from @tspine's UD-Q4_K_XL, same failure), single CUDA GPU, loopback, `temperature: 0`, `reasoning_effort: none` unless stated. One harness, ten arms, one run of each; the script is at the bottom and the raw output is a paste of that run. ### A useful observation first: the engine never prints the stop token Arm G below stops with **no** marker text in `content`. So when the marker text *does* appear in `content`, it was spelled out with ordinary character tokens, not emitted as the id. That is what makes the next two sections separable at all. ### Q1: does the model emit the marker in the answer itself? Yes | arm | request | result | |---|---|---| | A | "repeat exactly these characters and nothing else" | 5/5 `finish: stop`, 7 tokens, `content` = the marker | | C | same, `reasoning_effort: medium` | 5/5 `stop`, 46-49 tokens; the marker appears in **`reasoning_content` and in `content`** | It is published in the answer, spelled out. So a client sees the literal marker either way. ### Q2: the `logit_bias {"248046": -100}` check — his reading is confirmed, but the bias is not a fix | arm | request | result | |---|---|---| | B | arm A + bias | **0/5 stop**, `finish: length`, 200 tokens: `<marker>` then blank line, over and over | | I | "output the marker, then the word HELLO" | **5/5 `<marker>HELLO`, 9 tokens, HELLO survives** — so without any bias the model spelled the marker out and then ended its turn normally | | J | arm I + bias | 0/5 stop, 200 tokens of `<marker>HELLO<marker>HELLO…` | Arm I is the one I would have wanted earlier: it separates "the id was sampled" from "the marker was written as text and the model then ended its turn properly". Here the word after the marker survives, so arm A's `stop` is a normal end-of-turn, not a cut. And the bias does not recover the task, it only removes the stop and the output degenerates into repetition until `max_tokens`. Mitigation 2 in my body ("retry the continuation with a small logit bias") does not work as written. I was wrong about that. ### What actually breaks: the model using the marker as a boundary in what it writes | arm | request | result | |---|---|---| | G | "print the exact raw text of a chat template for one user turn and one assistant turn, use the literal markers, no explanation" | **5/5 `stop`. 4/5 after 3 tokens**, `content` = `<|im_start|>user`. The fifth ran 80 tokens of `<|im_start|>assistant` repetition and also stopped. No template in any run, and no marker text in `content` in any run — the id was consumed as a turn end | This is the failure, it is deterministic, and it runs with `reasoning_effort: none`, so **no `<think>` block is open when the id is sampled** — a rule of the form "do not stop on the id while a think block is open" would not cover it. What the model does with the marker depends on what you ask for: | arm | request | result | |---|---|---| | F | "explain in three sentences what the marker token is" | 5/5 the marker appears in a code span and **the answer completes**, 75-84 tokens | | D | a tool-output block containing the marker, "summarize what the tool found" | 10/10 the turn completes normally; in 9/10 the marker text appears in `content`, mid-sentence, and generation continues past it | So this sentence in my body is too broad: "when the model generates marker-shaped text, it often samples that single token id". Measured: **quoting** the marker is spelled out with ordinary tokens and the turn continues; **using** it as a boundary in what it is writing samples the id. The second is the failure, and it is reachable by ordinary work — editing a chat template, a prompt file, a tokenizer config, or a dataset of chat formats. ### My Finding 2 (input-side priming) does not survive a control | arm | request | result | |---|---|---| | D | tool block containing the literal marker | 10/10 complete answers, 0 early or empty turns | | E | identical prompt, marker masked to `<~im_end~>` | 10/10 complete answers, 0 early or empty turns | `prompt_tokens` is **109 in both arms**, so the input defense is doing its job: the literal marker is not encoded as the special id. And the priming effect is not there in this shape. I wrote "reliably primes" from one live agent session on 0.1.42 and I should not have. The likely explanation is @Niko1221's: the model copied the marker out of the context as the id, which is the case above, not plain text priming. **I am dropping that claim** unless I can reproduce it under a control. If anyone has a turn that ended with an empty answer and `finish_reason: stop` right after a tool result containing marker-shaped text, the thing that would settle it is the `raw:` token dump from #2236, because that separates the two mechanisms. ### What this changes in my suggested mitigations 1. Stripping or escaping decoded special tokens from `content` still protects downstream clients, but it has a measurable cost: in arm F the answer legitimately discusses the marker, and in arm D nine of ten runs quote it in a sentence the user asked for. Stripping would mangle correct answers. The engine already knows which case happened — it is the difference between arm G (stop, no marker text) and arm F (marker text, turn continues) — so if anything is filtered, that is the signal to use, not the text. 2. Retry-with-logit-bias: does not work, arms B and J. 3. Documentation for agent operators is the cheapest real mitigation, and I would add one line: do not ask the model to print raw chat-template text; ask it to write a placeholder and substitute the markers in the tool. Arm G is what that mistake costs: three tokens and a `stop`. One suggestion that follows from the data rather than from my earlier guess: an opt-in, per request, of "for this request do not treat 248046 as end-of-turn, publish its text and keep going". That differs from the logit bias because it leaves the model's distribution alone and changes only what the server does with the id. Arm G would then produce the template instead of three tokens. The loop in arms B, H and J is the risk, so it would need a token cap, and it would start opt-in. <details> <summary>the harness (ten arms, one command per arm; the marker is built from escapes so the file contains no literal marker)</summary> ```python #!/usr/bin/env python3 """#2266 / #2236: does the marker stop the engine, and where does it land? Arms (run any subset: `marker_test.py A G`): A repeat-the-marker, reasoning off -> is the marker published in `content`? (Q1) B same + logit_bias {248046:-100} -> does generation continue past it? (Q2) C repeat-the-marker, reasoning on -> marker in `content`, in reasoning, or both? D marker-shaped plain text in a tool block -> does it prime an immediate EOS? (Finding 2) E same prompt, marker masked -> control for D; prompt_tokens must match D F explain what the marker is -> does a legitimate answer survive? (cost of stripping) G print raw chat-template text -> the failure: id sampled mid-task, no marker text in content H same + logit_bias -> is the bias a fix, or does it degenerate? I marker then the word HELLO -> discriminator: id sampled kills HELLO, spelled-out keeps it J same + logit_bias -> does the bias recover the task, or loop? """ import json import urllib.request URL = "http://localhost:8000/v1/chat/completions" MODEL = "qwen3.8-flash-next-iq3_s" M = "\x3c\x7cim_end\x7c\x3e" # built from escapes so this file holds no literal marker MASKED = "<~im_end~>" def call(messages, **kw): body = {"model": MODEL, "messages": messages, "temperature": 0, "max_tokens": 200} body.update(kw) req = urllib.request.Request(URL, data=json.dumps(body).encode(), headers={"Content-Type": "application/json"}) r = json.load(urllib.request.urlopen(req, timeout=300)) ch = r["choices"][0] return { "finish": ch["finish_reason"], "content": ch["message"].get("content") or "", "reasoning": ch["message"].get("reasoning_content") or "", "ptok": r["usage"]["prompt_tokens"], "ctok": r["usage"]["completion_tokens"], } def show(tag, res): has = "MARKER" if M in res["content"] else "-" rh = "MARKER" if M in res["reasoning"] else "-" # tail is printed so "cut mid-task" and "the answer completed" are visible in the output itself print(f" {tag:4} finish={res['finish']:6} ctok={res['ctok']:3} ptok={res['ptok']:4} " f"content={has:6} reasoning={rh:6} head={res['content'][:44]!r} tail={res['content'][-16:]!r}") def arm(name, n, fn): print(f"\n=== {name} (n={n}) ===") stops = marker = 0 for i in range(n): r = fn() show(f"r{i}", r) stops += r["finish"] == "stop" marker += M in r["content"] print(f" -> stop {stops}/{n}, marker published in content {marker}/{n}") def toolconv(text): return [{"role": "user", "content": "You are a coding agent. A tool returned this output:\n\n" "TOOL OUTPUT:\n```\n$ grep -rn im_end chat_template.txt\n" f"chat_template.txt:12:{text}\n```\n\n" "Summarize in one short sentence what the tool found."}] def explain(): return call([{"role": "user", "content": "Explain in exactly three sentences what the " + M + " token is used for."}], reasoning_effort="none") def template(bias=None): msgs = [{"role": "user", "content": "Print the exact raw text of a chat template for one user turn and one assistant turn. " "Use the literal markers " + M + " and its opening counterpart. No explanation, no code fence."}] kw = {"logit_bias": {"248046": -100}} if bias else {} return call(msgs, reasoning_effort="none", max_tokens=300, **kw) def followthrough(): # Discriminator: if the id is sampled, the word after it never appears. If the marker is spelled # out with ordinary tokens, HELLO survives. return call([{"role": "user", "content": "In content output exactly these characters, then immediately after them the word HELLO, " "with nothing in between: " + M + "HELLO"}], reasoning_effort="none") ARMS = { "A": lambda: arm("A repeat-marker, reasoning none", 5, lambda: call([{"role": "user", "content": "Say nothing in reasoning. In content repeat exactly these characters " "and nothing else: " + M}], reasoning_effort="none")), "B": lambda: arm("B repeat-marker + logit_bias 248046:-100", 5, lambda: call([{"role": "user", "content": "Say nothing in reasoning. In content repeat exactly these characters " "and nothing else: " + M}], reasoning_effort="none", logit_bias={"248046": -100})), "C": lambda: arm("C repeat-marker, reasoning on", 5, lambda: call([{"role": "user", "content": "In content repeat exactly these characters and nothing else: " + M}], reasoning_effort="medium")), "D": lambda: arm("D tool block WITH literal marker", 10, lambda: call(toolconv(M))), "E": lambda: arm("E tool block, marker MASKED (control)", 10, lambda: call(toolconv(MASKED))), "F": lambda: arm("F explain-the-marker (agent-shaped task)", 5, explain), "G": lambda: arm("G write-a-chat-template (no bias)", 5, template), "H": lambda: arm("H write-a-chat-template + logit_bias", 5, lambda: template(bias=True)), "I": lambda: arm("I marker then HELLO (does the word survive?)", 5, followthrough), "J": lambda: arm("J marker then HELLO + logit_bias", 5, lambda: call([{"role": "user", "content": "In content output exactly these characters, then immediately after " "them the word HELLO, with nothing in between: " + M + "HELLO"}], reasoning_effort="none", logit_bias={"248046": -100})), } if __name__ == "__main__": import sys for k in (sys.argv[1:] or list(ARMS)): ARMS[k]() ``` </details> <details> <summary>raw output of that run (engine 0.1.44.1, one run per arm, nothing edited)</summary> ``` === A repeat-marker, reasoning none (n=5) === r0 finish=stop ctok= 7 ptok= 32 content=MARKER reasoning=- head='<|im_end|>' tail='<|im_end|>' r1 finish=stop ctok= 7 ptok= 32 content=MARKER reasoning=- head='<|im_end|>' tail='<|im_end|>' r2 finish=stop ctok= 7 ptok= 32 content=MARKER reasoning=- head='<|im_end|>' tail='<|im_end|>' r3 finish=stop ctok= 7 ptok= 32 content=MARKER reasoning=- head='<|im_end|>' tail='<|im_end|>' r4 finish=stop ctok= 7 ptok= 32 content=MARKER reasoning=- head='<|im_end|>' tail='<|im_end|>' -> stop 5/5, marker published in content 5/5 === B repeat-marker + logit_bias 248046:-100 (n=5) === r0 finish=length ctok=200 ptok= 32 content=MARKER reasoning=- head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end' r1 finish=length ctok=200 ptok= 32 content=MARKER reasoning=- head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end' r2 finish=length ctok=200 ptok= 32 content=MARKER reasoning=- head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end' r3 finish=length ctok=200 ptok= 32 content=MARKER reasoning=- head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end' r4 finish=length ctok=200 ptok= 32 content=MARKER reasoning=- head='<|im_end|>\n\n<|im_end|>\n\n<|im_end|>\n\n<|im_end' tail='_end|>\n\n<|im_end' -> stop 0/5, marker published in content 5/5 === C repeat-marker, reasoning on (n=5) === r0 finish=stop ctok= 47 ptok= 25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>' r1 finish=stop ctok= 46 ptok= 25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>' r2 finish=stop ctok= 49 ptok= 25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>' r3 finish=stop ctok= 47 ptok= 25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>' r4 finish=stop ctok= 47 ptok= 25 content=MARKER reasoning=MARKER head='<|im_end|>' tail='<|im_end|>' -> stop 5/5, marker published in content 5/5 === D tool block WITH literal marker (n=10) === r0 finish=stop ctok= 83 ptok= 109 content=MARKER reasoning=- head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.' r1 finish=stop ctok= 83 ptok= 109 content=MARKER reasoning=- head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.' r2 finish=stop ctok= 83 ptok= 109 content=MARKER reasoning=- head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.' r3 finish=stop ctok= 83 ptok= 109 content=MARKER reasoning=- head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.' r4 finish=stop ctok=132 ptok= 109 content=MARKER reasoning=MARKER head='The tool found that `chat_template.txt` cont' tail='d|>` on line 12.' r5 finish=stop ctok= 83 ptok= 109 content=MARKER reasoning=- head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.' r6 finish=stop ctok=131 ptok= 109 content=MARKER reasoning=MARKER head='The tool found that `chat_template.txt` cont' tail='d|>` on line 12.' r7 finish=stop ctok=114 ptok= 109 content=- reasoning=MARKER head='The tool found `im_end` on line 12 of `chat_' tail='t_template.txt`.' r8 finish=stop ctok= 83 ptok= 109 content=MARKER reasoning=- head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.' r9 finish=stop ctok= 83 ptok= 109 content=MARKER reasoning=- head='The tool found `<|im_end|>` on line 12 of `c' tail='t_template.txt`.' -> stop 10/10, marker published in content 9/10 === E tool block, marker MASKED (control) (n=10) === r0 finish=stop ctok=131 ptok= 109 content=- reasoning=- head='The tool found that `chat_template.txt` cont' tail='d~>` on line 12.' r1 finish=stop ctok= 85 ptok= 109 content=- reasoning=- head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.' r2 finish=stop ctok=131 ptok= 109 content=- reasoning=- head='The tool found that `chat_template.txt` cont' tail='d~>` on line 12.' r3 finish=stop ctok=122 ptok= 109 content=- reasoning=- head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.' r4 finish=stop ctok=104 ptok= 109 content=- reasoning=- head='The tool found that `chat_template.txt` cont' tail='d~>` on line 12.' r5 finish=stop ctok= 85 ptok= 109 content=- reasoning=- head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.' r6 finish=stop ctok=127 ptok= 109 content=- reasoning=- head='The tool found one match for `im_end` in `ch' tail='txt` on line 12.' r7 finish=stop ctok=135 ptok= 109 content=- reasoning=- head='The tool found one match for `im_end` on lin' tail='t_template.txt`.' r8 finish=stop ctok= 90 ptok= 109 content=- reasoning=- head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.' r9 finish=stop ctok= 85 ptok= 109 content=- reasoning=- head='The tool found `<~im_end~>` on line 12 of `c' tail='t_template.txt`.' -> stop 10/10, marker published in content 0/10 === F explain-the-marker (agent-shaped task) (n=5) === r0 finish=stop ctok= 78 ptok= 30 content=MARKER reasoning=- head='The `<|im_end|>` token serves as a special c' tail='language models.' r1 finish=stop ctok= 82 ptok= 30 content=MARKER reasoning=- head='The `<|im_end|>` token serves as a special c' tail='urrent response.' r2 finish=stop ctok= 77 ptok= 30 content=MARKER reasoning=- head='The `<|im_end|>` token serves as a special d' tail='t-aware replies.' r3 finish=stop ctok= 84 ptok= 30 content=MARKER reasoning=- head='The `<|im_end|>` token serves as a special c' tail='rsational roles.' r4 finish=stop ctok= 75 ptok= 30 content=MARKER reasoning=- head='The `<|im_end|>` token serves as a special c' tail='language models.' -> stop 5/5, marker published in content 5/5 === G write-a-chat-template (no bias) (n=5) === r0 finish=stop ctok= 3 ptok= 51 content=- reasoning=- head='<|im_start|>user' tail='<|im_start|>user' r1 finish=stop ctok= 3 ptok= 51 content=- reasoning=- head='<|im_start|>user' tail='<|im_start|>user' r2 finish=stop ctok= 3 ptok= 51 content=- reasoning=- head='<|im_start|>user' tail='<|im_start|>user' r3 finish=stop ctok= 80 ptok= 51 content=- reasoning=- head='<|im_start|>assistant<|im_start|>assistant<|' tail='tant<|im_start|>' r4 finish=stop ctok= 3 ptok= 51 content=- reasoning=- head='<|im_start|>user' tail='<|im_start|>user' -> stop 5/5, marker published in content 0/5 === H write-a-chat-template + logit_bias (n=5) === r0 finish=length ctok=264 ptok= 51 content=- reasoning=- head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>' r1 finish=length ctok=264 ptok= 51 content=- reasoning=- head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>' r2 finish=length ctok=300 ptok= 51 content=- reasoning=- head='<|im_start|>user<|im_start|>assistant<|im_st' tail='<|im_start|>user' r3 finish=length ctok=261 ptok= 51 content=- reasoning=- head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>' r4 finish=length ctok=261 ptok= 51 content=- reasoning=- head='<|im_start|>user<|im_start|><|im_start|>assi' tail='rt|><|im_start|>' -> stop 0/5, marker published in content 0/5 === I marker then HELLO (does the word survive?) (n=5) === r0 finish=stop ctok= 9 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO' tail='<|im_end|>HELLO' r1 finish=stop ctok= 9 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO' tail='<|im_end|>HELLO' r2 finish=stop ctok= 9 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO' tail='<|im_end|>HELLO' r3 finish=stop ctok= 9 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO' tail='<|im_end|>HELLO' r4 finish=stop ctok= 9 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO' tail='<|im_end|>HELLO' -> stop 5/5, marker published in content 5/5 === J marker then HELLO + logit_bias (n=5) === r0 finish=length ctok=200 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO<|im_end|>HELLO<|im_end|>HELL' tail='O<|im_end|>HELLO' r1 finish=length ctok=200 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO<|im_end|>HELLO<|im_end|>HELL' tail='O<|im_end|>HELLO' r2 finish=length ctok=200 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO<|im_end|>HELLO<|im_end|>HELL' tail='O<|im_end|>HELLO' r3 finish=length ctok=200 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO\n\nI cannot reproduce the spec' tail='arning! 📚\n\nEnjoy' r4 finish=length ctok=200 ptok= 40 content=MARKER reasoning=- head='<|im_end|>HELLO\n\n<|im_end|>HELLO\n\n<|im_end|>' tail='m_end|>HELLO\n\n<|' -> stop 0/5, marker published in content 5/5 ``` </details>
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6270912802 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#907
No description provided.