Benign huggingface Download

logeshsenthil13/ConvFormer main

Parses JSON data with Pythonpathlib write_text/write_bytes call
SHA-256e2027e72c521d2b8b24621f676873b4b25daea551cd715cb2bd2ccc0edbf1b3d
MaleculeH₂(DbF₂)

Evidence

Parses JSON data with Python lines 16–25
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 …
English function-word token "the" lines 48–55
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 …
English function-word token "and" lines 62–65
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(
Read text via pathlib lines 75–79
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 …
pathlib write_text/write_bytes call lines 135–142
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()

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.