Skip to content

Commit f61298c

Browse files
committed
fix
1 parent 2741e3f commit f61298c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/twinkle/utils/torch_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def selective_log_softmax(logits, index) -> 'torch.Tensor':
123123

124124
try:
125125
from megatron.core import parallel_state as mpu
126-
if mpu.get_tensor_model_parallel_world_size() > 1:
126+
if mpu.get_tensor_model_parallel_world_size() >= 1:
127127
return _vocab_parallel_selective_log_softmax(logits, index)
128128
except Exception:
129129
pass

0 commit comments

Comments
 (0)