Skip to content

Commit 8da6754

Browse files
committed
fix format
Signed-off-by: wangli <wangli858794774@gmail.com>
1 parent 13d7cfe commit 8da6754

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ut/models/test_deepseek_v2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def test_custom_deepseek_v2_mla_attention(mock_rms_norm, mock_distributed,
242242
positions = torch.arange(4).repeat(2, 1)
243243
with patch.object(attn.mla_attn,
244244
"__call__",
245-
return_value=torch.randn(2, 4, 128)):
246-
with pytest.raises(AssertionError):
247-
attn(positions, x)
245+
return_value=torch.randn(
246+
2, 4, 128)), pytest.raises(AssertionError):
247+
attn(positions, x)
248248

249249
attn = CustomDeepseekV2MLAAttention(config=base_config,
250250
hidden_size=128,

0 commit comments

Comments
 (0)