Commit c551293
★ debug(logit): EOS rank diagnosis reframes 35B 1000-tok problem
User asked: "Could the failure happen at termination time — EOS token
issue?" Adding EOS rank to TQ_LOGIT_PROBE answered decisively.
On Qwen3.6-35B, "Once upon a time in a faraway land", -n 275, T=2.0:
pos=25 EOS rank 511 (mid-narrative, irrelevant)
pos=100 EOS rank 65
pos=125 EOS rank 47 (Sorry! loop starts)
pos=175 EOS rank 13 (alphabet walk starts)
pos=250 EOS rank 6 (alphabet walk continues)
EOS rank climbs 511 → 6 through the degradation. The model IS trying
to terminate with increasing confidence, but top1 always wins at T=0
by 3-7 logits. So "alphabet walk" is the model stuck between wanting
to stop and being forced to output another token.
This reframes the 1000-tok target:
- 6-word "Once upon a time" prompt naturally merits ~150-200 tokens;
beyond that the model signals EOS increasingly strongly
- Substantive --chat prompt with Qwen3-Thinking template emits EOS
IMMEDIATELY (empty <think> block is malformed, model responds with
just <|im_end|>)
Neither is a quant/DeltaNet/MoE bug. The 1000-tok headline metric
requires chat-template work (fill <think> block or use non-thinking
branch) OR a base-completion prompt with scaffold that makes 1000
tokens in-distribution.
Saved user's one-line insight as permanent memory
(feedback_eos_rank_diagnosis.md + MEMORY.md index): "Before chasing
residual-collapse as the cause, check EOS rank first — cheap,
often decisive."
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 562fa34 commit c551293
2 files changed
Lines changed: 99 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
6 | 62 | | |
7 | 63 | | |
8 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3238 | 3238 | | |
3239 | 3239 | | |
3240 | 3240 | | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
3241 | 3263 | | |
3242 | 3264 | | |
3243 | 3265 | | |
| |||
3388 | 3410 | | |
3389 | 3411 | | |
3390 | 3412 | | |
3391 | | - | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
| 3432 | + | |
3392 | 3433 | | |
3393 | 3434 | | |
3394 | | - | |
| 3435 | + | |
3395 | 3436 | | |
3396 | 3437 | | |
3397 | 3438 | | |
| |||
0 commit comments