make_profile: fix the --n-layer global declaration

This commit is contained in:
Saatvik Viniak committed 2026-12-04 01:18:26 -06:00
1 parent b1f68b4beb
commit ac85058cad
1 file changed
+1 -1
+1 -1
View File
@@ -98,6 +98,7 @@ def rank_profile(base_pairs, trace_freq, n_expert=N_EXPERT, no_base=False, reord
def main():
global N_LAYER
ap = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])
ap.add_argument("traces", nargs="*", help="routing traces from --dump-routing")
ap.add_argument("--base", default=str(ROOT / "data" / "expert-profile.bin"), help="ranking to keep first")
@@ -109,7 +110,6 @@ def main():
ap.add_argument("--n-expert", type=int, default=N_EXPERT, help="experts per layer (default 512)")
ap.add_argument("--n-layer", type=int, default=N_LAYER, help="routing layers (default 48; q4_lite is 40)")
a = ap.parse_args()
global N_LAYER
if a.n_layer <= 0:
ap.error("--n-layer must be positive")
N_LAYER = a.n_layer