Skip to content

FEAT Forecasting: batch large datasets in BaseTSFMSolver.forecast#48

Open
felixdivo wants to merge 2 commits into
benchopt:mainfrom
felixdivo:feat/forecast-inference-batching
Open

FEAT Forecasting: batch large datasets in BaseTSFMSolver.forecast#48
felixdivo wants to merge 2 commits into
benchopt:mainfrom
felixdivo:feat/forecast-inference-batching

Conversation

@felixdivo

Copy link
Copy Markdown
Contributor

Closes #43

BaseTSFMSolver.forecast() flattened every (series, cutoff) window into one
list and sent it to forecast_batch as a single oversized batch, which can blow
up memory on large datasets.

This splits the windows into chunks of a new inference_batch_size attribute
(default 128, set in __init__ so subclasses can override it) and calls
forecast_batch per chunk. Output ordering is preserved, so reconstruction is
unchanged.

felixdivo and others added 2 commits June 13, 2026 21:20
Split the flattened (series, cutoff) windows into chunks of
inference_batch_size before calling forecast_batch, instead of sending
the whole dataset as one oversized batch. Reconstruction is unchanged
since the per-batch outputs stay aligned with the flat input list.

Closes benchopt#43

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@felixdivo felixdivo requested a review from rtavenar June 13, 2026 21:27
@felixdivo felixdivo self-assigned this Jun 13, 2026
@felixdivo felixdivo added the enhancement New feature or request label Jun 13, 2026
@felixdivo

Copy link
Copy Markdown
Contributor Author

CI Needs #50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEAT: Forecasting: Use multiple batches for large datasets

1 participant