terra.download_pretrained#
- terra.download_pretrained(repo_id, *, revision=None, cache_dir=None, local_dir=None, token=None)#
Download a published TERRA model bundle.
Returns the local folder path to pass as
model_folder_pathto the inference pipeline.revisionpins a git tag/branch/commit (e.g. the manuscriptv1.0); omit it for the latestmain.By default the bundle is stored in the Hugging Face cache. Pass
local_dirto download the files directly into that folder (created if needed, and returned as-is); passcache_dirto use a custom Hugging Face cache root instead.- Return type: