hf_clear_model_cache: Clear Cached Model Files

hf_clear_model_cacheR Documentation

Clear Cached Model Files

Description

Clears cached model files

Usage

hf_clear_model_cache(
  model_id,
  cache_dir = "~/.cache/huggingface/transformers/",
  warn = TRUE
)

Arguments

model_id

Model whose files you'd like to remove. Note: partial matches will work.

cache_dir

Directory where model files are cached. Defaults to '~/.cache/huggingface/transformers/'.

warn

Whether to prompt user with a warning message or simply remove the cached files. Defaults to TRUE.


farach/huggingfaceR documentation built on Feb. 4, 2023, 10:31 p.m.