Update README.md
Browse files
README.md
CHANGED
|
@@ -13,18 +13,18 @@ tags:
|
|
| 13 |
base_model: nvidia/Kumo-Tabular
|
| 14 |
---
|
| 15 |
|
| 16 |
-
#
|
| 17 |
|
| 18 |
<!-- TODO: paper title, authors, link -->
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
training or hyperparameter tuning per dataset. Its cost grows linearly with the number of
|
| 23 |
training rows, so it handles tables with millions of rows on one GPU.
|
| 24 |
|
| 25 |
-
- **Code:** <https://github.com/LUH-AI/
|
| 26 |
- **Paper:** TODO
|
| 27 |
-
- **License:** BSD-3-Clause for the
|
| 28 |
Kumo-Tabular encoder (see [License](#license))
|
| 29 |
|
| 30 |
## Model
|
|
@@ -57,15 +57,15 @@ Requires a CUDA GPU (the backbone uses Triton kernels).
|
|
| 57 |
```bash
|
| 58 |
pip install torch # >= 2.9.1, CUDA build
|
| 59 |
pip install mamba-ssm # >= 2.3.2, with the Mamba-3 kernels
|
| 60 |
-
pip install git+https://github.com/LUH-AI/
|
| 61 |
```
|
| 62 |
|
| 63 |
```python
|
| 64 |
from huggingface_hub import hf_hub_download
|
| 65 |
-
from firepfn import
|
| 66 |
|
| 67 |
-
ckpt = hf_hub_download("LUH-AI/
|
| 68 |
-
clf =
|
| 69 |
clf.fit(X_train, y_train)
|
| 70 |
proba = clf.predict_proba(X_test)
|
| 71 |
```
|
|
@@ -113,7 +113,7 @@ TALENT, BeyondArena and RamanBench, and the scripts that produce the paper's tab
|
|
| 113 |
|
| 114 |
The checkpoint contains parameters under two licenses (details in [LICENSE.md](LICENSE.md)):
|
| 115 |
|
| 116 |
-
- **
|
| 117 |
[LICENSE-BSD-3-Clause.txt](LICENSE-BSD-3-Clause.txt).
|
| 118 |
- **Kumo-Tabular encoder** (`table_encoder.*`, NVIDIA, unmodified and frozen): OpenMDW License
|
| 119 |
Agreement 1.1, [LICENSE-OpenMDW-1.1.txt](LICENSE-OpenMDW-1.1.txt). If you redistribute these
|
|
|
|
| 13 |
base_model: nvidia/Kumo-Tabular
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# FirePFN
|
| 17 |
|
| 18 |
<!-- TODO: paper title, authors, link -->
|
| 19 |
|
| 20 |
+
FirePFN is a tabular foundation model for classification by in-context learning: you pass a
|
| 21 |
+
labeled training table and the model predicts the test rows in a single forward pass, with no
|
| 22 |
training or hyperparameter tuning per dataset. Its cost grows linearly with the number of
|
| 23 |
training rows, so it handles tables with millions of rows on one GPU.
|
| 24 |
|
| 25 |
+
- **Code:** <https://github.com/LUH-AI/FirePFN>
|
| 26 |
- **Paper:** TODO
|
| 27 |
+
- **License:** BSD-3-Clause for the FirePFN parameters, OpenMDW-1.1 for the embedded NVIDIA
|
| 28 |
Kumo-Tabular encoder (see [License](#license))
|
| 29 |
|
| 30 |
## Model
|
|
|
|
| 57 |
```bash
|
| 58 |
pip install torch # >= 2.9.1, CUDA build
|
| 59 |
pip install mamba-ssm # >= 2.3.2, with the Mamba-3 kernels
|
| 60 |
+
pip install git+https://github.com/LUH-AI/FirePFN
|
| 61 |
```
|
| 62 |
|
| 63 |
```python
|
| 64 |
from huggingface_hub import hf_hub_download
|
| 65 |
+
from firepfn import FirePFNClassifier
|
| 66 |
|
| 67 |
+
ckpt = hf_hub_download("LUH-AI/FirePFN", "fire-pfn.ckpt")
|
| 68 |
+
clf = FirePFNClassifier(model_path=ckpt)
|
| 69 |
clf.fit(X_train, y_train)
|
| 70 |
proba = clf.predict_proba(X_test)
|
| 71 |
```
|
|
|
|
| 113 |
|
| 114 |
The checkpoint contains parameters under two licenses (details in [LICENSE.md](LICENSE.md)):
|
| 115 |
|
| 116 |
+
- **FirePFN parameters** (everything except `table_encoder.*`): BSD 3-Clause License,
|
| 117 |
[LICENSE-BSD-3-Clause.txt](LICENSE-BSD-3-Clause.txt).
|
| 118 |
- **Kumo-Tabular encoder** (`table_encoder.*`, NVIDIA, unmodified and frozen): OpenMDW License
|
| 119 |
Agreement 1.1, [LICENSE-OpenMDW-1.1.txt](LICENSE-OpenMDW-1.1.txt). If you redistribute these
|