Tafsut logo

Tafsut-GIFT

Tafsut-GIFT forecasts a single time series from its past values. At each future step it predicts a median and eight surrounding quantiles, all in the units of the input. The model was pretrained on synthetic series, then adapted on real and synthetic windows. The GIFT suffix identifies the rules used to select the real data for zero-shot evaluation on GIFT-Eval.

Quick start · Technical report · Architecture · GIFT data selection · Evaluation

Sixteen zero-shot Tafsut-GIFT forecasts on held-out GIFT-Eval windows, including electricity load, Seattle traffic, hospital activity, solar generation, and US births. Each chart draws the history, forecast and uncertainty bands, then the held-out observations.

Zero-shot forecasts on GIFT-Eval. The animation cycles through 16 datasets in 32 seconds. Each chart shows three time steps of history for every step forecast. Tafsut-GIFT used up to 2,048 past time steps without task-specific fitting. The median forecast and central 60% and 80% intervals appear first, followed by the dashed line of held-out observations.

Quick start

Install the inference package with Python 3.10 or later.

python -m pip install "tafsut==0.2.0"

This example uses two weeks of daily demand to forecast the next seven days. Replace history with your own observations in chronological order.

import torch
from tafsut import TafsutModel, forecast

model = TafsutModel.from_pretrained("Tafsut-FM/tafsut-gift", device="cpu")
history = torch.tensor([
    42.0, 45.0, 43.0, 46.0, 51.0, 63.0, 58.0,
    44.0, 47.0, float("nan"), 48.0, 53.0, 65.0, 60.0,
])
prediction = forecast(model, history, horizon=7)

print(prediction.shape)  # torch.Size([1, 7, 9])
median = prediction[0, :, 4]
lower, upper = prediction[0, :, 0], prediction[0, :, 8]  # 10th and 90th percentiles

You can also pass a batch shaped (batch, time). Use NaN or a false entry in context_mask for a missing observation. The result has shape (batch, horizon, 9), with deciles ordered from 0.1 through 0.9. To run offline, pass the path to a downloaded checkpoint directory in place of the Hub ID. Inference package

Architecture

The released checkpoint has 102.9 million parameters, including its extended quantile head. The technical report lists 102.7 million for the backbone trained to predict the 10th, 50th and 90th percentiles. The extended head keeps that backbone's median and learns the eight surrounding deciles.

Component Released configuration
Input Up to 32,768 history steps, grouped into non-overlapping patches of 16
Encoder 14 Transformer blocks, model width 768, SwiGLU feed-forward width 2,048
Attention 12 heads of width 64, with rotary position embeddings and gated, bidirectional self-attention
Output Nine quantiles per step, up to 1,024 future steps in one forward pass

The model normalizes each series using its observed history. Each historical patch encodes values, observation masks and relative time. The encoder processes these patches together with blank future patches, so it can forecast the whole horizon in one pass. It then maps the quantiles back to the original scale. Checkpoint configuration

An hourly solar series splits into four history patches. A 14-block encoder processes them alongside three future queries. Three output patches join to form a 48-hour forecast. Below, the four panels from the technical report appear side by side.

Follow one GIFT-Eval solar forecast from left to right. In this forward pass, Tafsut-GIFT splits 64 observed hours into four 16-hour patches. The encoder processes them alongside a learned register token and three future queries. The colored columns show six of each token’s 768 channels as they pass through the 14 blocks. The quantile head reads the three future tokens and produces one 16-hour forecast patch per token. Joining the patches in time order and undoing normalization gives 48 hourly forecasts in the original units. The line shows the median and the shading spans the 10th to 90th percentiles.

The four panels below the example are from the technical report. Panel (a) follows the full forecasting path, (b) shows the shared patch embedding, (c) opens one encoder block, and (d) expands the attention operation inside that block.

What the GIFT suffix means

We excluded the official GIFT-Eval training split and screened external sources for overlap with GIFT-Eval forecast targets. Starting from the synthetic checkpoint, we trained for 200 more epochs, mixing synthetic windows with real windows from 178 selected source configurations in GIFT-Eval-Pretrain and the Chronos collections.

The screen distinguishes shared history from shared forecast targets. The monthly tourism example below illustrates that distinction. The adaptation corpus also overlaps FEV-Bench, so the report's zero-shot claim for this checkpoint applies specifically to GIFT-Eval.

Full GIFT-Eval source selection

The inventory below reproduces the GIFT-Eval-targeted real-data corpus selection table from the technical report. P denotes GIFT-Eval-Pretrain and C denotes Chronos pretrain, including its companion collection. Each dataset appears under its original collection. An arrow points to the copy used for training. D, W, H, M, Q and Y denote daily, weekly, hourly, monthly, quarterly and yearly frequencies. Year ranges group multiple configurations.

