tab_pfn_clear_cache: Remove cached TabPFN weights

View source: R/tabpfn-weights.R

tab_pfn_clear_cacheR Documentation

Remove cached TabPFN weights

Description

Deletes checkpoints that brulee downloaded for brulee_tab_pfn(), for one model version or all of them, along with any partial downloads, and unloads models loaded in the current session. Use it to free disk space (each checkpoint takes 200 MB to 900 MB), to force a fresh download, or to delete the weights when you stop using them, as the Prior Labs license requires when it ends.

Usage

tab_pfn_clear_cache(
  version = NULL,
  cache_dir = tabpfn_cache_dir(),
  ask = rlang::is_interactive()
)

Arguments

version

A model version from tab_pfn_versions(), or NULL (the default) for all versions.

cache_dir

The root of the local weight cache.

ask

A logical: ask for confirmation before deleting? Defaults to TRUE in interactive sessions.

Details

Weights downloaded by the Python tabpfn package are never removed: delete those files yourself if you no longer need them.

Value

The paths of the deleted files, invisibly.

Examples


tab_pfn_clear_cache("v3")
tab_pfn_clear_cache()


brulee documentation built on Nov. 25, 2026, 9:06 a.m.