Small bug fix in transformers model implementation (#9809)

This commit is contained in:
yilian49
2025-08-29 19:51:44 -06:00
committed by GitHub
parent 42f34437ab
commit 591e6c5983

View File

@@ -213,7 +213,7 @@ class TransformersForCausalLM(nn.Module):
"""
tp_plan = getattr(self.model.config, "base_model_tp_plan", None) or {}
if not tp_plan and self.tp_size > 1:
if not tp_plan and tp_size > 1:
raise ValueError(
f"{type(self.model)} does not support tensor parallel yet!"
)