All 105 source entries grouped by training decision. 77 were retained as listed, 17 used selected copies, two were filtered and nine were excluded.
View the GIFT-Eval source table and notes
Original collection Decision Datasets
P Retained Beijing Subway, HZMetro, SHMetro, LOS_LOOP, PEMS03, PEMS04, PEMS07, PEMS08
P Retained PEMS-BAY, Q-Traffic, LargeST 2017–21c, Alibaba 2018, Azure VM 2017, Borg 2011
P Retained BDG-2 bear, BDG-2 fox, BDG-2 panther, BDG-2 rat, Buildings900K, Borealis, Bull, Cockatoo, Hog, Sceaux
P Retained Beijing air quality, China air quality, Oikolab, Subseasonal temperature, Subseasonal precipitation, CMIP6 (1850–2010)c, ERA5 (1989–2018)c
P Retained CDC ILINet, CDC NREVSS, Project Tycho, COVID mobility, COVID energy, Favorita sales, Favorita transactions, GoDaddy, Bitcoin
P Retained GEFCom 2012, GEFCom 2014, GEFCom 2017, ELF, IDEAL, LCL, PDB, SMART
P Retained Spain, Residential load, Residential PV, Solar power, wind power, Wind Farms, KDD2022, Extended web traffic
P Retained Wiki-Rolling, vehicle trips, sunspots, M3 quarterly, M3 yearly, M3 other, mixed weekly traffic
P Selected C copy Australian electricityg, ElecDemandg, CIF 2016 (6/12), M1 (M/Q/Y), M3 monthly, FRED-MD, London meters, Pedestrian
P Selected C copy M5b, NN5 (D/W), Rideshare, Taxi 30-min, Uber (D/H), Tourism (M/Q/Y)e, Traffic hourly
P Selected P copy Web weeklya
P Selected C and P copies by frequency Weatherh
C Retained Taxi hourly, USHCN daily, WeatherBench daily, WeatherBench weekly, WeatherBench hourlyc, Dominick, ERCOT, Exchange rate
C Retained Mexico City bikes, Wiki daily 100K, Wind Farms daily, Wind Farms hourly
C Retained after filtering Solar natived, Solar hourlyd
C Retained Spanish energy and weatherf, Brazilian cities temperaturef
Both collections Excluded entirely Car parts, COVID deaths, M4 (all frequencies), Saugeen, US births, UCI electricity, Hospital, KDD Cup 2018, Temperature/rain

Table notes

  • a Web weekly maps to P/traffic_weekly, which retains the web series and 862 road series.
  • b The Chronos M5 copy adds 56 days.
  • c WeatherBench hourly groups 14 stored variables. CMIP6 spans 1850–2010 in five-year steps, ERA5 spans 1989–2018 annually, and LargeST spans 2017–2021.
  • d We removed the same 137 Alabama solar series at both resolutions and retained 5,029 series per resolution.
  • e The training corpus includes Chronos monthly tourism, which shares some history with GIFT-Eval M4 monthly. The shared intervals verified in the report fall outside the forecast targets.
  • f Spanish energy and weather and Brazilian cities temperature come from the Chronos companion collection.
  • g Australian electricity and ElecDemand both map to C/monash_australian_electricity.
  • h Weather maps to C/monash_weather at daily frequency and P/oikolab_weather at hourly frequency.

Evaluation

Across 97 GIFT-Eval tasks and 371,330 forecast windows, Tafsut-GIFT achieved 0.6690 normalized MASE for its median forecast and 0.4607 normalized CRPS for its probabilistic forecast, using the nine deciles. Both scores are geometric means of per-task error ratios relative to the seasonal naïve forecast. A score below 1 improves on that baseline.

GIFT-Eval scores for 28 open-weight zero-shot releases, with Tafsut-Synth shown for reference. Tafsut-GIFT ranks fourth by normalized MASE and fifth by normalized CRPS.

Among the 28 open-weight zero-shot releases compared in the paper, Tafsut-GIFT ranks fourth by normalized MASE and fifth by normalized CRPS. The additional Tafsut-Synth row uses its extended quantile head. Rows are ordered by MASE. Lower is better on both metrics. The axes start at 0.65 for MASE and 0.43 for CRPS. Report figure (PDF)

Files and license

The checkpoint directory contains config.json, model.safetensors and SHA256SUMS. Run sha256sum -c SHA256SUMS from that directory to verify the downloaded weights. MIT license

Downloads last month
103
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including Tafsut-FM/tafsut-gift

Paper for Tafsut-FM/tafsut-gift