Skip to content

Commit

Permalink
apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
JingyaHuang committed Oct 23, 2024
1 parent 0a3266d commit 519589a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/neuron/modeling_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def load_model(
decoder_path: Union[str, Path],
tensor_parallel_size: int,
):
if not tensor_parallel_size > 1:
if tensor_parallel_size == 1:
# Initialize Neuron Runtime before loading models
runtime = torch.classes.neuron.Runtime()
runtime.initialize()
Expand Down

0 comments on commit 519589a

Please sign in to comment.