pocket-math-ops / code /pyproject.toml
aafimalek2032's picture
code ca5ec3214eaa
b16b327 verified
Raw History Blame Contribute Delete
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"]