aoti-cache

Inspect the compiled UMA cache

Lists, inspects and clears the packages prepare-aoti wrote. It needs click and no torch: it reads the sidecars and the metadata embedded in each .pt2 directly.

rgpycrumbs uma aoti-cache

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

Usage

rgpycrumbs uma aoti-cache [OPTIONS] COMMAND [ARGS]...

clear

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

Usage

rgpycrumbs uma aoti-cache clear [OPTIONS] [NAMES]...

Options

--cache <cache>

Package cache [$RGPYCRUMBS_UMA_CACHE or $XDG_CACHE_HOME/rgpycrumbs/uma].

--all

Every package.

--partial

Leftovers of interrupted compiles.

--dry-run

Say what would go; delete nothing.

Arguments

NAMES

Optional argument(s)

inspect

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.

Usage

rgpycrumbs uma aoti-cache inspect [OPTIONS] NAME

Options

--cache <cache>

Package cache [$RGPYCRUMBS_UMA_CACHE or $XDG_CACHE_HOME/rgpycrumbs/uma].

Arguments

NAME

Required argument

list

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

Usage

rgpycrumbs uma aoti-cache list [OPTIONS]

Options

--cache <cache>

Package cache [$RGPYCRUMBS_UMA_CACHE or $XDG_CACHE_HOME/rgpycrumbs/uma].

--json

One JSON object per entry.

Usage

rgpycrumbs uma aoti-cache list
rgpycrumbs uma aoti-cache list --json
rgpycrumbs uma aoti-cache inspect omol-CHN-q0-s1
rgpycrumbs uma aoti-cache clear omol-CHN-q0-s1 --dry-run
rgpycrumbs uma aoti-cache clear --partial

Name an entry by its path, file name or stem. A stem prefix that matches one entry works too, and so does the digest at the end of the stem. inspect exits 1 when the embedded metadata disagrees with the sidecar’s key. clear skips, and exits 1 for, an entry whose key is locked by a running prepare-aoti; --partial removes the leftovers of interrupted compiles.