← Về thư mục
skills/pufferlib/scripts/inspect_checkpoint.py
- _open_regular_no_follow · function · L53-L66 — def _open_regular_no_follow(path: Path) -> tuple[BinaryIO, os.stat_result]
- _detect_format · function · L69-L90 — def _detect_format(prefix: bytes, suffix: str) -> dict[str, Any]
- _hash_and_prefix · function · L93-L103 — def _hash_and_prefix(handle: BinaryIO, *, chunk_bytes: int = 1_048_576) -> tuple[str, bytes]
- _safe_sidecar · function · L106-L119 — def _safe_sidecar( metadata_path: str | None, *, root: str | Path ) -> tuple[dict[str, Any] | None, list[str]]
- inspect_checkpoint · function · L122-L170 — def inspect_checkpoint( checkpoint_path: str, *, root: str | Path, metadata_path: str | None, expected_sha256: str | None, max_bytes: int, ) -> dict[str, Any]
- build_parser · function · L173-L191 — def build_parser() -> argparse.ArgumentParser
- main · function · L194-L221 — def main(argv: list[str] | None = None) -> int