fix: same gate/up split fix in moe_pipeline.py
This commit is contained in:
@@ -200,9 +200,8 @@ def run_nvfp4_moe(
|
||||
# SiLU(gate) * up (BF16 — nonlinear requires BF16)
|
||||
# ════════════════════════════════════════════════════════════════
|
||||
intermediate = l1_out.shape[1]
|
||||
half = intermediate // 2 # 3072
|
||||
gate = l1_out[:, :half]
|
||||
up = l1_out[:, half:]
|
||||
gate = l1_out[:, :intermediate]
|
||||
up = l1_out[:, intermediate:]
|
||||
activated = torch.nn.functional.silu(gate) * up # (num_slots, half) BF16
|
||||
|
||||
# ════════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user