mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
Fix an error in verify_tp_plan for keys without '.' (#38420)
This commit is contained in:
parent
b1eae943a2
commit
a974e3b4e1
@ -900,7 +900,7 @@ def verify_tp_plan(expected_keys: list[str], tp_plan: Optional[dict[str, str]]):
|
||||
unused_rules = tp_plan
|
||||
|
||||
for key in generic_keys:
|
||||
param_name, _ = key.rsplit(".", 1) if "." in key else key
|
||||
param_name = key.rsplit(".", 1)[0] if "." in key else key
|
||||
generic_param_name = re.sub(r"\d+", "*", param_name)
|
||||
|
||||
if generic_param_name in tp_plan:
|
||||
|
Loading…
Reference in New Issue
Block a user