Download scripts/check_ckpt.py from CrashOverrideX/Quillan-Ronin: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/CrashOverrideX/Quillan-Ronin/resolve/main/scripts/check_ckpt.py
- Command line
-
hf download hf://CrashOverrideX/Quillan-Ronin/scripts/check_ckpt.py
-
curl -L -o check_ckpt.py https://huggingface.co/CrashOverrideX/Quillan-Ronin/resolve/main/scripts/check_ckpt.py
326 Bytes
| import torch | |
| from pathlib import Path | |
| for d in [r"C:\02_QUILLAN\checkpoints\checkpoints_oni"]: | |
| for p in Path(d).glob("*.pt"): | |
| ck = torch.load(str(p), map_location="cpu", weights_only=False) | |
| print(p.name, "step", ck.get("step"), "best_val", ck.get("best_val")) | |
| print(" keys:", list(ck.keys())[:5]) | |