File size: 1,289 Bytes
b16b327
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[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"]