Skip to content

Commit ce31596

Browse files
committed
format code
1 parent 606f496 commit ce31596

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lmdeploy/pytorch/engine/devices/ascend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def update_step_context(cls, step_context):
1717
single_attention_mask = torch.logical_not(
1818
torch.tril(
1919
torch.ones(step_context.q_seq_length[i],
20-
step_context.block_offsets.shape[1] * block_size,
20+
step_context.block_offsets.shape[1] *
21+
block_size,
2122
dtype=torch.bool).cuda(),
2223
diagonal=step_context.kv_seq_length[i] -
2324
step_context.q_seq_length[i],

0 commit comments

Comments
 (0)