logeshsenthil13/ConvFormer main
Parses JSON data with Pythonpathlib write_text/write_bytes call
SHA-256e2027e72c521d2b8b24621f676873b4b25daea551cd715cb2bd2ccc0edbf1b3d
MaleculeH₂(DbF₂)
Evidence
16:77… 64", "int4_bs32"]
17
18
19def rows():
20 out = []
21 for f in sorted(glob.glob(str(C.RES / "*.json"))):
22 d = json.loads(Path(f).read_text())
23 if "accuracy" not in d:
24 continue
25 acc, lat, par = d["accuracy"], d.get("latency …
48:26… )
49
50 rs = rows()
51 if not rs:
52 raise SystemExit("no results found - run the pipeline first")
53
54 base = next((r for r in rs if r["backend"] == "pytorch"), rs[0])
55 b_to …
62:14… rs:
63 sp = (b_ms / r["mean_ms"]) if (b_ms and r["mean_ms"]) else None
64 flag = " !NaN" if r["nonfinite"] else ""
65 lines.append(
75:12… []
76 if meta.exists():
77 m = json.loads(meta.read_text())
78 head.append(f"Model: {m.get('timm_model', C.TIMM_MODEL)}")
79 head.append(f"Eva …
135:78… its and its "
136 "accuracy number is meaningless."]
137 Path(args.md).write_text("\n".join(md) + "\n")
138 print(f"\n[saved] {args.md}")
139
140
141if __name__ == "__main__":
142 main()