Expand description
Optional CPU-reference comparisons, research dumps and per-step traces.
FunctionsΒ§
- argmax π
- dump_
decode π - dump_
prefill_ πchunk - Record prompt argmax rows and the final long-context attention selection.
- dump_
run π - logits_
diff π - qwen4_
exp_ πcheck_ rows - Compare the GPUβs rows against the CPU reference, which forwards the
same tokens one at a time. With
next(the token after each row), the CPU also runs the MTP head per row and the last rowβs draft logits are compared with the GPUβs.