farguney commited on
Commit
9f50c05
·
verified ·
1 Parent(s): 05bc0dc

Upload jobs/g1fs16_probe.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. jobs/g1fs16_probe.py +34 -0
jobs/g1fs16_probe.py CHANGED
@@ -65,6 +65,40 @@ from trident.nucleus5m3 import M3Config, M3Field # noqa: E402
65
 
66
  DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  ARM = os.environ.get("FS16_ARM", "field")
69
  SEEDS = [int(s) for s in os.environ.get("FS16_SEEDS", "0").split(",")]
70
  STEPS = int(os.environ.get("FS16_STEPS", "24000"))
 
65
 
66
  DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
67
 
68
+ # STRICT ENV: an FS16_* name this probe does not read is a MISCONFIGURED RUN, and
69
+ # it must abort rather than silently fall back to a default.
70
+ #
71
+ # This is not hypothetical. Three arms were launched with `FS16_SEED=0/1/2`, but
72
+ # the probe reads `FS16_SEEDS` (plural), so all three silently defaulted to
73
+ # seed 0 and produced byte-identical metrics -- which, had the gate been read
74
+ # rather than the gradient norms, would have registered a 3/3 pass assembled from
75
+ # three copies of one seed. It is the same failure mode as the optimizer
76
+ # partition that board #10 caught hours earlier: a name that does not match
77
+ # degrades quietly instead of failing loudly. Both are now closed the same way.
78
+ _KNOWN_ENV = {
79
+ "FS16_ACT_INIT", "FS16_ARM", "FS16_BETA_A", "FS16_BYTE_LOCAL",
80
+ "FS16_CARRIER", "FS16_CLOSURE", "FS16_COMP_LR", "FS16_COSINE",
81
+ "FS16_CURRIC", "FS16_D", "FS16_DC", "FS16_EPS", "FS16_EVAL_BIND",
82
+ "FS16_EVAL_EVENTS", "FS16_EVAL_EVERY", "FS16_EVAL_PURITY",
83
+ "FS16_EVAL_WORDS", "FS16_EVENTS", "FS16_FROZEN_PANEL", "FS16_GROUP_CLIP",
84
+ "FS16_LAM_A", "FS16_LAM_CPU", "FS16_LAM_MID", "FS16_LAYERS", "FS16_LR",
85
+ "FS16_LR_FLOOR", "FS16_LR_WARMUP", "FS16_M", "FS16_MID_WARMUP",
86
+ "FS16_NONCE_MAX", "FS16_NO_PUSH", "FS16_ORACLE_ENT_TOL",
87
+ "FS16_ORACLE_ONLY", "FS16_ORACLE_STEPS", "FS16_PREFIX_R",
88
+ "FS16_RESULTS_REPO", "FS16_RESULT_FILE", "FS16_SAMPLED", "FS16_SEEDS",
89
+ "FS16_SLOTS", "FS16_ST", "FS16_STEPS", "FS16_STRATIFIED", "FS16_ST_AFTER",
90
+ "FS16_TRAIN_DEPTH",
91
+ }
92
+ _unknown = sorted(k for k in os.environ if k.startswith("FS16_")
93
+ and k not in _KNOWN_ENV)
94
+ if _unknown:
95
+ _near = {k: [c for c in sorted(_KNOWN_ENV)
96
+ if c.startswith(k) or k.startswith(c)] for k in _unknown}
97
+ raise SystemExit(
98
+ f"unrecognized FS16_* environment variable(s): {_unknown}. This probe "
99
+ f"would ignore them and run its defaults, so the run is refused. "
100
+ f"Closest declared names: {_near}")
101
+
102
  ARM = os.environ.get("FS16_ARM", "field")
103
  SEEDS = [int(s) for s in os.environ.get("FS16_SEEDS", "0").split(",")]
104
  STEPS = int(os.environ.get("FS16_STEPS", "24000"))