forked from PrimeIntellect-ai/prime-rl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (87 loc) · 2.36 KB
/
Copy pathpyproject.toml
File metadata and controls
99 lines (87 loc) · 2.36 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[project]
name = "prime-rl"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = "~=3.12.0"
dependencies = [
"beartype>=0.21.0",
"cydifflib>=1.2.0",
"datasets>=3.6.0",
"google-cloud-storage>=3.1.1", # TODO: Delete after refactor
"jaxtyping>=0.3.2",
"liger-kernel>=0.5.10",
"loguru>=0.7.3",
"numpy>=2.2.6",
"openai>=1.93.0",
"pydantic>=1.10.13",
"pydantic-settings>=2.10.1",
"pylatexenc>=2.10",
"pynvml>=12.0.0",
"shardcast>=0.3.2",
"tomli>=2.2.1",
"torch>=2.7.0",
"transformers>=4.53.0",
"uvloop>=0.21.0",
"vllm>=0.9.1",
"wandb>=0.20.1",
"lovely-tensors>=0.1.18",
"rich>=14.0.0",
"tomli-w",
"verifiers",
"textarena>=0.6.16",
"nltk>=3.9.1",
"vf-intellect-math",
"vf-wordle",
"vf-reverse-text",
"math-verify>=0.8.0",
]
[project.scripts]
rl = "prime_rl.rl:main"
trainer = "prime_rl.trainer.train:main"
orchestrator = "prime_rl.orchestrator.orchestrator:main"
inference = "prime_rl.inference.server:main"
eval = "prime_rl.eval.eval:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.optional-dependencies]
flash-attn = ["flash-attn>=2.8.0"]
flash-infer = ["flashinfer-python>=0.2.8rc1"]
[tool.uv]
no-build-isolation-package = ["flash-attn"]
prerelease = "allow"
[tool.uv.sources]
torch = [{ index = "pytorch-cu128" }]
verifiers = { git = "https://github.com/willccbb/verifiers", rev = "74c604f" }
vf-intellect-math = { workspace = true }
vf-wordle = { git = "https://github.com/willccbb/verifiers.git", subdirectory = "environments/vf_wordle", rev = "main" }
vf-reverse-text = { workspace = true }
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/test/cu128"
explicit = true
[tool.uv.workspace]
members = [
"environments/vf_intellect_math",
"environments/vf_reverse_text",
]
[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"ipywidgets>=8.1.7",
"pre-commit>=4.2.0",
"pytest>=8.4.1",
"ruff>=0.12.1",
]
[tool.ruff.lint]
select = ["F", "I"]
ignore = ["F722", "F821"] # Need to ignore for jaxtyping (https://docs.kidger.site/jaxtyping/faq/)
[tool.ruff]
line-length = 120
[tool.pytest.ini_options]
addopts = "--strict-markers"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"gpu: marks tests as gpu (deselect with '-m \"not gpu\"')",
]