-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[sgl-kernel] fix b200 kernel ci #13907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
11b7a23
386f966
7a00ba6
5b61577
8783dbe
00f6140
fd8e3ea
92443ea
3bbe5a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,12 @@ | |
| DTYPE = [torch.float16, torch.bfloat16] | ||
|
|
||
|
|
||
| def is_sm90_supported(device=None) -> bool: | ||
| return (torch.cuda.get_device_capability(device)[0] == 9) and ( | ||
| torch.version.cuda >= "12.3" | ||
| ) | ||
|
Comment on lines
+41
to
+44
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
|
|
||
|
|
||
| def quantize_k_cache( | ||
| input_k_cache: torch.Tensor, # (num_blocks, block_size, h_k, d) | ||
| dv: int, | ||
|
|
@@ -362,6 +368,7 @@ def test_flashmla_prefill( | |
| torch.testing.assert_close(ans_lse, ref_lse, atol=1e-6, rtol=2.01 / 65536) | ||
|
|
||
|
|
||
| @pytest.mark.skipif(not is_sm90_supported(), reason="SM90 required for FP8 support") | ||
| @pytest.mark.parametrize("b", B_DECODE) | ||
| @pytest.mark.parametrize("s_q", S_Q_DECODE) | ||
| @pytest.mark.parametrize("s_k", S_K_DECODE) | ||
|
|
@@ -512,6 +519,7 @@ def test_flash_mla_decode( | |
| torch.testing.assert_close(lse_ans, lse_ref, atol=1e-6, rtol=8.01 / 65536) | ||
|
|
||
|
|
||
| @pytest.mark.skipif(not is_sm90_supported(), reason="SM90 required for FP8 support") | ||
| @pytest.mark.parametrize("b", [128]) | ||
| @pytest.mark.parametrize("s_q", [1, 2]) | ||
| @pytest.mark.parametrize("mean_sk", [4096, 8192, 16384]) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.