
Hourly electricity demand from GEFCom 2014. Tafsut-GIFT uses the preceding 336 observations to forecast 48 hours. The chart shows the last 96 hours of history. Shading spans q0.2–q0.8 and q0.1–q0.9.
Quick start
Install the Tafsut 0.2.0 inference package from its source checkout with python -m pip install .. To run offline, replace the Hub IDs below with local model directories. Package source
import torch
from tafsut import TafsutModel, forecast
model = TafsutModel.from_pretrained("Tafsut-FM/tafsut-gift", device="cpu")
prediction = forecast(model, torch.arange(128, dtype=torch.float32), horizon=24)
print(prediction.shape) # (1, 24, 9)
Model details
This univariate backbone combines synthetic pretraining with real-data adaptation on 178 selected source configurations. The adaptation excluded the official GIFT benchmark training split. A learned quantile head extends the median-centered forecast to the nine deciles.
The 102.9M-parameter backbone uses 14 encoder layers, hidden width 768, 12 attention heads and 16-step patches. It accepts up to 32,768 history steps and predicts up to 1,024 future steps per forward pass. NaNs and boolean observation masks are supported.
Forecasts use the original target units. The output shape is (batch, horizon, 9), ordered from q0.1 through q0.9. Index 4 is the median.
Evaluation and limitations
On 97 GIFT-Eval tasks and 371,330 windows this checkpoint obtains 0.6690 normalized MASE and 0.4607 normalized CRPS. Both are geometric means of task errors relative to Seasonal Naive. Lower values are better. Forecast calibration depends on the application and forecast horizon. The adapted backbones use different real-data filters. Zero-shot comparisons apply to the designated benchmark.
Files and license
Load this directory as a unit. config.json describes the architecture and model.safetensors contains its inference weights. Verify the weight file with sha256sum -c SHA256SUMS. The weights use the MIT license. License