Auto-sync: 2026-06-27 10:13:44 (part 2)
Browse files
scripts/slurm/summarize_h16_lattice_rollout.sbatch
CHANGED
|
@@ -85,7 +85,11 @@ summary = {
|
|
| 85 |
"rows": rows,
|
| 86 |
}
|
| 87 |
|
| 88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
json_path.write_text(json.dumps(summary, indent=2))
|
| 90 |
|
| 91 |
lines = [
|
|
@@ -120,7 +124,7 @@ lines.extend(["", "Selected candidate types:"])
|
|
| 120 |
for key, value in sorted(selected_types.items()):
|
| 121 |
lines.append(f"- {key}: {value}")
|
| 122 |
|
| 123 |
-
md_path = Path("results/
|
| 124 |
md_path.write_text("\n".join(lines) + "\n")
|
| 125 |
|
| 126 |
print(json.dumps({key: value for key, value in summary.items() if key != "rows"}, indent=2))
|
|
|
|
| 85 |
"rows": rows,
|
| 86 |
}
|
| 87 |
|
| 88 |
+
summary_stem = out_name
|
| 89 |
+
if summary_stem.endswith(".json"):
|
| 90 |
+
summary_stem = summary_stem[:-5]
|
| 91 |
+
summary_stem = summary_stem.replace("_rollout", "")
|
| 92 |
+
json_path = Path(f"results/h16_{summary_stem}_summary.json")
|
| 93 |
json_path.write_text(json.dumps(summary, indent=2))
|
| 94 |
|
| 95 |
lines = [
|
|
|
|
| 124 |
for key, value in sorted(selected_types.items()):
|
| 125 |
lines.append(f"- {key}: {value}")
|
| 126 |
|
| 127 |
+
md_path = Path(f"results/h16_{summary_stem}_summary.md")
|
| 128 |
md_path.write_text("\n".join(lines) + "\n")
|
| 129 |
|
| 130 |
print(json.dumps({key: value for key, value in summary.items() if key != "rows"}, indent=2))
|