← Về thư mục
skills/retrosynthesis_planning/model_deployment.py
- CheckpointDeploymentError · class · L43-L44 — class CheckpointDeploymentError(RuntimeError)
- CheckpointSpec · class · L48-L79 — class CheckpointSpec
- download_url · method · L60-L61 — def download_url(self) -> str
- source_url · method · L64-L65 — def source_url(self) -> str
- to_dict · method · L67-L79 — def to_dict(self) -> dict[str, Any]
- checkpoint_spec · function · L116-L123 — def checkpoint_spec(name: str) -> CheckpointSpec
- _hash_stream · function · L126-L149 — def _hash_stream( handle: BinaryIO, *, copy_to: BinaryIO | None = None, max_bytes: int | None = None, ) -> tuple[int, str, str]
- _open_regular_binary · function · L152-L165 — def _open_regular_binary(path: Path) -> BinaryIO
- _path_matches_regular_inode · function · L168-L173 — def _path_matches_regular_inode(path: Path, expected: os.stat_result) -> bool
- _open_directory_identity · function · L176-L197 — def _open_directory_identity(path: Path) -> tuple[int | None, os.stat_result]
- _path_matches_directory_inode · function · L200-L205 — def _path_matches_directory_inode(path: Path, expected: os.stat_result) -> bool
- _checkpoint_verification · function · L208-L226 — def _checkpoint_verification( spec: CheckpointSpec, *, size: int, md5: str, sha256: str ) -> dict[str, Any]
- verify_checkpoint · function · L229-L255 — def verify_checkpoint(path: str | Path, spec: CheckpointSpec) -> dict[str, Any]
- download_checkpoint · function · L258-L373 — def download_checkpoint( spec: CheckpointSpec, destination: str | Path, *, allow_network: bool = False, timeout_seconds: float = 60.0, web_download: Callable[..., dict[str, Any]] | None = None, ) -> dict[str, Any]
- model_manifest · function · L376-L399 — def model_manifest(spec: CheckpointSpec, checkpoint_sha256: str) -> dict[str, Any]
- _model_manifest_text · function · L402-L411 — def _model_manifest_text(spec: CheckpointSpec, checkpoint_sha256: str) -> str
- write_model_manifest · function · L414-L475 — def write_model_manifest( destination: str | Path, spec: CheckpointSpec, checkpoint_sha256: str ) -> Path
- _manifest_relative_path · function · L478-L508 — def _manifest_relative_path( destination: Path, manifest: str | Path | None ) -> Path | None
- _safe_member_path · function · L511-L538 — def _safe_member_path(member: zipfile.ZipInfo) -> PurePosixPath
- _parent_directory_names · function · L541-L545 — def _parent_directory_names(path: PurePosixPath) -> set[str]
- _copy_checkpoint_member · function · L548-L568 — def _copy_checkpoint_member( source: BinaryIO, target: BinaryIO, *, expected_size: int ) -> tuple[int, str]
- _stat_signature · function · L571-L578 — def _stat_signature(identity: os.stat_result) -> tuple[int, int, int, int, int]
- _verify_published_tree · function · L581-L672 — def _verify_published_tree( root: Path, *, expected_directories: set[str], expected_files: dict[str, tuple[int, str]], ) -> None
- extract_checkpoint · function · L675-L812 — def extract_checkpoint( archive: str | Path, destination: str | Path, spec: CheckpointSpec, *, manifest: str | Path | None = None, ) -> dict[str, Any]
- _parser · function · L815-L830 — def _parser() -> argparse.ArgumentParser
- main · function · L833-L849 — def main(argv: Sequence[str] | None = None) -> int