Skip to content

tirex-2: cache checkpoint from S3 in wrapper - #175

Merged
shchur merged 1 commit into
mainfrom
tirex-2-cache-from-s3
Aug 19, 2026
Merged

tirex-2: cache checkpoint from S3 in wrapper#175
shchur merged 1 commit into
mainfrom
tirex-2-cache-from-s3

Conversation

@shchur

@shchur shchur commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

The tirex-2 wrapper passed model_path straight into load_model, so an s3:// prefix would not resolve (unlike the chronos/chronos-2/toto-2.0 wrappers, which cache from S3 first).

Wrap it with fev.utils.maybe_cache_from_s3 so the checkpoint is downloaded locally before loading. Local (s3:// and hub) paths are unaffected.

Sanity-checked locally: evaluate.py -m tirex-2 -k '{"model_path":"s3://.../TiRex-2/","device":"cpu"}' on one task now downloads the checkpoint and produces metrics (exit 0).

Wrap model_path with fev.utils.maybe_cache_from_s3 so the tirex-2 wrapper
accepts an s3:// prefix (matching the chronos/toto wrappers), downloading
the checkpoint locally before load_model.
@shchur
shchur merged commit 15cd8d6 into main Aug 19, 2026
5 checks passed
@shchur
shchur deleted the tirex-2-cache-from-s3 branch August 19, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant