MTP coupling on qwen35_fp8's 2-bit draft head; libxe2 rows for the coupling ops

- arch: under --draft-coupling the MtpBlockFP8 draft head keeps the 2-bit logits' top 8,
  rescores them against the trunk's head (logit_rerank) and runs one mtp_couple_propose a
  round, as the Flash-Next head does; qwen35_fp8 declares the draw/state planes and a
  pitch-8 proposal. Off, nothing changes.
- libxe2: device rows for mtp_couple_propose / mtp_couple_verify, a work-item a row over
  spechub's own row helpers and argument readers (built into xe2_couple.cpp).
- spechub: mtp_couple_propose takes an optional q_temp (Q = softmax(score / q_temp)); exact at
  any value. RADIANCE_MTP_Q_TEMP sets it on qwen35_fp8 (default 1: 1.0 > 0.7 > 0.5 here).

w4a16-rtn-mtp4, depth 7 adaptive, temperature 0.7: decode proxy 76.9 -> 78.8 tok/s,
BetterBench decode 80.5 -> 81.7; greedy 8/8 identical with coupling on. Host tests
(spechub|couple|abi|mtp) 7/7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
claudeandClaude Opus 5.5 committed 2026-11-02 05:45:50 +01:00
1 parent bfb1ebd1dd
commit 175f0bbd33
8 files changed
+160 -15

No files matched your search

+6
View File
@@ -2,6 +2,10 @@
#pragma once
#include "rad_abi.h"
/* spechub's operand shapes for the coupling ops (plugin/spechub/spechub.cpp, built into xe2_couple.cpp) */
int rad_mtp_couple_propose_shape(const RadParam*, int, int, RadOpdDesc*);
int rad_mtp_couple_verify_shape(const RadParam*, int, int, RadOpdDesc*);
namespace xe2 {
int add(const RadArgs* a, RadStream s);
@@ -13,6 +17,8 @@ int grid_embed(const RadArgs* a, RadStream s);
int rmsnorm(const RadArgs* a, RadStream s);
int add_rmsnorm(const RadArgs* a, RadStream s);
int mtp_couple_propose(const RadArgs* a, RadStream s);
int mtp_couple_verify(const RadArgs* a, RadStream s);
int rmsnorm_quant_fp8(const RadArgs* a, RadStream s);
int quant_act_fp8(const RadArgs* a, RadStream s);
int gated_quant_fp8(const RadArgs* a, RadStream s);