gridload-compact 1.0: ONNX quantile nets for the SMARD net-load challenges, model card, licence
Browse files- LICENSE +202 -0
- README.md +124 -0
- weights/clock_ref.npz +3 -0
- weights/hol_table.npz +3 -0
- weights/net15.onnx +3 -0
- weights/net15_info.json +30 -0
- weights/net15_int8.onnx +3 -0
- weights/net60.onnx +3 -0
- weights/net60_info.json +30 -0
- weights/net60_int8.onnx +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright 2026 Sankalp Thakur
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
library_name: onnx
|
| 4 |
+
tags:
|
| 5 |
+
- time-series-forecasting
|
| 6 |
+
- onnx
|
| 7 |
+
- edge
|
| 8 |
+
- probabilistic-forecasting
|
| 9 |
+
- electricity-load
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# gridload-compact
|
| 13 |
+
|
| 14 |
+
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,
|
| 15 |
+
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:
|
| 16 |
+
https://github.com/sankalpsthakur/gridload-compact
|
| 17 |
+
|
| 18 |
+
## Model description
|
| 19 |
+
|
| 20 |
+
- **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
|
| 21 |
+
(0.1 to 0.9); the point forecast is the median.
|
| 22 |
+
- **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**.
|
| 23 |
+
- A post-hoc scalar on the decile spread (1.05 at 15 min, 1.20 hourly) was chosen on validation data only.
|
| 24 |
+
- **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.
|
| 25 |
+
- **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 (`clock_ref.npz`); anything that is not
|
| 26 |
+
a SMARD net-load series on the platform clock goes to a generic seasonal fallback with residual deciles, for which no claim is made.
|
| 27 |
+
- Public holiday calendars (DE federal and state, AT) are baked into `hol_table.npz` and derived from timestamps only.
|
| 28 |
+
|
| 29 |
+
## Intended use and limits
|
| 30 |
+
|
| 31 |
+
- **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
|
| 32 |
+
is the mean of the four quarter-hours), from a context of 1,000 points; CPU-only and edge-sized deployments; benchmarking and research.
|
| 33 |
+
- **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 only archive rounds of 2026-02-08 .. 2026-03-31; it has no live
|
| 34 |
+
or operational track record and is not validated for grid operation or trading.
|
| 35 |
+
- 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
|
| 36 |
+
competitive or better on its own series", not "better architecture".
|
| 37 |
+
- Training is not bit-reproducible across hardware; the SHA-256 of the checkpoints behind the numbers are in `net15_info.json`, `net60_info.json` and `configs/final.json` of the GitHub repository.
|
| 38 |
+
|
| 39 |
+
## Training data and cutoff
|
| 40 |
+
|
| 41 |
+
- 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
|
| 42 |
+
**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.
|
| 43 |
+
- Public holiday table generated with the python `holidays` package (MIT), version 0.106.
|
| 44 |
+
- No third-party model weights, and nothing from the TS-Arena Archive, were used for training or calibration.
|
| 45 |
+
|
| 46 |
+
## Evaluation
|
| 47 |
+
|
| 48 |
+
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).
|
| 49 |
+
Headline variant = the service code path with the int8 weights, scored with the platform's arena MASE and SQL against the 32 reference models of the Archive's field:
|
| 50 |
+
|
| 51 |
+
- **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,
|
| 52 |
+
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
|
| 53 |
+
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
|
| 54 |
+
(-0.070 [-0.111, -0.021] against that window's best reference, flowstate).
|
| 55 |
+
- **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];
|
| 56 |
+
SQL 0.148 against 0.150, difference -0.002 [-0.014, +0.006]. The model matches the best reference at a fraction of its size; no win is claimed.
|
| 57 |
+
|
| 58 |
+
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
|
| 59 |
+
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
|
| 60 |
+
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
|
| 61 |
+
(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
|
| 62 |
+
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`,
|
| 63 |
+
`INTEGRITY.md`, `results/`).
|
| 64 |
+
|
| 65 |
+
## Size and latency
|
| 66 |
+
|
| 67 |
+
| | 15 min (definition 2) | hourly (definition 5) |
|
| 68 |
+
|---|---|---|
|
| 69 |
+
| parameters per net / ensemble of 3 | 25,817 / 77,451 | 27,609 / 82,827 |
|
| 70 |
+
| ONNX ensemble, fp32 / int8 | 344,362 B / 144,175 B | 365,869 B / 149,554 B |
|
| 71 |
+
| spread (post-hoc scalar on the deciles, chosen on VAL-F) | 1.05 | 1.20 |
|
| 72 |
+
| latency, int8, model only, p50 (Kaggle CPU, AMD EPYC 7B12, 1 thread, batch 1, n=300) | 0.27 ms | 0.23 ms |
|
| 73 |
+
| latency, int8, end to end per series (numpy features + model), p50 | 1.16 ms | 1.23 ms |
|
| 74 |
+
| latency, fp32, model only / end to end, p50 | 0.28 ms / 1.18 ms | 0.24 ms / 1.27 ms |
|
| 75 |
+
| 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 |
|
| 76 |
+
| latency, Apple M4 (macOS), fp32, model only / end to end, p50 | 0.14 ms / 0.39 ms | 0.12 ms / 0.39 ms |
|
| 77 |
+
|
| 78 |
+
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
|
| 79 |
+
included in the end-to-end figure).
|
| 80 |
+
|
| 81 |
+
## How to run the service
|
| 82 |
+
|
| 83 |
+
The service (FastAPI, `POST /predict`, `GET /health`) is in the GitHub repository under `submission/model-services/gridload-compact`:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
git clone https://github.com/sankalpsthakur/gridload-compact
|
| 87 |
+
cd gridload-compact/submission/model-services/gridload-compact
|
| 88 |
+
pip install -r requirements.txt # fastapi, uvicorn, pydantic, numpy, onnxruntime (pinned)
|
| 89 |
+
uvicorn app.main:app --port 8000 # reads ./weights, the same files as this repository
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
To use the files of this Hugging Face repository instead (run both from the service directory):
|
| 93 |
+
|
| 94 |
+
```python
|
| 95 |
+
from huggingface_hub import snapshot_download
|
| 96 |
+
snapshot_download("sankalpsthakur/gridload-compact", local_dir="hf-weights")
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
```bash
|
| 100 |
+
GRIDLOAD_WEIGHTS=hf-weights uvicorn app.main:app --port 8000 # GRIDLOAD_PRECISION=fp32 selects the fp32 graphs (default int8)
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
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).
|
| 104 |
+
Response: `{"prediction": [{"ts": ..., "value": ..., "probabilistic_values": {"q_0.1": ..., ..., "q_0.9": ...}}, ...]}`.
|
| 105 |
+
|
| 106 |
+
## Files
|
| 107 |
+
|
| 108 |
+
| file | what |
|
| 109 |
+
|---|---|
|
| 110 |
+
| `net15.onnx`, `net15_int8.onnx` | 15 min x 96 steps, 3-seed ensemble, fp32 (344,362 B) and int8 (144,175 B) |
|
| 111 |
+
| `net60.onnx`, `net60_int8.onnx` | 1 h x 72 steps, 3-seed ensemble, fp32 (365,869 B) and int8 (149,554 B) |
|
| 112 |
+
| `net15_info.json`, `net60_info.json` | feature specification, spread, parameter counts, SHA-256 of the member checkpoints and of the ONNX files |
|
| 113 |
+
| `hol_table.npz` | baked public holiday calendar table (DE federal and state, AT) |
|
| 114 |
+
| `clock_ref.npz` | reference daily profile of the clock gate |
|
| 115 |
+
| `README.md` | this card |
|
| 116 |
+
|
| 117 |
+
## Licences
|
| 118 |
+
|
| 119 |
+
- Code and model weights: Apache-2.0.
|
| 120 |
+
- Training data: SMARD, Bundesnetzagentur | SMARD.de, CC BY 4.0 (https://www.smard.de/); the weights are derived from it and changes were made.
|
| 121 |
+
- Evaluation data: TS-Arena-Archive (DAG-UPB/TS-Arena-Archive), CC BY 4.0; used for evaluation only, not contained in the weights.
|
| 122 |
+
- Holiday table: generated with the python `holidays` package (MIT).
|
| 123 |
+
|
| 124 |
+
Self-evaluated, not peer-reviewed. Sankalp Thakur, October 2026.
|
weights/clock_ref.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2731590de3ab89334e4d88e810ce205f08b7ad4bdbf84244d98dc4ad52fca56a
|
| 3 |
+
size 702
|
weights/hol_table.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ade18a72fb14cc2ee38f00c5d86a0af9bcb62dd745941b1e315d82372cebdae
|
| 3 |
+
size 185072
|
weights/net15.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81e7e6b9f9c850d6ed04b1f8b83c50de77a9a419655eb14190cdf25a7dbce3e4
|
| 3 |
+
size 344362
|
weights/net15_info.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"freq": 15,
|
| 3 |
+
"spec_kwargs": {
|
| 4 |
+
"J": 96,
|
| 5 |
+
"dmeans": 10
|
| 6 |
+
},
|
| 7 |
+
"n_nets": 3,
|
| 8 |
+
"spread": 1.05,
|
| 9 |
+
"params": 77451,
|
| 10 |
+
"params_per_net": 25817,
|
| 11 |
+
"fp32_bytes": 344362,
|
| 12 |
+
"int8_bytes": 144175,
|
| 13 |
+
"state_dict_bytes": 309804,
|
| 14 |
+
"members": [
|
| 15 |
+
{
|
| 16 |
+
"file": "test_15_s0.pt",
|
| 17 |
+
"sha256": "d0b03c3ef63ffabd3639ca1f087d9b0ab3183fe1f51d863be716c0c57bd11a4d"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"file": "test_15_s1.pt",
|
| 21 |
+
"sha256": "1edff5f7cadfda4756d27f2ae434479d347c75726cb85d0d7e60fe535eb8153d"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"file": "test_15_s2.pt",
|
| 25 |
+
"sha256": "4e67a872b20ac42254252a7d1450bb8069f94dcbc8962ab9b46504f5efffb0bb"
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"fp32_sha256": "81e7e6b9f9c850d6ed04b1f8b83c50de77a9a419655eb14190cdf25a7dbce3e4",
|
| 29 |
+
"int8_sha256": "1e1dfaca195e8cb5d8977739bf7b91e34c8ab99d8275b39e9297988f65ed1622"
|
| 30 |
+
}
|
weights/net15_int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e1dfaca195e8cb5d8977739bf7b91e34c8ab99d8275b39e9297988f65ed1622
|
| 3 |
+
size 144175
|
weights/net60.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d610b1c66c6509ef448c52f469127dbadfb554c19298f20499ce0be79f7db4e
|
| 3 |
+
size 365869
|
weights/net60_info.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"freq": 60,
|
| 3 |
+
"spec_kwargs": {
|
| 4 |
+
"J": 96,
|
| 5 |
+
"dmeans": 14
|
| 6 |
+
},
|
| 7 |
+
"n_nets": 3,
|
| 8 |
+
"spread": 1.2,
|
| 9 |
+
"params": 82827,
|
| 10 |
+
"params_per_net": 27609,
|
| 11 |
+
"fp32_bytes": 365869,
|
| 12 |
+
"int8_bytes": 149554,
|
| 13 |
+
"state_dict_bytes": 331308,
|
| 14 |
+
"members": [
|
| 15 |
+
{
|
| 16 |
+
"file": "test_60_s0.pt",
|
| 17 |
+
"sha256": "f184a96c54e0ce44867363c632b3f19810c7383b1fbe65a40bde947f82a57e27"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"file": "test_60_s1.pt",
|
| 21 |
+
"sha256": "77fd6aa7542120e43295822ac492259f59bc3135682e0dffe03e0034798f96f4"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"file": "test_60_s2.pt",
|
| 25 |
+
"sha256": "3cabd3e212c6b5498ed8bb666fd9801aca805b5252370db74d10a55c026e8aef"
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"fp32_sha256": "6d610b1c66c6509ef448c52f469127dbadfb554c19298f20499ce0be79f7db4e",
|
| 29 |
+
"int8_sha256": "549c86f26bc0c8fb56e4ab8d278165d05f4d9aac9c0073a27030b8f1da2a5bf7"
|
| 30 |
+
}
|
weights/net60_int8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:549c86f26bc0c8fb56e4ab8d278165d05f4d9aac9c0073a27030b8f1da2a5bf7
|
| 3 |
+
size 149554
|