xnn.common.models.hub.cache.scan#

xnn.common.models.hub.cache.scan(cache)[source]#

Yield every complete model directory in the cache.

Parameters:

cache (pathlib.Path) – Cache directory.

Yields:

tuple of (str, pathlib.Path, ModelCard) – The cache key (relative path, with heads/<head> stripped), the directory, and its card.

Return type:

Iterator[tuple[str, Path, ModelCard]]