[Library Request] tabpfn
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- docker, huggingface, python, pytorch
调研方向
首先定位 LEAN Python Docker image 的依赖项固定版本,以及现有的预训练模型缓存处理方式。检查 TabPFNClassifier 和 TabPFNRegressor 的入口点,验证它们的 checkpoint 无需访问外部 Internet 即可使用,并确认两个估计器都能在 Research 和 Backtest 中成功执行到 fit()。
由索引模型根据 Issue 内容生成。
描述
Summary
Add the tabpfn package to the default QuantConnect Python environment.
Package details
- PyPI: https://pypi.org/project/tabpfn/ (latest 8.4.0,
requires_python >=3.10) - GitHub: https://github.com/PriorLabs/TabPFN (public, ~7.8k stars, actively maintained - last push 2026-08-25)
- License: Prior Labs License - Apache 2.0 with an additional attribution provision (paragraph 10: "Built with PriorLabs-TabPFN" attribution when the work/weights or a derived model are distributed or made available). Internal benchmarking and testing without external communication is explicitly exempt.
- Maintainer: Prior Labs
TabPFN is a transformer-based foundation model for tabular data that performs classification and regression by in-context learning: instead of fitting parameters, it runs a single forward pass over the training rows, so a "fit" on a small/medium table is effectively instant and needs no hyperparameter search. It exposes a scikit-learn compatible API (TabPFNClassifier / TabPFNRegressor), which makes it a drop-in alternative to the sklearn / LightGBM estimators already in the image for the small-sample tabular problems that dominate quantitative research.
Dependencies
Runtime requirements (from PyPI metadata for 8.4.0):
torch>=2.5, scikit-learn>=1.2.0, numpy>=1.21.6, scipy>=1.11.1, pandas>=1.4.0, lightgbm>=4.4, huggingface-hub>=0.23.0, safetensors>=0.4.0, pydantic>=2.8.0, pydantic-settings>=2.10.1, einops>=0.4.0, joblib>=1.2.0, tqdm>=4.66.0, filelock>=3.11.0, typing_extensions>=4.12.0.
Most of these (torch, scikit-learn, numpy, scipy, pandas, lightgbm, huggingface-hub, safetensors, joblib, tqdm, filelock) are already in the environment; einops, pydantic-settings and the torch>=2.5 floor are the items to check against the current pins. The mlx requirement is macOS/arm64-only and does not apply to the Linux image.
Open question - pretrained weights need to be baked into the image
TabPFN is a pretrained model: on first use the client downloads its checkpoint from Hugging Face (huggingface-hub) into a local cache. Algorithm containers have no outbound internet access, so pip install tabpfn alone would leave the package raising a download error at fit() time in both Research and Backtest.
For the library to be usable, the model checkpoints need to be pre-fetched at image build time and the cache directory (HF_HOME / the package's model cache path) pointed at that baked-in location, the same way other pretrained-model packages are handled. Worth confirming which classifier/regressor checkpoints to ship - the default ones are on the order of a few hundred MB.
Proposed change
Add tabpfn (plus any missing transitive dependencies) to the LEAN Python Docker image at the next batched library rebuild, and pre-download the default model checkpoints into the image cache so the estimators work offline.
Source
QuantConnect support ticket [Intercom 215475645137717].
- 主要语言
- C#
- 星标
- 21.9k
- 派生
- 5.3k
- 平均合并
- 19 小时 31 分钟
- 30 天内合并 PR
- 44
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
QuantConnect/Lean 的其他 Issue
-
AlpacaBrokerageModel refuses extended-hours limit orders with the GTC time in force, which Alpaca accepts可能已有人在做 @AlexCatarino 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
QuantConnect/Lean#9892 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
QuantConnect/Lean#9889 ·
维护者通常 1 天内回复
-
library-request
难度 2/5 1-3 小时 新手友好度 68/100
QuantConnect/Lean#9879 ·
维护者通常 1 天内回复
-
library-request
难度 2/5 1-3 小时 新手友好度 74/100
QuantConnect/Lean#9743 ·
维护者通常 1 天内回复
-
library-request
难度 2/5 1-3 小时 新手友好度 68/100
QuantConnect/Lean#9500 ·
维护者通常 1 天内回复
查看 QuantConnect/Lean 的全部 Issue
相似的 Issue
-
clawsweeper:source-repro impact:ux-release-blocker issue-rating: 🦞 diamond lobster P0
难度 2/5 1-3 小时 新手友好度 75/100
openclaw/openclaw-windows-node#1723 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
good first issue hacktoberfest help wanted new-language
难度 2/5 半天 新手友好度 78/100
-
[Android] Controls.DeviceTests build fails with xUnit2031 analyzer error可能已有人在做 @HarishwaranVijayakumar 今天认领。 未关闭partner/syncfusion s/triaged s/verified
难度 2/5 1-3 小时 新手友好度 65/100
dotnet/maui#39376 · 1 个 reaction ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 62/100
-
bug misleading tooling trivial
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复