#!/usr/bin/env python3 """Portable structural check for the published REAP568 release.""" from __future__ import annotations import sys from pathlib import Path def main() -> None: root = Path(sys.argv[1] if len(sys.argv) == 2 else ".") shards = [root / f"Kimi-K3-UD-IQ1_S-{n:05d}-of-00014.gguf" for n in range(1, 15)] missing = [p.name for p in shards if not p.is_file()] if missing: raise SystemExit(f"missing GGUF shards: {', '.join(missing)}") total = sum(p.stat().st_size for p in shards) if total < 350_000_000_000: raise SystemExit(f"unexpected checkpoint size: {total} bytes") for name in ("config.json", "tokenizer_config.json", "tiktoken.model"): if not (root / name).is_file(): raise SystemExit(f"missing required sidecar: {name}") print(f"OK: 14 GGUF shards; {total / 1e9:.2f} GB decimal") if __name__ == "__main__": main()