Feature: TimesFM Longer Projection Head#3121
Merged
Merged
Conversation
Co-authored-by: Zhihao Dai <zhihao.dai@eng.ox.ac.uk>
Co-authored-by: Zhihao Dai <zhihao.dai@eng.ox.ac.uk>
Co-authored-by: Zhihao Dai <zhihao.dai@eng.ox.ac.uk>
Co-authored-by: Zhihao Dai <zhihao.dai@eng.ox.ac.uk>
…imesfm-longer-head
dennisbader
requested changes
May 21, 2026
Collaborator
dennisbader
left a comment
There was a problem hiding this comment.
Looks great, thanks a lot for the quick fix @daidahao 🚀
Just added one minor comments regarding one of the tests. After that everything is good to go 💯
Co-authored-by: Zhihao Dai <zhihao.dai@eng.ox.ac.uk>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3121 +/- ##
==========================================
- Coverage 96.42% 96.36% -0.07%
==========================================
Files 161 161
Lines 17273 17281 +8
==========================================
- Hits 16656 16653 -3
- Misses 617 628 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
dennisbader
approved these changes
May 21, 2026
Collaborator
dennisbader
left a comment
There was a problem hiding this comment.
LGTM, thanks a lot @daidahao 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist before merging this PR:
Fixes #.
Summary
Code is mostly hand-written, but I asked Codex to write the following summary and changes:
This PR adds optional support for TimesFM 2.5’s longer output projection head in Darts.
With
use_longer_projection_head=True, users can run non-autoregressive forecasts up to:output_chunk_length + output_chunk_shift <= 1024Default behavior is unchanged (
False, max 128).Changes
use_longer_projection_head: bool = FalsetoTimesFM2p5Model.output_quantile_len = 1024to TimesFM 2.5 model definition.use_longer_projection_head:use_longer_projection_headinto loaded PL module viaadditional_params.test_timesfm2p5.py:use_longer_projection_head=True/FalseUnreleased→Improved.Backward Compatibility
use_longer_projection_head=Trueis set explicitly.Testing
darts/tests/models/forecasting/test_timesfm2p5.pyOther Information