Upload folder using huggingface_hub
Browse files- LICENSE +201 -0
- NOTICE +25 -0
- README.md +93 -0
- SHA256SUMS.txt +4 -0
- config.json +46 -0
- model.safetensors +3 -0
- onnx/ts-ara-small.onnx +3 -0
- onnx/ts-ara.onnx +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ts-ara
|
| 2 |
+
Derived from T0 (tfc-t0) and theforecastingcompany/t0-gamma under the Apache License, Version 2.0.
|
| 3 |
+
|
| 4 |
+
---
|
| 5 |
+
Upstream attributions preserved from tfc-t0:
|
| 6 |
+
|
| 7 |
+
T0 (tfc-t0)
|
| 8 |
+
Copyright 2026 The Forecasting Company
|
| 9 |
+
|
| 10 |
+
This product includes software developed at Datadog (https://www.datadoghq.com/),
|
| 11 |
+
Copyright 2025 Datadog, Inc., licensed under the Apache License 2.0.
|
| 12 |
+
Source: https://github.com/DataDog/toto
|
| 13 |
+
|
| 14 |
+
This product includes software derived from Chronos-2 by Amazon.com, Inc. or
|
| 15 |
+
its affiliates, Copyright Amazon.com, Inc. All Rights Reserved, licensed under
|
| 16 |
+
the Apache License 2.0.
|
| 17 |
+
Source: https://github.com/amazon-science/chronos-forecasting
|
| 18 |
+
|
| 19 |
+
This product builds on architectural and methodological lineage including TiRex
|
| 20 |
+
by NXAI (https://github.com/NX-AI/tirex), licensed under the Apache License 2.0.
|
| 21 |
+
|
| 22 |
+
The MLX runtime's rotary position implementation follows the behavior of
|
| 23 |
+
rotary-embedding-torch, Copyright (c) 2020 Phil Wang, licensed under the MIT
|
| 24 |
+
License.
|
| 25 |
+
Source: https://github.com/lucidrains/rotary-embedding-torch
|
README.md
CHANGED
|
@@ -1,3 +1,96 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: theforecastingcompany/t0-gamma
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
pipeline_tag: time-series-forecasting
|
| 6 |
+
tags:
|
| 7 |
+
- onnx
|
| 8 |
+
- time-series
|
| 9 |
+
- forecasting
|
| 10 |
+
- probabilistic-forecasting
|
| 11 |
+
- quantized
|
| 12 |
+
- cpu
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# ts-ara
|
| 16 |
+
|
| 17 |
+
**ts-ara** is a **100% training-free (0-gradient)** ONNX runtime optimization, zero-leakage preprocessing, and post-hoc conformal calibration suite derived from Apache-2.0 [`theforecastingcompany/t0-gamma`](https://huggingface.co/theforecastingcompany/t0-gamma) (~256M parameters, 24-layer alternating 2:1 time/group patch transformer, patch size 32, 21 native quantiles).
|
| 18 |
+
|
| 19 |
+
> **Lineage & Attribution:** Derived from [`theforecastingcompany/t0-gamma`](https://huggingface.co/theforecastingcompany/t0-gamma) and [`theforecastingcompany/tfc-t0`](https://github.com/theforecastingcompany/tfc-t0) under the Apache License, Version 2.0. This project is an independent optimization and runtime distribution and does not imply official endorsement by The Forecasting Company.
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## Model Artifacts
|
| 24 |
+
|
| 25 |
+
| Tier | File | Precision Strategy | Size | `v0.1` CRPS Delta | CPU p50 Latency | Isolated Peak RAM | Role |
|
| 26 |
+
| :--- | :--- | :--- | ---: | ---: | ---: | ---: | :--- |
|
| 27 |
+
| **Master** | `model.safetensors` | PyTorch FP32 | `975.1 MB` | `+0.000%` | `256.3 ms` | `2201.8 MB` | Unmodified FP32 master weights |
|
| 28 |
+
| **`ts-ara`** *(Default)* | `onnx/ts-ara.onnx` | ONNX Mixed FP16 (FP32 scalers) | `488.1 MB` | `+0.023%` | `178.6 ms` | `1731.2 MB` | **Default ONNX deploy** (`50%` smaller) |
|
| 29 |
+
| **`ts-ara-small`** *(Edge/CPU)* | `onnx/ts-ara-small.onnx` | ONNX Mixed INT8 (FP32 enc/dec) | **`256.9 MB`** | **`-0.072%`** | **`91.8 ms`** | **`542.0 MB`** | **Fastest CPU/edge** (`2.8x` speedup, `73.7%` smaller) |
|
| 30 |
+
|
| 31 |
+
- **Mixed-Precision FP16 (`onnx/ts-ara.onnx`):** Keeps causal `arcsinh`/`sinh` scalers and normalization reductions in FP32 while running the 24-layer transformer core in FP16 to eliminate float16 overflow (`65,504` ceiling).
|
| 32 |
+
- **Mixed-Precision INT8 (`onnx/ts-ara-small.onnx`):** Keeps the 6 `PatchEncoder` (3) and `QuantileHead` Decoder (3) `MatMul` nodes in FP32 while quantizing all 96 transformer `MatMul` nodes dynamically to INT8, preventing `sinh` tail amplification on large cumulative series while cutting footprint by `73.7%` and isolated peak RAM by `4.1x`.
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
## Benchmarks
|
| 37 |
+
|
| 38 |
+
### Official `fev-bench` (`mini-cpu`, 13 official tasks)
|
| 39 |
+
|
| 40 |
+
Evaluated via `fev.leaderboard(..., baseline_model="Seasonal Naive")` across 2,013 forecasts (ordered by `fev.leaderboard`'s default **SQL Win Rate**):
|
| 41 |
+
|
| 42 |
+
| Rank (SQL Win Rate) | Model | Precision / Size | SQL Win Rate | MASE Win Rate | SQL Skill Score | MASE Skill Score |
|
| 43 |
+
| :---: | :--- | :--- | ---: | ---: | ---: | ---: |
|
| 44 |
+
| **1** | **`ts-ara`** *(Fourier)* | **ONNX FP16 · 488.1 MB** | **71.4%** | **70.3% (#1)** | 0.5139 *(#3)* | 0.4395 *(#3)* |
|
| 45 |
+
| 2 | `Timestral-209M` | Published | 69.2% | 68.1% *(#2)* | 0.5320 *(#1)* | 0.4574 *(#1)* |
|
| 46 |
+
| 3 | `t0-gamma` *(upstream base)* | Published FP32 | 67.0% | 67.0% *(#3)* | 0.5105 *(#4)* | 0.4354 *(#4)* |
|
| 47 |
+
| **4** | **`ts-ara-small`** *(Fourier)* | **ONNX Mixed INT8 · 256.9 MB** | **64.8%** | **60.4% (#4)** | 0.5082 *(#5)* | 0.4310 *(#5)* |
|
| 48 |
+
| 5 | `timesfm-3` | Published | 59.3% | 58.2% *(#5)* | 0.5170 *(#2)* | 0.4434 *(#2)* |
|
| 49 |
+
| 6 | `Chronos-2` | Published | 37.4% | 42.9% *(#6)* | 0.4685 *(#6)* | 0.3882 *(#6)* |
|
| 50 |
+
| 7 | `TiRex-2` | Published | 30.8% | 33.0% *(#7)* | 0.4558 *(#7)* | 0.3813 *(#7)* |
|
| 51 |
+
| 8 | `Seasonal Naive` | Baseline | 0.0% | 0.0% *(#8)* | 0.0000 *(#8)* | 0.0000 *(#8)* |
|
| 52 |
+
|
| 53 |
+
### Official TIME Benchmark (`Real-TSF/TIME`, 12-Task Stratified Subset)
|
| 54 |
+
|
| 55 |
+
Apples-to-apples comparison against official [`Real-TSF/TIME-Output`](https://huggingface.co/datasets/Real-TSF/TIME-Output) baselines across 12 stratified tasks out of the 98-task TIME benchmark (`add_calendar_features=False` default, lower is better for Norm. CRPS/MASE):
|
| 56 |
+
|
| 57 |
+
| Rank (Norm. CRPS) | Model | Precision / Size | Norm. CRPS ↓ | Norm. MASE ↓ | CRPS Win Rate | Avg CRPS Rank | CPU Time |
|
| 58 |
+
| :---: | :--- | :--- | ---: | ---: | ---: | ---: | ---: |
|
| 59 |
+
| 1 | `Timestral-209M` | Published | 0.5574 | 0.6776 | 79.8% | 2.42 | Published |
|
| 60 |
+
| 2 | `t0-gamma` *(upstream base)* | Published FP32 | 0.5580 | **0.6660** | 63.1% | 3.58 | Published |
|
| 61 |
+
| **3** | **`ts-ara`** *(Default)* | **ONNX FP16 · 488.1 MB** | **0.5580** | 0.6661 | 60.7% | 3.75 | 473.0s |
|
| 62 |
+
| **4** | **`ts-ara-small`** *(Edge/CPU)* | **ONNX Mixed INT8 · 256.9 MB** | **0.5636** | 0.6662 | 57.1% | 4.00 | **290.6s** |
|
| 63 |
+
| 5 | `TimesFM-3` | Published | 0.5641 | 0.6772 | 70.2% | 3.08 | Published |
|
| 64 |
+
| 6 | `Chronos-2` | Published | 0.5851 | 0.7079 | 33.3% | 5.67 | Published |
|
| 65 |
+
| 7 | `TiRex` | Published | 0.5867 | 0.6849 | 32.1% | 5.75 | Published |
|
| 66 |
+
| 8 | `Seasonal Naive` | Baseline | 1.0000 | 1.0000 | 3.6% | 7.75 | Published |
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## Quickstart & Opt-In Features (`ts-ara` Python Package)
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
from ts_ara import DynamicAdaptiveConformalCalibrator, TSAraForecaster
|
| 74 |
+
|
| 75 |
+
forecaster = TSAraForecaster.from_tier("ts-ara") # or "ts-ara-small" for Mixed INT8 CPU
|
| 76 |
+
calibrator = DynamicAdaptiveConformalCalibrator(alpha=0.2) # DtACI for 80% coverage
|
| 77 |
+
|
| 78 |
+
fc_df = forecaster.predict_df(history_df, horizon=24, add_calendar_features="auto")
|
| 79 |
+
interval = calibrator.predict_interval(
|
| 80 |
+
fc_df["q_0.1"].to_numpy(), fc_df["q_0.9"].to_numpy(), forecast_id="win_0"
|
| 81 |
+
)
|
| 82 |
+
calibrator.observe(actual_y, forecast_id="win_0") # strict delayed ground-truth update
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
| Feature / Parameter | Default | Enable When | Leave Off When |
|
| 86 |
+
| :--- | :---: | :--- | :--- |
|
| 87 |
+
| **DtACI Calibration** (`DynamicAdaptiveConformalCalibrator`) | Wrapper | Empirical 80% coverage under abrupt shifts (`73.18% -> 80.21%`) or long horizons `h=1152` (`79.43%`, `~0.6 ms/step`). | Only raw uncalibrated quantiles are needed. |
|
| 88 |
+
| **Fourier Calendar** (`add_calendar_features="auto"` / `True`) | `False` | Regular seasonal panels (`+0.0034` SQL on `fev-bench`); `"auto"` runs a joint detrended harmonic $R^2$ + Bretherton $N_{\text{eff}}$ gate to block epidemic/non-seasonal surges. | Purely non-seasonal series, `>=28D` monthly/annual series, or irregular timestamps. |
|
| 89 |
+
| **Covariate Guard** (`guard_covariates=True`) | `False` | Noisy or misaligned drivers (`-5.1%` to `-12.2%` CRPS; `-8.1%` and `3.1x` faster on `solar_with_weather_1H` with `ts-ara-small`). | Curated sparse/nonlinear drivers where linear historical correlation filters may drop informative spikes. |
|
| 90 |
+
| **Dual-Context Vincentization** (`context_scales=(3072, 9216)`) | `None` | Long (`>4,096`) periodic or regime-shifting series such as electricity prices (`epf_np`: `0.6138 -> 0.5435` SQL). | Latency-sensitive paths (~2x pass when `T > 4,096`). |
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## License & Upstream Attributions
|
| 95 |
+
|
| 96 |
+
Licensed under the **Apache License, Version 2.0** (see `LICENSE` and `NOTICE`). Preserves upstream attributions from `tfc-t0`: The Forecasting Company, Toto by Datadog, Chronos-2 by Amazon, TiRex by NXAI, and `rotary-embedding-torch` by Phil Wang.
|
SHA256SUMS.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
5bc98bfc65470c2adf96884059c9fe4ab6af4344dedd07d3bb7d676a15c2501c config.json
|
| 2 |
+
1603e255629be22ea45518b502f16c55d06821c7090a1a851673e779e9c245a6 model.safetensors
|
| 3 |
+
53e1610b9657772da0d23705f27718ed099258b9a9ce91d30075989f8e40330b onnx/ts-ara.onnx
|
| 4 |
+
510b76eda7460612f7e4a500aa1565e59276fbdd7610a25e5a6a50bd2051515a onnx/ts-ara-small.onnx
|
config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dropout": 0.1,
|
| 3 |
+
"dtype": null,
|
| 4 |
+
"embed_dim": 1024,
|
| 5 |
+
"group_every_n": 3,
|
| 6 |
+
"mlp_hidden_dim": 2048,
|
| 7 |
+
"num_heads": 8,
|
| 8 |
+
"num_layers": 24,
|
| 9 |
+
"patch_size": 32,
|
| 10 |
+
"quantile_levels": [
|
| 11 |
+
0.01,
|
| 12 |
+
0.05,
|
| 13 |
+
0.1,
|
| 14 |
+
0.15,
|
| 15 |
+
0.2,
|
| 16 |
+
0.25,
|
| 17 |
+
0.3,
|
| 18 |
+
0.35,
|
| 19 |
+
0.4,
|
| 20 |
+
0.45,
|
| 21 |
+
0.5,
|
| 22 |
+
0.55,
|
| 23 |
+
0.6,
|
| 24 |
+
0.65,
|
| 25 |
+
0.7,
|
| 26 |
+
0.75,
|
| 27 |
+
0.8,
|
| 28 |
+
0.85,
|
| 29 |
+
0.9,
|
| 30 |
+
0.95,
|
| 31 |
+
0.99
|
| 32 |
+
],
|
| 33 |
+
"scaler_eps": 0.01,
|
| 34 |
+
"scaler_eps_mode": "std_clamp",
|
| 35 |
+
"scaler_use_arcsinh": true,
|
| 36 |
+
"scaler_zero_no_value": false,
|
| 37 |
+
"xpos_scale_layout": "halves",
|
| 38 |
+
"model_name": "ts-ara",
|
| 39 |
+
"version": "0.5.0",
|
| 40 |
+
"base_model": "theforecastingcompany/t0-gamma",
|
| 41 |
+
"artifacts": {
|
| 42 |
+
"master": "model.safetensors",
|
| 43 |
+
"ts-ara": "onnx/ts-ara.onnx",
|
| 44 |
+
"ts-ara-small": "onnx/ts-ara-small.onnx"
|
| 45 |
+
}
|
| 46 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1603e255629be22ea45518b502f16c55d06821c7090a1a851673e779e9c245a6
|
| 3 |
+
size 1022492908
|
onnx/ts-ara-small.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:510b76eda7460612f7e4a500aa1565e59276fbdd7610a25e5a6a50bd2051515a
|
| 3 |
+
size 269331523
|
onnx/ts-ara.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53e1610b9657772da0d23705f27718ed099258b9a9ce91d30075989f8e40330b
|
| 3 |
+
size 511778665
|