Download code/pyproject.toml from Palaestra/pocket-math-ops: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/datasets/Palaestra/pocket-math-ops/resolve/main/code/pyproject.toml
- Command line
-
hf download hf://datasets/Palaestra/pocket-math-ops/code/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/datasets/Palaestra/pocket-math-ops/resolve/main/code/pyproject.toml
1.29 kB
| [build-system] | |
| requires = ["setuptools>=68"] | |
| build-backend = "setuptools.build_meta" | |
| [project] | |
| name = "pocket-math" | |
| version = "0.1.0" | |
| description = "Distil and RL-train a laptop-sized math model on free Kaggle GPUs, resumable across accounts." | |
| readme = "README.md" | |
| requires-python = ">=3.10" | |
| dependencies = [ | |
| "numpy>=1.24", | |
| "pyyaml>=6.0", | |
| "huggingface_hub>=0.30", | |
| ] | |
| [project.optional-dependencies] | |
| # The trainer and teacher scorer run in Kaggle's own Python, next to its preinstalled torch. | |
| train = [ | |
| "torch>=2.4", | |
| "transformers>=5.6", | |
| "peft>=0.18", | |
| "safetensors>=0.4", | |
| "math-verify[antlr4_13_2]>=0.8", | |
| ] | |
| # vLLM runs in a separate venv on Kaggle (kaggle/session.py) so it never replaces the trainer's torch. | |
| data = ["datasets>=3.0", "math-verify[antlr4_13_2]>=0.9", "sentence-transformers>=3.0", "transformers>=5.6"] | |
| dev = ["pytest>=8", "ruff>=0.5"] | |
| [tool.setuptools.packages.find] | |
| include = ["pocket_math*"] | |
| [tool.pytest.ini_options] | |
| testpaths = ["tests"] | |
| markers = ["slow: takes more than ~20 s on a laptop CPU", "network: downloads from the Hugging Face Hub"] | |
| addopts = "-m 'not network'" | |
| [tool.ruff] | |
| line-length = 110 | |
| target-version = "py310" | |
| [tool.ruff.lint] | |
| select = ["E", "F", "W", "I", "B", "UP"] | |
| ignore = ["E501"] | |