summaryrefslogtreecommitdiff
path: root/experiments/analyze_kp_dynamic_projection_confirmation.py
diff options
context:
space:
mode:
authorYurenHao0426 <Blackhao0426@gmail.com>2026-07-22 20:47:21 -0500
committerYurenHao0426 <Blackhao0426@gmail.com>2026-07-22 20:47:21 -0500
commitc736932ec6fee7e69af2669524c480fa77c56c89 (patch)
treecd7fa21e092dcd8cd1bfde905340802a2b6762d3 /experiments/analyze_kp_dynamic_projection_confirmation.py
parentcb64d220efeea919c3aec676cf79715fd2a6390f (diff)
audit: bind scale evidence to authorized GPUs
Diffstat (limited to 'experiments/analyze_kp_dynamic_projection_confirmation.py')
-rw-r--r--experiments/analyze_kp_dynamic_projection_confirmation.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/experiments/analyze_kp_dynamic_projection_confirmation.py b/experiments/analyze_kp_dynamic_projection_confirmation.py
index 9a17206..12522ec 100644
--- a/experiments/analyze_kp_dynamic_projection_confirmation.py
+++ b/experiments/analyze_kp_dynamic_projection_confirmation.py
@@ -119,6 +119,12 @@ def main():
and evaluation["test_used_for_selection"] is False):
raise ValueError(
f"D4 seed {seed} {condition} evaluation drift")
+ hardware = record.get("hardware", {})
+ if not (hardware.get("cuda_device_name") ==
+ "NVIDIA GeForce GTX 1080"
+ and hardware.get("cuda_visible_devices") in ("5", "7")):
+ raise ValueError(
+ f"D4 seed {seed} {condition} unauthorized hardware")
epochs = record["epochs"]
if (len(epochs) != 200
or any(row["epoch"] != index + 1
@@ -196,7 +202,7 @@ def main():
and work["neutral_projection_observations"]
== 10_000_000):
failures.append(f"seed{seed}:elementwise_cost")
- if record["hardware"]["peak_memory_allocated_bytes"] > int(
+ if hardware["peak_memory_allocated_bytes"] > int(
2.5 * 1024 ** 3):
failures.append(f"seed{seed}:peak_memory")
if len(source_commits) != 1: