Skip to contents

Enumerates the models that have been downloaded to the local cache. This is useful when you want to reuse a previously downloaded model but no longer remember the original URL. The cache directory can be overridden with the `LOCALLLM_CACHE_DIR` environment variable or via the `cache_dir` argument.

Usage

list_cached_models(cache_dir = NULL)

Arguments

cache_dir

Optional cache directory to inspect. Defaults to the package cache used by `model_load()`.

Value

A data frame with one row per cached model and the columns `name` (file name), `path` (absolute path), `size_bytes`, and `modified`. Returns an empty data frame when no models are cached.