"vscode:/vscode.git/clone" did not exist on "89b321b847c9c49ff8712bad25d86d8e65280e53"
Unverified Commit c04a8a82 authored by JieXin Liang's avatar JieXin Liang Committed by GitHub
Browse files

[fix] fix misusing of is_cuda (#7790)

parent 6c903611
...@@ -913,7 +913,7 @@ class DeepseekV2AttentionMLA(nn.Module): ...@@ -913,7 +913,7 @@ class DeepseekV2AttentionMLA(nn.Module):
and self.fused_qkv_a_proj_with_mqa.weight.dtype == torch.bfloat16 and self.fused_qkv_a_proj_with_mqa.weight.dtype == torch.bfloat16
and self.fused_qkv_a_proj_with_mqa.weight.shape[0] == 2112 and self.fused_qkv_a_proj_with_mqa.weight.shape[0] == 2112
and self.fused_qkv_a_proj_with_mqa.weight.shape[1] == 7168 and self.fused_qkv_a_proj_with_mqa.weight.shape[1] == 7168
and is_cuda and _is_cuda
and _device_sm >= 90 and _device_sm >= 90
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment