fix: separate L1/L2 scale buffers (different K_sf), fix assembly calls
This commit is contained in:
@@ -70,7 +70,10 @@ def test_scale_assembly():
|
||||
# Path 2: _assemble_scales_cudagraph_safe (GPU-only)
|
||||
expert_offsets = torch.zeros(num_experts + 1, dtype=torch.int32, device=DEVICE)
|
||||
expert_offsets[1:] = torch.tensor(tokens_per_expert, dtype=torch.int32).cumsum(0)
|
||||
scale_a_cudagraph = runner._assemble_scales_cudagraph_safe(x_sf, expert_offsets)
|
||||
scale_a_cudagraph = runner._assemble_scales_cudagraph_safe(
|
||||
x_sf, expert_offsets,
|
||||
runner._padded_x_sf_buf_l1, runner._per_expert_scale_bufs_l1
|
||||
)
|
||||
|
||||
# Compare
|
||||
# Note: shapes may differ due to padding, but the data in the
|
||||
|
||||
Reference in New Issue
Block a user