-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (75 loc) · 2.16 KB
/
pyproject.toml
File metadata and controls
86 lines (75 loc) · 2.16 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
[project]
name = "medarc-rl"
version = "0.1.0"
description = "MedARC environments, utilities, and tools for PrimeRL"
readme = "README.md"
requires-python = "~=3.12.0"
dependencies = [
"jinja2>=3.1.0",
"medarc-verifiers",
"prime-rl",
"tomli-w>=1.2.0",
"typer>=0.24.1",
"verifiers",
"wandb==0.25.1",
"vllm>=0.17,<0.18"
]
[project.optional-dependencies]
envs = ["prime-rl[envs]"]
fa2 = ["prime-rl[flash-attn]"]
fa3 = ["prime-rl[flash-attn]", "flash_attn_3"]
fa4 = ["prime-rl[flash-attn]", "flash_attn_3", "flash-attn-4>=4.0.0b4"]
flash-attn-2 = ["prime-rl[flash-attn]"]
flash-attn-3 = ["prime-rl[flash-attn]", "flash_attn_3"]
flash-attn-4 = ["prime-rl[flash-attn]", "flash_attn_3", "flash-attn-4>=4.0.0b4"]
[project.scripts]
medarc_slurm = "medarc_rl.medarc_slurm:app"
medarc_train = "medarc_rl.medarc_train:app"
[build-system]
requires = ["uv_build>=0.10.0,<0.12.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "medarc_rl"
module-root = ""
[tool.uv.sources]
prime-rl = { path = "prime-rl", editable = true }
torch = { index = "pytorch-cu128" }
transformers = { git = "https://github.com/huggingface/transformers.git", rev = "5c1c72b" }
flash_attn_3 = { index = "flash-attn-3-cu128-torch2100" }
[[tool.uv.index]]
name = "flash-attn-3-cu128-torch2100"
url = "https://windreamer.github.io/flash-attention3-wheels/cu128_torch2100"
format = "flat"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[dependency-groups]
dev = [
"pytest>=9.0.2",
"ruff>=0.15.2",
]
[tool.uv]
preview = true
package = true
prerelease = "allow"
environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
"sys_platform == 'linux' and platform_machine == 'aarch64'",
]
required-environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'",
"sys_platform == 'linux' and platform_machine == 'aarch64'",
]
override-dependencies = [
"nvidia-cudnn-cu12>=9.15",
"nvidia-cutlass-dsl>=4.4.1",
"verifiers",
"transformers>=5.1.0.dev0",
"quack-kernels>=0.3.3",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.ruff]
line-length = 120