Skip to content

Commit 7a01766

Browse files
fix: remove unnecessary semicolons
1 parent 9008996 commit 7a01766

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/ops/test_multi_step.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_single_generation_multi_step(
5353

5454
seq_lens_data = [6]
5555
seq_lens_ascendc = torch.tensor(seq_lens_data, device='npu:0', dtype=torch.int32)
56-
seq_lens_python = torch.tensor(seq_lens_data, device='npu:0', dtype=torch.int32);
56+
seq_lens_python = torch.tensor(seq_lens_data, device='npu:0', dtype=torch.int32)
5757

5858
slot_mapping_data = [5]
5959
slot_mapping_ascendc = torch.tensor(slot_mapping_data, device='npu:0', dtype=torch.int32)
@@ -116,7 +116,7 @@ def test_multi_result_generation_multi_step(
116116

117117
seq_lens_data = [6, 8, 6, 6]
118118
seq_lens_ascendc = torch.tensor(seq_lens_data, device='npu:0', dtype=torch.int32)
119-
seq_lens_python = torch.tensor(seq_lens_data, device='npu:0', dtype=torch.int32);
119+
seq_lens_python = torch.tensor(seq_lens_data, device='npu:0', dtype=torch.int32)
120120

121121
slot_mapping_data = [ 5, 135, 261, 389]
122122
slot_mapping_ascendc = torch.tensor(slot_mapping_data, device='npu:0', dtype=torch.int32)

vllm_ascend/attention/attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def advance_step(self,
453453
input_positions = model_input.input_positions,
454454
seq_lens = self.seq_lens_tensor,
455455
slot_mapping = self.slot_mapping,
456-
block_tables = self.block_tables);
456+
block_tables = self.block_tables)
457457

458458

459459
class AscendMetadataBuilder(CommonMetadataBuilder[AscendMetadata]):

0 commit comments

Comments
 (0)