Skip to content

tests: keep tests/ aligned with upstream; move SM120 decode coverage to sgl_deep_gemm/tests - #65

Merged
Fridge003 merged 2 commits into
sgl-project:devfrom
leavelet:sm120-tests-align
Jul 21, 2026
Merged

tests: keep tests/ aligned with upstream; move SM120 decode coverage to sgl_deep_gemm/tests#65
Fridge003 merged 2 commits into
sgl-project:devfrom
leavelet:sm120-tests-align

Conversation

@leavelet

Copy link
Copy Markdown

Follow-up to the #59 review (@Fridge003).

Changes

  1. Revert tests/test_fp8_fp4.py to its pre-#59 state. Move tests to sgl_deep_gemm/tests/test_fp8_fp4.py

  2. Add MoE-decode coverage to sgl_deep_gemm/tests/.

leavelet added 2 commits July 20, 2026 21:40
The valid-rows comparison for m-grouped contiguous (padding rows are
unspecified after the decode optimizations) belongs in sglang's own
test copy, which already has it (sgl_deep_gemm/tests/test_fp8_fp4.py).
Requested in deepseek-ai#59 review.
The contiguous test always selected the maximum alignment (128), so the
decode layouts (alignment 32, BLOCK_M=32) were never exercised. Pass the
per-group expected m like the masked test does and add a
(num_groups=128, expected_m_per_group=2) decode case. Covers FP8, w4a4
and mixed FP4 quant configs at the minimum alignment; existing cases
keep selecting 128.
@Fridge003
Fridge003 merged commit baf53a9 into sgl-project:dev Jul 21, 2026
Fridge003 pushed a commit that referenced this pull request Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants