Small bug fix in transformers model implementation (#9809)
This commit is contained in:
@@ -213,7 +213,7 @@ class TransformersForCausalLM(nn.Module):
|
|||||||
"""
|
"""
|
||||||
tp_plan = getattr(self.model.config, "base_model_tp_plan", None) or {}
|
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(
|
raise ValueError(
|
||||||
f"{type(self.model)} does not support tensor parallel yet!"
|
f"{type(self.model)} does not support tensor parallel yet!"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user