rgpycrumbs.uma.aoti_cache

List, inspect and clear the UMA AOTI package cache.

Added in version 1.12.0.

Reads sidecars and the metadata embedded in each .pt2; needs no torch. Prefer the dispatcher:

rgpycrumbs uma aoti-cache list
rgpycrumbs uma aoti-cache inspect omol-CHN-q0-s1
rgpycrumbs uma aoti-cache clear --partial
rgpycrumbs uma aoti-cache clear --all

inspect exits 1 when a package’s embedded metadata disagrees with its key. clear skips an entry whose key is locked by a running prepare-aoti.

Attributes

Functions

_root(→ pathlib.Path)

main(→ None)

Manage UMA AOTI packages prepared by rgpycrumbs uma prepare-aoti.

list_cmd(→ None)

One row per package: key fields, size and compile time.

inspect(→ None)

Sidecar and embedded metadata of NAME, checked against its key.

clear(→ None)

Delete packages named by NAMES, or --all, and/or --partial leftovers.

Module Contents

rgpycrumbs.uma.aoti_cache.warn_on_direct_script_import = None[source]
rgpycrumbs.uma.aoti_cache._CACHE[source]
rgpycrumbs.uma.aoti_cache._root(cache: pathlib.Path | None) → pathlib.Path[source]
rgpycrumbs.uma.aoti_cache.main() → None[source]

Manage UMA AOTI packages prepared by rgpycrumbs uma prepare-aoti.

rgpycrumbs.uma.aoti_cache.list_cmd(cache: pathlib.Path | None, as_json: bool) → None[source]

One row per package: key fields, size and compile time.

rgpycrumbs.uma.aoti_cache.inspect(cache: pathlib.Path | None, name: str) → None[source]

Sidecar and embedded metadata of NAME, checked against its key.

NAME is a path, a file name, a stem, a unique stem prefix, or the digest at the end of the stem.

rgpycrumbs.uma.aoti_cache.clear(cache: pathlib.Path | None, names: tuple[str, Ellipsis], everything: bool, partial: bool, dry_run: bool) → None[source]

Delete packages named by NAMES, or –all, and/or –partial leftovers.