Archived
minimaxh3: fuse the int8 modulated-norm producer, dropping the bf16 plane
b025018's W8A8 DiT path unfused the norm: rms_mod wrote a bf16 plane and each int8 linear re-quantised it. That bf16 plane grew the activation arena 14.41->15.54 GiB, which left vram_kv=0 and the server aborted at startup. Mirror the E4M3 path instead. rms_mod_kernel gains a third quant mode (i8), sharing r4d_q8.h's q8_top/q8_pack4 with the int8 quantiser, exposed as the new rms_mod_quant_i8 op; the block's modulated norm now writes a_hm's int8 code pair directly (a_hm is q8_fed, so qkv/gate_up read the codes with no per-linear quantiser) and a_hm carries no bf16 plane. ActFP8::cq()/cs() resolve the pair by trunk format, so the norm producer and both step issues collapse to one path. LinearFP8's int8 guard now demands the bf16 plane only when it quantises itself, matching the fp8 branch, which never required it. Arena is back to fp8 parity (243 buffers, vram_kv 938 MiB); the container serves at TP2 and renders all five task types device-clean. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
cbbab03183
commit
0fe7771210
5 files changed
+82
-85
No files matched your search
@@ -194,6 +194,7 @@ int r4d_rad_cu_repeat (const RadArgs*, RadStream);
|
||||
/* r4d_video.hip */
|
||||
int r4d_rad_rms_mod (const RadArgs*, RadStream);
|
||||
int r4d_rad_rms_mod_quant_fp8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_rms_mod_quant_i8 (const RadArgs*, RadStream);
|
||||
int r4d_rad_flow_x0_step (const RadArgs*, RadStream);
|
||||
int r4d_rad_patch_unfold (const RadArgs*, RadStream);
|
||||
int r4d_rad_vtile_gather (const RadArgs*, RadStream);
|
||||
|
||||
Reference in new issue
Block a user