Fix expert pair dict keys: w1/w3 not gate_proj/up_proj
This commit is contained in:
@@ -291,8 +291,8 @@ def build_plan(src_dir: Path):
|
||||
paired_names = set()
|
||||
expert_pair_groups = []
|
||||
for base, parts in expert_pairs.items():
|
||||
if "gate_proj" in parts and "up_proj" in parts:
|
||||
expert_pair_groups.append((base, parts["gate_proj"], parts["up_proj"]))
|
||||
if "w1" in parts and "w3" in parts:
|
||||
expert_pair_groups.append((base, parts["w1"], parts["w3"]))
|
||||
paired_names.add(parts["gate_proj"])
|
||||
paired_names.add(parts["up_proj"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user