Commit a07069f
tools: layer_diff_qwen36.sh — per-layer l_out sum diff vs llama-debug
Wraps TQ_LAYER_TRACE=1 (ours) + llama-debug --tensor-filter "^l_out-"
(llama) to produce a side-by-side table of residual-output sums per
layer. Finds the first layer where ours diverges materially from
llama on Qwen3.6-35B-A3B UD-IQ4_XS.
Measurement on "Hello" prompt (preserved in
memory/project_r63_layer_diff_finding.md):
- L0-L32 match llama within 0.0001-0.14 rel_diff (all kernels OK)
- L33 first >10% divergence (DeltaNet), abs_diff 0.46
- L36-L37 peak (29-46%, abs 0.26-0.44)
- L39 final self-attn amplifies to abs_diff 2.42
(ours -3.68 vs llama -6.10)
This localizes the remaining gap to late DeltaNet layers (33-38)
+ final self-attn amplification at L39, NOT to the quantized matmul
kernels that R61/R63 already covered bit-exact.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 622a470 commit a07069f
1 file changed
Lines changed: 81 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 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 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments