Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 8b41ae2

Browse files
committed
ruff formatting
1 parent 221ea94 commit 8b41ae2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dist_run.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
get_num_params,
3232
GPUMemoryMonitor,
3333
)
34-
from distributed.verification_utils import find_cpu_tensors
3534
from torch.distributed.pipelining import PipelineStage, ScheduleGPipe
3635
from torchchat.cli.builder import _initialize_tokenizer, TokenizerArgs
3736
from torchchat.model import ModelArgs, Transformer
@@ -219,7 +218,6 @@ def _update_padded_sequence(
219218
new_token: torch.Tensor,
220219
prompt_lengths: List[int],
221220
) -> None:
222-
223221
for i in range(len(prompt_lengths)):
224222
prompt_lengths[i] += 1
225223
padded_sequence[i, prompt_lengths[i] - 1] = new_token[i, 0]

0 commit comments

Comments
 (0)