Unverified Commit 591e6c59 authored by yilian49's avatar yilian49 Committed by GitHub
Browse files

Small bug fix in transformers model implementation (#9809)

parent 42f34437
......@@ -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!"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment