mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-05 12:24:28 +01:00
tests: the pinned FP4-Local checkpoint's test skips for a reason the CI lists
It skipped off the reference box with a reason of its own, and the local CI refused it: a skip passes only for a reason ci.yml lists, here what a runner cannot have. It now says "needs the pinned bytes cached", as the other tests that read the pinned bytes do. On the reference box it runs and passes, the checkpoint's RoPE being the one measured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2a82b57c2f
commit
498e100403
1 file changed
+2
-1
@@ -532,7 +532,8 @@ class TheMillionTokenWindow(unittest.TestCase):
|
||||
# the real pinned config, where the box has it: the RoPE the 1M window was measured on (2026-11-09)
|
||||
real = pathlib.Path.home() / ".cache/huggingface/hub" / HUB / "snapshots" / PINS["FLASH_LOCAL_REV"] / "config.json"
|
||||
if not real.exists():
|
||||
self.skipTest("the pinned FP4-Local checkpoint is not on this machine")
|
||||
# a reason the CI lists (ci.yml): the runner never has the checkpoint, the reference box does
|
||||
self.skipTest("needs the pinned bytes cached (the FP4-Local checkpoint's config.json at its pinned revision)")
|
||||
t = json.loads(real.read_text())["text_config"]
|
||||
self.assertEqual(t["max_position_embeddings"], 262144)
|
||||
self.assertEqual({k: t["rope_parameters"][k] for k in self.CONFIG["text_config"]["rope_parameters"]},
|
||||
|
||||
Reference in new issue
Block a user