FirePFN 1.0.0.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of FirePFN might be problematic. Click here for more details.

Files changed (46) hide show
  1. firepfn/__init__.py +7 -0
  2. firepfn/class_tree.py +77 -0
  3. firepfn/classifier.py +301 -0
  4. firepfn/encoding.py +347 -0
  5. firepfn/ensemble.py +44 -0
  6. firepfn/eval/__init__.py +14 -0
  7. firepfn/eval/analysis.py +294 -0
  8. firepfn/eval/plots.py +330 -0
  9. firepfn/eval/runtime.py +205 -0
  10. firepfn/eval/tabarena.py +388 -0
  11. firepfn/loading.py +97 -0
  12. firepfn/many_class.py +157 -0
  13. firepfn/model/__init__.py +5 -0
  14. firepfn/model/_mamba_block.py +49 -0
  15. firepfn/model/backbone.py +110 -0
  16. firepfn/model/cross_attention.py +123 -0
  17. firepfn/model/deltanet.py +134 -0
  18. firepfn/model/fire_pfn.py +396 -0
  19. firepfn/model/fla_autotune.py +73 -0
  20. firepfn/model/hydra2.py +537 -0
  21. firepfn/model/int32_safe.py +122 -0
  22. firepfn/model/kumo.py +704 -0
  23. firepfn/model/linear_attention.py +167 -0
  24. firepfn/model/stream_infer.py +568 -0
  25. firepfn/model/triton_rmsnorm.py +119 -0
  26. firepfn/model/triton_rope.py +152 -0
  27. firepfn/preprocessing.py +301 -0
  28. firepfn/train/__init__.py +3 -0
  29. firepfn/train/__main__.py +57 -0
  30. firepfn/train/_tabicl_dataset.py +1762 -0
  31. firepfn/train/configs.py +113 -0
  32. firepfn/train/loop.py +224 -0
  33. firepfn/train/optim.py +109 -0
  34. firepfn/train/prior.py +74 -0
  35. firepfn/train/schedule.py +125 -0
  36. firepfn-1.0.0.dev0.dist-info/METADATA +270 -0
  37. firepfn-1.0.0.dev0.dist-info/RECORD +46 -0
  38. firepfn-1.0.0.dev0.dist-info/WHEEL +5 -0
  39. firepfn-1.0.0.dev0.dist-info/licenses/AUTHORS +14 -0
  40. firepfn-1.0.0.dev0.dist-info/licenses/LICENSE +33 -0
  41. firepfn-1.0.0.dev0.dist-info/licenses/LICENSES/Apache-2.0.txt +176 -0
  42. firepfn-1.0.0.dev0.dist-info/licenses/LICENSES/BSD-3-Clause-TabICL.txt +236 -0
  43. firepfn-1.0.0.dev0.dist-info/licenses/LICENSES/MIT-Hydra.txt +21 -0
  44. firepfn-1.0.0.dev0.dist-info/licenses/LICENSES/OpenMDW-1.1-Kumo-Tabular-weights.txt +52 -0
  45. firepfn-1.0.0.dev0.dist-info/licenses/NOTICE +39 -0
  46. firepfn-1.0.0.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,236 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, Soda team @ Inria
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+
30
+ Code in the src/tabicl/forecast directory is currently derived work from
31
+ TabPFN-TS https://github.com/PriorLabs/tabpfn-time-series
32
+
33
+ As such it is under the following license:
34
+
35
+ Apache License
36
+ Version 2.0, January 2004
37
+ http://www.apache.org/licenses/
38
+
39
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
40
+
41
+ 1. Definitions.
42
+
43
+ "License" shall mean the terms and conditions for use, reproduction,
44
+ and distribution as defined by Sections 1 through 9 of this document.
45
+
46
+ "Licensor" shall mean the copyright owner or entity authorized by
47
+ the copyright owner that is granting the License.
48
+
49
+ "Legal Entity" shall mean the union of the acting entity and all
50
+ other entities that control, are controlled by, or are under common
51
+ control with that entity. For the purposes of this definition,
52
+ "control" means (i) the power, direct or indirect, to cause the
53
+ direction or management of such entity, whether by contract or
54
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
55
+ outstanding shares, or (iii) beneficial ownership of such entity.
56
+
57
+ "You" (or "Your") shall mean an individual or Legal Entity
58
+ exercising permissions granted by this License.
59
+
60
+ "Source" form shall mean the preferred form for making modifications,
61
+ including but not limited to software source code, documentation
62
+ source, and configuration files.
63
+
64
+ "Object" form shall mean any form resulting from mechanical
65
+ transformation or translation of a Source form, including but
66
+ not limited to compiled object code, generated documentation,
67
+ and conversions to other media types.
68
+
69
+ "Work" shall mean the work of authorship, whether in Source or
70
+ Object form, made available under the License, as indicated by a
71
+ copyright notice that is included in or attached to the work
72
+ (an example is provided in the Appendix below).
73
+
74
+ "Derivative Works" shall mean any work, whether in Source or Object
75
+ form, that is based on (or derived from) the Work and for which the
76
+ editorial revisions, annotations, elaborations, or other modifications
77
+ represent, as a whole, an original work of authorship. For the purposes
78
+ of this License, Derivative Works shall not include works that remain
79
+ separable from, or merely link (or bind by name) to the interfaces of,
80
+ the Work and Derivative Works thereof.
81
+
82
+ "Contribution" shall mean any work of authorship, including
83
+ the original version of the Work and any modifications or additions
84
+ to that Work or Derivative Works thereof, that is intentionally
85
+ submitted to Licensor for inclusion in the Work by the copyright owner
86
+ or by an individual or Legal Entity authorized to submit on behalf of
87
+ the copyright owner. For the purposes of this definition, "submitted"
88
+ means any form of electronic, verbal, or written communication sent
89
+ to the Licensor or its representatives, including but not limited to
90
+ communication on electronic mailing lists, source code control systems,
91
+ and issue tracking systems that are managed by, or on behalf of, the
92
+ Licensor for the purpose of discussing and improving the Work, but
93
+ excluding communication that is conspicuously marked or otherwise
94
+ designated in writing by the copyright owner as "Not a Contribution."
95
+
96
+ "Contributor" shall mean Licensor and any individual or Legal Entity
97
+ on behalf of whom a Contribution has been received by Licensor and
98
+ subsequently incorporated within the Work.
99
+
100
+ 2. Grant of Copyright License. Subject to the terms and conditions of
101
+ this License, each Contributor hereby grants to You a perpetual,
102
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
103
+ copyright license to reproduce, prepare Derivative Works of,
104
+ publicly display, publicly perform, sublicense, and distribute the
105
+ Work and such Derivative Works in Source or Object form.
106
+
107
+ 3. Grant of Patent License. Subject to the terms and conditions of
108
+ this License, each Contributor hereby grants to You a perpetual,
109
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
110
+ (except as stated in this section) patent license to make, have made,
111
+ use, offer to sell, sell, import, and otherwise transfer the Work,
112
+ where such license applies only to those patent claims licensable
113
+ by such Contributor that are necessarily infringed by their
114
+ Contribution(s) alone or by combination of their Contribution(s)
115
+ with the Work to which such Contribution(s) was submitted. If You
116
+ institute patent litigation against any entity (including a
117
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
118
+ or a Contribution incorporated within the Work constitutes direct
119
+ or contributory patent infringement, then any patent licenses
120
+ granted to You under this License for that Work shall terminate
121
+ as of the date such litigation is filed.
122
+
123
+ 4. Redistribution. You may reproduce and distribute copies of the
124
+ Work or Derivative Works thereof in any medium, with or without
125
+ modifications, and in Source or Object form, provided that You
126
+ meet the following conditions:
127
+
128
+ (a) You must give any other recipients of the Work or
129
+ Derivative Works a copy of this License; and
130
+
131
+ (b) You must cause any modified files to carry prominent notices
132
+ stating that You changed the files; and
133
+
134
+ (c) You must retain, in the Source form of any Derivative Works
135
+ that You distribute, all copyright, patent, trademark, and
136
+ attribution notices from the Source form of the Work,
137
+ excluding those notices that do not pertain to any part of
138
+ the Derivative Works; and
139
+
140
+ (d) If the Work includes a "NOTICE" text file as part of its
141
+ distribution, then any Derivative Works that You distribute must
142
+ include a readable copy of the attribution notices contained
143
+ within such NOTICE file, excluding those notices that do not
144
+ pertain to any part of the Derivative Works, in at least one
145
+ of the following places: within a NOTICE text file distributed
146
+ as part of the Derivative Works; within the Source form or
147
+ documentation, if provided along with the Derivative Works; or,
148
+ within a display generated by the Derivative Works, if and
149
+ wherever such third-party notices normally appear. The contents
150
+ of the NOTICE file are for informational purposes only and
151
+ do not modify the License. You may add Your own attribution
152
+ notices within Derivative Works that You distribute, alongside
153
+ or as an addendum to the NOTICE text from the Work, provided
154
+ that such additional attribution notices cannot be construed
155
+ as modifying the License.
156
+
157
+ You may add Your own copyright statement to Your modifications and
158
+ may provide additional or different license terms and conditions
159
+ for use, reproduction, or distribution of Your modifications, or
160
+ for any such Derivative Works as a whole, provided Your use,
161
+ reproduction, and distribution of the Work otherwise complies with
162
+ the conditions stated in this License.
163
+
164
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
165
+ any Contribution intentionally submitted for inclusion in the Work
166
+ by You to the Licensor shall be under the terms and conditions of
167
+ this License, without any additional terms or conditions.
168
+ Notwithstanding the above, nothing herein shall supersede or modify
169
+ the terms of any separate license agreement you may have executed
170
+ with Licensor regarding such Contributions.
171
+
172
+ 6. Trademarks. This License does not grant permission to use the trade
173
+ names, trademarks, service marks, or product names of the Licensor,
174
+ except as required for reasonable and customary use in describing the
175
+ origin of the Work and reproducing the content of the NOTICE file.
176
+
177
+ 7. Disclaimer of Warranty. Unless required by applicable law or
178
+ agreed to in writing, Licensor provides the Work (and each
179
+ Contributor provides its Contributions) on an "AS IS" BASIS,
180
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
181
+ implied, including, without limitation, any warranties or conditions
182
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
183
+ PARTICULAR PURPOSE. You are solely responsible for determining the
184
+ appropriateness of using or redistributing the Work and assume any
185
+ risks associated with Your exercise of permissions under this License.
186
+
187
+ 8. Limitation of Liability. In no event and under no legal theory,
188
+ whether in tort (including negligence), contract, or otherwise,
189
+ unless required by applicable law (such as deliberate and grossly
190
+ negligent acts) or agreed to in writing, shall any Contributor be
191
+ liable to You for damages, including any direct, indirect, special,
192
+ incidental, or consequential damages of any character arising as a
193
+ result of this License or out of the use or inability to use the
194
+ Work (including but not limited to damages for loss of goodwill,
195
+ work stoppage, computer failure or malfunction, or any and all
196
+ other commercial damages or losses), even if such Contributor
197
+ has been advised of the possibility of such damages.
198
+
199
+ 9. Accepting Warranty or Additional Liability. While redistributing
200
+ the Work or Derivative Works thereof, You may choose to offer,
201
+ and charge a fee for, acceptance of support, warranty, indemnity,
202
+ or other liability obligations and/or rights consistent with this
203
+ License. However, in accepting such obligations, You may act only
204
+ on Your own behalf and on Your sole responsibility, not on behalf
205
+ of any other Contributor, and only if You agree to indemnify,
206
+ defend, and hold each Contributor harmless for any liability
207
+ incurred by, or claims asserted against, such Contributor by reason
208
+ of your accepting any such warranty or additional liability.
209
+
210
+ END OF TERMS AND CONDITIONS
211
+
212
+ APPENDIX: How to apply the Apache License to your work.
213
+
214
+ To apply the Apache License to your work, attach the following
215
+ boilerplate notice, with the fields enclosed by brackets "[]"
216
+ replaced with your own identifying information. (Don't include
217
+ the brackets!) The text should be enclosed in the appropriate
218
+ comment syntax for the file format. We also recommend that a
219
+ file or class name and description of purpose be included on the
220
+ same "printed page" as the copyright notice for easier
221
+ identification within third-party archives.
222
+
223
+ Copyright 2025 Prior Labs GmbH
224
+
225
+ Licensed under the Apache License, Version 2.0 (the "License");
226
+ you may not use this file except in compliance with the License.
227
+ You may obtain a copy of the License at
228
+
229
+ http://www.apache.org/licenses/LICENSE-2.0
230
+
231
+ Unless required by applicable law or agreed to in writing, software
232
+ distributed under the License is distributed on an "AS IS" BASIS,
233
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
234
+ See the License for the specific language governing permissions and
235
+ limitations under the License.
236
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 goombalab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,52 @@
1
+ Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+
3
+
4
+ OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)
5
+
6
+ By exercising rights granted to you under this agreement, you accept and agree
7
+ to its terms.
8
+
9
+ As used in this agreement, "Model Materials" means the materials provided to
10
+ you under this agreement, consisting of: (1) one or more machine learning
11
+ models (including architecture and parameters); and (2) all related artifacts
12
+ (including associated data, documentation and software) that are provided to
13
+ you hereunder.
14
+
15
+ Subject to your compliance with this agreement, permission is hereby granted,
16
+ free of charge, to deal in the Model Materials without restriction, including
17
+ under all copyright, patent, database, and trade secret rights included or
18
+ embodied therein.
19
+
20
+ If you distribute any portion of the Model Materials, you shall retain in your
21
+ distribution (1) a copy of this agreement, and (2) all copyright notices and
22
+ other notices of origin included in the Model Materials that are applicable to
23
+ your distribution.
24
+
25
+ If you file, maintain, or voluntarily participate in a lawsuit against any
26
+ person or entity asserting that the Model Materials directly or indirectly
27
+ infringe any patent or copyright, then all rights and grants made to you
28
+ hereunder are terminated, unless that lawsuit was in response to a
29
+ corresponding lawsuit first brought against you.
30
+
31
+ This agreement does not impose any restrictions or obligations with respect to
32
+ any use, modification, or sharing of any outputs generated by using the Model
33
+ Materials.
34
+
35
+ THE MODEL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
36
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE, NONINFRINGEMENT, ACCURACY, OR THE
38
+ ABSENCE OF LATENT OR OTHER DEFECTS OR ERRORS, WHETHER OR NOT DISCOVERABLE, ALL
39
+ TO THE GREATEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW.
40
+
41
+ YOU ARE SOLELY RESPONSIBLE FOR (1) CLEARING RIGHTS OF OTHER PERSONS THAT MAY
42
+ APPLY TO THE MODEL MATERIALS OR ANY USE THEREOF, INCLUDING WITHOUT LIMITATION
43
+ ANY PERSON'S COPYRIGHTS OR OTHER RIGHTS INCLUDED OR EMBODIED IN THE MODEL
44
+ MATERIALS; (2) OBTAINING ANY NECESSARY CONSENTS, PERMISSIONS OR OTHER RIGHTS
45
+ REQUIRED FOR ANY USE OF THE MODEL MATERIALS; OR (3) PERFORMING ANY DUE
46
+ DILIGENCE OR UNDERTAKING ANY OTHER INVESTIGATIONS INTO THE MODEL MATERIALS OR
47
+ ANYTHING INCORPORATED OR EMBODIED THEREIN.
48
+
49
+ IN NO EVENT SHALL THE PROVIDERS OF THE MODEL MATERIALS BE LIABLE FOR ANY CLAIM,
50
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
51
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODEL MATERIALS, THE
52
+ USE THEREOF OR OTHER DEALINGS THEREIN.
@@ -0,0 +1,39 @@
1
+ FirePFN
2
+ Copyright (c) 2025-2026 the FirePFN authors (see AUTHORS)
3
+
4
+ This product includes software developed by third parties:
5
+
6
+ * Kumo-Tabular table encoder (firepfn/model/kumo.py)
7
+ Re-implementation of code from NVIDIA structured-data-models.
8
+ Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
9
+ Licensed under the Apache License, Version 2.0 (LICENSES/Apache-2.0.txt).
10
+ https://github.com/NVIDIA/structured-data-models
11
+
12
+ * Kumo-Tabular pretrained weights (frozen encoder inside the released checkpoints)
13
+ Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
14
+ Licensed under the OpenMDW License Agreement, version 1.1
15
+ (LICENSES/OpenMDW-1.1-Kumo-Tabular-weights.txt).
16
+ https://huggingface.co/nvidia/Kumo-Tabular
17
+
18
+ * Hydra (firepfn/model/hydra2.py)
19
+ Copyright (c) 2024 Sukjun Hwang, Aakash Lahoti, Ratish Puduppully, Tri Dao, Albert Gu;
20
+ Copyright (c) 2025 goombalab. MIT License (LICENSES/MIT-Hydra.txt).
21
+ https://github.com/goombalab/hydra
22
+
23
+ * Mamba (firepfn/model/_mamba_block.py; firepfn/model/hydra2.py)
24
+ Copyright (c) 2023-2025 Tri Dao, Albert Gu.
25
+ Licensed under the Apache License, Version 2.0 (LICENSES/Apache-2.0.txt).
26
+ https://github.com/state-spaces/mamba
27
+
28
+ * TabPFN v1, 2022 release (firepfn/ensemble.py)
29
+ Copyright 2022 Noah Hollmann, Samuel Müller, Katharina Eggensperger, Frank Hutter.
30
+ Licensed under the Apache License, Version 2.0 (LICENSES/Apache-2.0.txt).
31
+ https://github.com/PriorLabs/TabPFN
32
+
33
+ * TabICL (firepfn/train/_tabicl_dataset.py; the `tabicl` package is a training dependency)
34
+ Copyright (c) 2025, Soda team @ Inria.
35
+ BSD 3-Clause License (LICENSES/BSD-3-Clause-TabICL.txt).
36
+ https://github.com/soda-inria/tabicl
37
+
38
+ Files containing third-party code carry an SPDX-License-Identifier header naming their license,
39
+ the origin, and a statement that they were modified (Apache-2.0, Section 4(b)).
@@ -0,0 +1 @@
1
+ firepfn