--- license: apache-2.0 library_name: onnx tags: - time-series-forecasting - onnx - edge - probabilistic-forecasting - electricity-load --- # gridload-compact A compact probabilistic load forecaster for the two SMARD net-load challenges of TS-Arena (24 h at 15 min, 72 h at 1 h): two small MLP quantile nets, 160,278 parameters in total, 144 kB and 150 kB as int8 ONNX, about 0.4 to 1.2 ms per series on one CPU thread. Self-evaluated on the TS-Arena Archive; not an official ranking. Code, protocol, ledger of the evaluations and reproduction scripts: https://github.com/sankalpsthakur/gridload-compact ## Status as of 2026-10-19 (UTC) - **Live check (shadow, self-evaluated, not an official ranking):** on the completed live rounds registered 2026-08-24 to 2026-10-18 the frozen model placed **14th of 46 fitted models** on the definition-2 probabilistic ranking (platform Arena Score 145.8 [131.3, 160.3], rank range 1 to 17 under the platform's 28-day-block bootstrap; gap over visiontspp-large, the best reference model of the Archive window, +1.7 [-4.2, +8.5] with 7-day blocks, 468 common tasks). The contexts were rebuilt from current data, which is probably optimistic against the contexts the field received, by an amount that was not measured. Details: the correction under Evaluation and `results/shadow/l2/` in the GitHub repository. - **Limit, fallback share:** 15.8 % of the live definition-2 tasks (77 of 488) went to the generic seasonal fallback instead of the specialist, all in the rounds of 2026-09-03 to 09-23, when the platform's series had gaps of up to 63 h inside the context windows; none of the 250 tasks from 2026-09-24 on did. The pre-registered limit for a live entry was 5 %. The fallback carries no claim. - **Outcome:** the pre-registered go/no-go rule failed on two conditions on their own (gap over visiontspp-large +1.7 against +5.0 needed; fallback share 15.8 % against at most 5 %), so no live entry was made. - **Metric:** the platform retired the Archive-era MASE (naive last-value scale) on 2026-10-15 and now ranks by the Arena Score. The MASE and SQL numbers under Evaluation use the retired scale and stay valid for the convention they state. ## Model description - **Two MLP quantile nets**, one per challenge (15 min x 96 steps, 1 h x 72 steps). Each net is a context encoder plus a shared per-step head (hidden width 64) that emits nine monotone deciles per step (0.1 to 0.9); the point forecast is the median. - **3-seed ensembles** per frequency; the quantile curves are averaged inside one ONNX graph. Parameters: 25,817 per net at 15 min and 27,609 hourly; 77,451 and 82,827 per ensemble; **160,278 in total**. - A post-hoc scalar on the decile spread (1.05 at 15 min, 1.20 hourly) was chosen on validation data only. - **ONNX**, fp32 (344,362 B and 365,869 B) and int8 by dynamic quantization (144,175 B and 149,554 B). The service default is int8. - **Inference**: a numpy feature pipeline (no torch) and ONNX Runtime on one thread. A clock-signature gate compares the daily profile of the context with a fixed reference profile (`weights/clock_ref.npz`); anything that is not a SMARD net-load series on the platform clock goes to a generic seasonal fallback with residual deciles, for which no claim is made. - Public holiday calendars (DE federal and state, AT) are baked into `weights/hol_table.npz` and derived from timestamps only. ## Intended use and limits - **Intended use**: probabilistic net-load forecasts for the ten SMARD net-load series of the two TS-Arena challenges, on the platform's timestamp convention (UTC stamps that run 1 to 2 h early; the hourly series is the mean of the four quarter-hours), from a context of 1,000 points; CPU-only and edge-sized deployments; benchmarking and research. - **Not covered**: other series, frequencies or horizons are served by the seasonal fallback and no claim is made for them. Its held-out evaluation covers archive rounds of 2026-02-08 .. 2026-03-31 and a shadow check on completed live rounds of 2026-08-24 .. 2026-10-18 (see Status); it was never entered live, has no operational track record and is not validated for grid operation or trading. - The comparison with foundation models is a specialist trained on the same SMARD series (cutoff before the window) against zero-shot generalists that saw none of it: the fair reading is "a specialist this small is competitive or better on its own series", not "better architecture". - Training is not bit-reproducible across hardware; the SHA-256 of the checkpoints behind the numbers are in `weights/net15_info.json`, `weights/net60_info.json` and `configs/final.json` of the GitHub repository. ## Training data and cutoff - SMARD net load (Bundesnetzagentur | SMARD.de, CC BY 4.0), revised history from 2018-01 fetched from the public API. The shipped weights are the test-stage ensembles, trained on targets up to **2026-02-06 23:45**; the architecture selection used models cut at 2025-06-30 23:45 and the spread scalar used models cut at 2025-12-31 23:45. The first evaluation round registers on 2026-02-08. - Public holiday table generated with the python `holidays` package (MIT), version 0.106. - No third-party model weights were used. The weights are trained on SMARD history only. The TS-Arena Archive's VAL-F window (2026-01-01 to 02-07) was used to choose the network width and to calibrate the two decile spread scalars; its TEST-F window only for the final evaluation. (Corrected 2026-10-17 23:16 UTC: an earlier version said nothing from the Archive was used for calibration.) ## Evaluation Self-evaluated on the TS-Arena Archive, window TEST-F (52 rounds, 2026-02-08 .. 2026-03-31; training cutoff 2026-02-06 23:45; configuration frozen and each variant evaluated once, pre-registered). Headline variant = the service code path with the int8 weights, scored with the platform's arena MASE and SQL (Archive-era scale, retired by the platform on 2026-10-15; see Status) against the 32 reference models of the Archive's field: - **Definition 2 (24 h at 15 min): lower mean MASE than every reference model on the full window.** MASE 0.217 [0.173, 0.273] against 0.251 [0.184, 0.327] for the best reference model of the window, visiontspp-large (307 M parameters, about 4,000 times larger); per-round difference -0.034 [-0.059, -0.009]; SQL 0.173 against 0.201, difference -0.028 [-0.046, -0.011]. **Caveat that belongs to the claim:** the interval excludes 0 over the full window, but over the first 35 rounds (02-08 .. 03-14, which the live board mostly reproduces; 03-06 .. 03-08 are partly re-scored there) it does not (-0.012 [-0.026, +0.006]); the difference is carried by the 17 archive-only late-March rounds (-0.070 [-0.111, -0.021] against that window's best reference, flowstate). - **Definition 5 (72 h at 1 h): a tie, not a win.** MASE 0.185 [0.161, 0.214] against 0.187 [0.157, 0.226] for chronos-2 (120 M parameters, about 1,400 times larger); difference -0.002 [-0.015, +0.007]; SQL 0.148 against 0.150, difference -0.002 [-0.014, +0.006]. The model matches the best reference on the full 52-round window at a fraction of its size; no win is claimed. **Correction (2026-10-19 21:01 UTC):** the tie holds over the full 52-round window under both this MASE and the platform's Arena Score (gap -0.3 [-5.1, +6.8]). Over the first 35 rounds, the ones the live board reproduces, the model is behind chronos-2: MASE +0.005 [-0.001, +0.010] (3 % worse; the interval touches 0), Arena Score gap -4.1 [-7.3, -1.1] with 7-day blocks ([-5.9, -2.0] with 28-day blocks), SQL gap -5.3 [-9.4, -1.9]; it is ahead only on the 17 archive-only late-March rounds. "Matches the best reference" therefore holds on the full Archive window only. The MASE in this card is the Archive-era platform convention, which the platform retired on 2026-10-15 in favour of the Arena Score; the numbers stay valid for the convention they state. A shadow check of the frozen model on completed live rounds (2026-08-24 to 10-18, self-evaluated; see Status; `results/shadow/l2/` in the GitHub repository) placed it 14th of 46 fitted models on the definition-2 probabilistic ranking, so no live entry was made. Scoring is the platform's arena MASE (MAE of the forecast divided by the MAE of the last-context-value persistence forecast over the same horizon) and SQL (scaled quantile loss, same scale), reimplemented from the MIT backend of TS-Arena. This is a **self-obtained evaluation on the TS-Arena Archive and not an official ranking**. Protocol: selection rule, ensemble, spread grid and the eight evaluated variants were pre-registered before any sweep, validation-stage or test-stage number existed; the configuration was frozen (hashes of the test-stage checkpoints) before the TEST-F evaluation; each variant was evaluated once (16 evaluations), and an unchanged re-run of the frozen kernel gives byte-identical evidence tables. The definition-2 difference is carried by 17 archive-only late-March rounds; the intervals are the platform's ISO-week block bootstrap (9 blocks in the full window) and are crude. Full tables, sub-windows, the ledger of all evaluations and the integrity checklist are in the GitHub repository (`TEST-LOG.md`, `INTEGRITY.md`, `results/`). ## Size and latency | | 15 min (definition 2) | hourly (definition 5) | |---|---|---| | parameters per net / ensemble of 3 | 25,817 / 77,451 | 27,609 / 82,827 | | ONNX ensemble, fp32 / int8 | 344,362 B / 144,175 B | 365,869 B / 149,554 B | | spread (post-hoc scalar on the deciles, chosen on VAL-F) | 1.05 | 1.20 | | latency, int8, model only, p50 (Kaggle CPU, AMD EPYC 7B12, 1 thread, batch 1, n=300) | 0.27 ms | 0.23 ms | | latency, int8, end to end per series (numpy features + model), p50 | 1.16 ms | 1.23 ms | | latency, fp32, model only / end to end, p50 | 0.28 ms / 1.18 ms | 0.24 ms / 1.27 ms | | latency, Apple M4 (macOS), 1 thread, batch 1, int8, model only / end to end, p50 | 0.20 ms / 0.44 ms | 0.16 ms / 0.44 ms | | latency, Apple M4 (macOS), fp32, model only / end to end, p50 | 0.14 ms / 0.39 ms | 0.12 ms / 0.39 ms | Sources: `results/bench-timeseries-b/out/bench_kaggle_cpu_{15,60}.json` and `results/bench-timeseries-b/m4_latency_{15,60}.json` in the GitHub repository (median of 300 calls after warm-up, numpy features included in the end-to-end figure). ## How to run the service The service (FastAPI, `POST /predict`, `GET /health`) is in the GitHub repository under `submission/model-services/gridload-compact`: ```bash git clone https://github.com/sankalpsthakur/gridload-compact cd gridload-compact/submission/model-services/gridload-compact pip install -r requirements.txt # fastapi, uvicorn, pydantic, numpy, onnxruntime (pinned) uvicorn app.main:app --port 8000 # reads ./weights, the same files as this repository ``` To use the files of this Hugging Face repository instead (run both from the service directory): ```python from huggingface_hub import snapshot_download snapshot_download("sankalpsthakur/gridload-compact", local_dir="hf-weights") ``` ```bash GRIDLOAD_WEIGHTS=hf-weights uvicorn app.main:app --port 8000 # GRIDLOAD_PRECISION=fp32 selects the fp32 graphs (default int8) ``` Request: `{"history": [{"ts": "2026-03-10T07:45:00.000Z", "value": 12345.0}, ...], "horizon": 96, "freq": "15min"}` (`"freq": "h"` with `"horizon": 72` for the hourly challenge; a list of such lists is a batch). Response: `{"prediction": [{"ts": ..., "value": ..., "probabilistic_values": {"q_0.1": ..., ..., "q_0.9": ...}}, ...]}`. ## Files | file | what | |---|---| | `weights/net15.onnx`, `weights/net15_int8.onnx` | 15 min x 96 steps, 3-seed ensemble, fp32 (344,362 B) and int8 (144,175 B) | | `weights/net60.onnx`, `weights/net60_int8.onnx` | 1 h x 72 steps, 3-seed ensemble, fp32 (365,869 B) and int8 (149,554 B) | | `weights/net15_info.json`, `weights/net60_info.json` | feature specification, spread, parameter counts, SHA-256 of the member checkpoints and of the ONNX files | | `weights/hol_table.npz` | baked public holiday calendar table (DE federal and state, AT) | | `weights/clock_ref.npz` | reference daily profile of the clock gate | | `README.md` | this card | ## Licences - Code and model weights: Apache-2.0. - Training data: SMARD, Bundesnetzagentur | SMARD.de, CC BY 4.0 (https://www.smard.de/); the weights are derived from it and changes were made. - Evaluation data: TS-Arena-Archive (DAG-UPB/TS-Arena-Archive), CC BY 4.0; VAL-F used for width selection and spread calibration, TEST-F for evaluation only; not contained in the weights. - Holiday table: generated with the python `holidays` package (MIT). - Live-round data for the shadow check: public reads of the TS-Arena dashboard API (https://ts-arena.live/api/v1) on 2026-10-19 (UTC); the ground truth underneath is SMARD (CC BY 4.0). The platform's scoring code (DAG-UPB/ts-arena-backend, MIT) is vendored in the GitHub repository. The raw per-model score tables of the field are not redistributed; only our own aggregate results are. Self-evaluated, not peer-reviewed. Sankalp Thakur, October 2026.