Skip to content

toto-2.0: load model once across tasks; tirex-2: unpin datasets - #176

Merged
shchur merged 1 commit into
mainfrom
toto-load-once-tirex2-unpin
Aug 19, 2026
Merged

toto-2.0: load model once across tasks; tirex-2: unpin datasets#176
shchur merged 1 commit into
mainfrom
toto-load-once-tirex2-unpin

Conversation

@shchur

@shchur shchur commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Two small model-wrapper fixes surfaced while running multi-task evals.

toto-2.0: load the model once, reuse across tasks

_fit_predict is called once per task, and it reloaded the full pretrained model from scratch every time. On GPU the previous task's model was often still resident when the next was moved onto the device, giving a transient 2× model footprint and torch.OutOfMemoryError partway through a multi-task run (observed on a 2.5B checkpoint: process pinned at ~21.5 GiB and failing to allocate tens of MiB, regardless of batch_size). Now the model is loaded once (cached on self._model) and reused; only the lightweight per-task config/predictor is rebuilt.

tirex-2: drop the datasets==3.6.0 pin

datasets==3.6.0 can't deserialize parquet whose embedded schema metadata uses the newer List feature type (e.g. the TIME-bench datasets), failing with ValueError: Feature type 'List' not found. The pin came from tirex-2's fev extra; we don't install that extra, so removing the explicit line lets the resolver honor fev's datasets>=2.15,<5.0 and pick 4.x — matching every other wrapper. Verified on Commodity_Import/M/short (resolves to datasets 4.8.5, loads and produces metrics).

Both verified locally.

toto-2.0: the wrapper reloaded the full model from scratch on every task
(fit_predict is called per task), so the previous task's model was still
resident when the next was moved to the GPU -> transient 2x model memory and
CUDA OOM on multi-task runs. Load the model once and reuse it across tasks.

tirex-2: drop the datasets==3.6.0 pin. 3.6.0 can't read parquet whose schema
metadata uses the newer 'List' feature type (e.g. the TIME-bench datasets),
failing with "Feature type 'List' not found". Unpinning inherits fev's
datasets>=2.15,<5.0 and resolves to 4.x, matching the other wrappers.
@shchur
shchur merged commit 1bc95fd into main Aug 19, 2026
5 checks passed
@shchur
shchur deleted the toto-load-once-tirex2-unpin branch August 19, 2026 14:24
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