Expand description
Opt-in on-disk cache for parsed remote tensor-file headers.
inspect --cache-headers persists the parsed header — the same
SafetensorsHeaderInfo every format (.safetensors / .gguf /
.npz / .pth) normalizes into —
keyed on (repo, revision, filename, etag), so repeat inspection of the
same remote file across invocations (the natural pattern of iterative
narrowing over a handful of quant candidates) is free on the second and
third call.
Off by default: a plain remote inspect never touches local disk
without this flag. Entries live under
cache_layout::header_cache_path
— an hf-fm-private sidecar directory alongside the standard hf-hub
layout, not inside it — following the same precedent as the
.hf-fm-snapshot.json sidecar in crate::cache.
Structs§
- Header
Cache Entry - On-disk cache entry for one parsed remote header.