tahamajs/RR / check_sweep_progress.py
tahamajs's picture
download
raw
1.4 kB
import csv, os, sys, time
RESULTS_DIR = r"D:\SVD_Project\results"
MODELS = [
("DistilBERT", "distilbert_sst2_comprehensive_sweep"),
("RoBERTa", "roberta_sst2_comprehensive_sweep"),
("GPT-2", "gpt2_sst2_comprehensive_sweep"),
("Qwen3.5", "qwen3_5_sst2_comprehensive_sweep"),
]
print("=" * 80)
print("LIVE 4-MODEL COMPREHENSIVE BENCHMARK SWEEP MONITOR")
print("=" * 80)
for label, folder in MODELS:
csv_path = os.path.join(RESULTS_DIR, folder, "summary.csv")
if not os.path.exists(csv_path):
print(f"{label:12s} | NOT STARTED (0 / 189)")
continue
try:
with open(csv_path, "r", encoding="utf-8") as f:
rows = list(csv.DictReader(f))
total = len(rows)
passes = sum(1 for r in rows if r.get("status") == "PASS")
skips = sum(1 for r in rows if "SKIP" in r.get("status", ""))
fails = sum(1 for r in rows if r.get("status") == "FAIL")
last_mod = rows[-1].get("module_name", "-") if rows else "-"
last_status = rows[-1].get("status", "-") if rows else "-"
last_acc = rows[-1].get("accuracy_pct", "-") if rows else "-"
print(f"{label:12s} | Progress: {total:3d} / 189 | PASS: {passes:3d} | SKIP: {skips:3d} | FAIL: {fails:3d} | Latest: {last_mod} ({last_status}, {last_acc}%)")
except Exception as e:
print(f"{label:12s} | Error reading summary: {e}")
print("=" * 80)

Xet Storage Details

Size:
1.4 kB
·
Xet hash:
c1d243da1ae72e09fed9b12580b9a0e9bff9b1bbb0c9fbcb4fa88915c74dcee5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.