Datasets:

Tasks:
Other
Modalities:
Tabular
Formats:
csv
ArXiv:
License:

Add dataset card for LimiX-2M

#2
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +63 -3
README.md CHANGED
@@ -1,3 +1,63 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - other
5
+ tags:
6
+ - tabular
7
+ - foundation-model
8
+ ---
9
+
10
+ # LimiX-2M
11
+
12
+ LimiX-2M is a 2M-parameter tabular foundation model (TFM) introduced in the paper [LimiX-2M: Mitigating Low-Rank Collapse and Attention Bottlenecks in Tabular Foundation Models](https://huggingface.co/papers/2606.04485). It utilizes a unified tokenize-and-route framework to improve conditioning and shallow-layer effective rank, outperforming larger baselines on widely used tabular benchmarks.
13
+
14
+ - **Project Page:** [https://www.limix.ai/](https://www.limix.ai/)
15
+ - **GitHub Repository:** [https://github.com/limix-ldm-ai/LimiX](https://github.com/limix-ldm-ai/LimiX)
16
+
17
+ ## Sample Usage
18
+
19
+ The following example demonstrates how to use the `LimiXPredictor` for a classification task as described in the repository's documentation:
20
+
21
+ ```python
22
+ from sklearn.datasets import load_breast_cancer
23
+ from sklearn.metrics import accuracy_score, roc_auc_score
24
+ from sklearn.model_selection import train_test_split
25
+ from huggingface_hub import hf_hub_download
26
+ import numpy as np
27
+ import torch
28
+ import os, sys
29
+
30
+ # Set environment variables for initialization
31
+ os.environ["RANK"] = "0"
32
+ os.environ["WORLD_SIZE"] = "1"
33
+ os.environ["MASTER_ADDR"] = "127.0.0.1"
34
+ os.environ["MASTER_PORT"] = "29500"
35
+
36
+ # Assuming the LimiX repository is cloned and in the path
37
+ from inference.predictor import LimiXPredictor
38
+
39
+ # Load data
40
+ X, y = load_breast_cancer(return_X_y=True)
41
+ X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42)
42
+
43
+ # Download model checkpoint
44
+ model_file = hf_hub_download(repo_id="stableai-org/LimiX-2M", filename="LimiX-2M.ckpt", local_dir="./cache")
45
+
46
+ # Initialize predictor and predict
47
+ clf = LimiXPredictor(device=torch.device('cuda' if torch.cuda.is_available() else 'cpu'), model_path=model_file, inference_config='config/cls_default_retrieval.json')
48
+ prediction = clf.predict(X_train, y_train, X_test)
49
+
50
+ print("roc_auc_score:", roc_auc_score(y_test, prediction[:, 1]))
51
+ print("accuracy_score:", accuracy_score(y_test, np.argmax(prediction, axis=1)))
52
+ ```
53
+
54
+ ## Citation
55
+
56
+ ```bibtex
57
+ @article{zhang2025limix,
58
+ title={Limix: Unleashing structured-data modeling capability for generalist intelligence},
59
+ author={Zhang, Xingxuan and Ren, Gang and Yu, Han and Yuan, Hao and Wang, Hui and Li, Jiansheng and Wu, Jiayun and Mo, Lang and Mao, Li and Hao, Mingchao and others},
60
+ journal={arXiv preprint arXiv:2509.03505},
61
+ year={2025}
62
+ }
63
+ ```