Skip to content

fix(t0): bump tfc-t0 to 0.5.0 for t0-beta API and gift-eval CI - #29

Merged
AzulGarza merged 5 commits into
mainfrom
fix/tfc-t0-quantile-levels-beta
Sep 17, 2026
Merged

AzulGarza merged 5 commits into
mainfrom
fix/tfc-t0-quantile-levels-beta

Conversation

@AzulGarza

Copy link
Copy Markdown
Member

Summary

Fixes gift-eval CI failure on PR #27 (test gift-eval replication):

TypeError: T0Forecaster.predict() got an unexpected keyword argument 'quantiles'

Root cause: t0-beta shipped with tfc-t0 0.5.0, which renamed the predict() kwarg from quantiles to quantile_levels. Our pin was tfc-t0>=0.2.3, so CI resolved to 0.5.0 while the wrapper still passed quantiles=.

Changes:

  • Bump tfc-t0 to >=0.5.0 and update T0.forecast() to call quantile_levels=
  • Register theforecastingcompany/t0-beta in gift-eval models.yaml (reference_slug: null until GIFT-Eval publishes leaderboard results)
  • CI subset still uses t0-alpha for HF replication

Test plan

Related: https://github.com/TimeCopilot/foundationforecast/actions/runs/35274068491/job/105380265826

Made with Cursor

AzulGarza and others added 2 commits September 17, 2026 15:38
tfc-t0 0.5.0 (released with t0-beta) renamed predict()'s quantiles kwarg
to quantile_levels, which broke gift-eval CI when the resolver picked the
latest package. Register t0-beta in models.yaml for future GIFT-Eval runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Parametrize integration tests with t0-beta, add unit tests for
quantile_levels API and gift-eval registry, and publish v0.1.8 notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codspeed

codspeed Bot commented Sep 17, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 16.98%

⚡ 1 improved benchmark
✅ 10 untouched benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime test_model_forecast[moirai-1.1] 1.6 s 1.4 s +16.98%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix/tfc-t0-quantile-levels-beta (a196652) with main (d6cc53f)

Open in CodSpeed

AzulGarza and others added 2 commits September 17, 2026 15:49
Fix ruff import order in test_t0.py, correct changelog API link path,
and make v0.1.8 code example self-contained for mktestdocs.

Co-authored-by: Cursor <cursoragent@cursor.com>
toml-sort-fix reorders lockfile keys; commit sorted uv.lock so lint passes.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Fix the tests/models/test_t0.py mock to provide three quantile columns and avoid the resulting IndexError.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates the T0 integration for tfc-t0 0.5.0 and adds t0-beta support across code, tests, documentation, and GIFT-Eval.

Changes:

  • Switches predict() to quantile_levels.
  • Registers and documents t0-beta.
  • Refreshes dependency locks and CI/test configuration.
File summaries
File Summary
uv.lock Locks the updated T0 dependency
tests/models/test_t0.py Adds T0 API and beta tests; the mock requires three quantile columns
tests/models/conftest.py Includes t0-beta in model tests
README.md Documents supported T0 models
pyproject.toml Raises the tfc-t0 minimum version
mkdocs.yml Adds changelog navigation
foundationforecast/models/t0.py Updates T0 API usage and documentation
experiments/gift-eval/uv.lock Updates GIFT-Eval dependencies
experiments/gift-eval/tests/test_models_config.py Tests beta registration
experiments/gift-eval/configs/models.yaml Registers t0-beta
docs/model-hub.md Documents T0 model variants
docs/changelogs/v0.1.8.md Records the release changes
docs/changelogs/index.md Links the new changelog
Review details
  • Files reviewed: 11/13 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/models/test_t0.py Outdated
The quantile_levels mock must match [0.1, 0.5, 0.9] on the last axis so
forecast() can index median and requested quantiles without IndexError.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The v0.1.8 changelog conflicts with the declared 0.1.7 project and lockfile versions.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 11/13 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread docs/changelogs/v0.1.8.md
Comment on lines +25 to +27
### Dependencies

* Bumped `tfc-t0` from `>=0.2.3` to `>=0.5.0` (required for t0-beta; still supports t0-alpha).
@AzulGarza
AzulGarza merged commit df1a65f into main Sep 17, 2026
12 checks passed
@AzulGarza
AzulGarza deleted the fix/tfc-t0-quantile-levels-beta branch September 17, 2026 23:05
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.

2 participants