
German day-ahead electricity prices. The target-only backbone receives 48 hourly observations and forecasts the next 24. 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-fev", device="cpu")
prediction = forecast(model, torch.arange(128, dtype=torch.float32), horizon=24)
print(prediction.shape) # (1, 24, 9)
Model details
The FEV backbone combines synthetic pretraining with real-data adaptation on a corpus filtered for FEV-Bench. Its learned quantile head produces direct deciles. Use the separate tafsut-adapter when dynamic covariates are available.
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
The FEV system achieves 36.43% MASE skill and 47.77% SQL skill over 100 tasks and 235,039 forecast windows. The backbone runs alone on 58 tasks and with the covariate adapter on 42. These scores describe that routing policy. 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