Maps path if it is a cache with key; otherwise returns null. A
cache that exists but cannot be mapped is an error rather than a miss:
a miss would quantize from model.safetensors, which a device bundle
(lfm3 pack) does not hold. So is a cache with this format's magic
whose header or matrices do not fit the file, such as a truncated
copy: it throws FormatException, since the kernels would otherwise
read past the mapping.
Writes a cache of the matrices shapes lists (name, format, rows,
cols), in that order, asking matrix for each when its turn comes and
handing it to done once written. A producer that makes each matrix
on demand keeps only one in memory at a time, however large the cache.