Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (146 loc) · 4.12 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (146 loc) · 4.12 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "open-rl"
version = "0.0.1"
description = "Open-RL server and training runtime."
readme = "README.md"
requires-python = ">=3.12, <3.13"
dependencies = [
"chz>=0.4.0",
"fastapi",
"opentelemetry-api",
"opentelemetry-sdk",
"opentelemetry-instrumentation-fastapi",
"opentelemetry-exporter-gcp-trace",
"protobuf>=5",
"pydantic",
"redis>=5.0.0",
"uvicorn",
"httpx",
"tqdm>=4.50",
]
[project.entry-points."vllm.general_plugins"]
open_rl_weight_transfer = "server.delta_weight_transfer_engine:register_delta_weight_transfer"
[project.optional-dependencies]
cpu = [
"cachetools",
"cbor2",
"datasets",
"einops",
"numpy",
"openai",
"openai_harmony",
"peft",
"pillow",
"pybase64",
"pyzmq",
"torch",
"transformers>=5.16.1",
]
gpu = [
"datasets",
"flash-linear-attention==0.6.0",
"numpy",
"peft",
"tilelang>=0.1.9; sys_platform == 'linux'",
"torch; sys_platform == 'linux'",
"torchvision; sys_platform == 'linux'",
"transformers>=5.16.1",
]
vllm = [
"torch; sys_platform == 'linux'",
"torchaudio; sys_platform == 'linux'",
"torchcodec; sys_platform == 'linux'",
"torchvision; sys_platform == 'linux'",
"torch-c-dlpack-ext; sys_platform == 'linux'",
"vllm==0.32.0; sys_platform == 'linux'",
# Prebuilt FlashInfer kernels, pinned to the flashinfer-python vLLM brings.
# Without it a sampler JIT-builds kernels such as gdn_prefill_sm90 on every
# fresh pod, ~30 minutes at MAX_JOBS=4.
"flashinfer-jit-cache==0.7.0.post1; sys_platform == 'linux'",
]
# Kubernetes cluster mode: the k8s API client used to launch FFT worker pods.
cluster = [
"google-auth",
"kubernetes>=29",
# Kept in step with the snapshot-agent image deployed in
# docs/setup/gke-fft-timeslice.md: both come from this upstream release.
"timeslice @ git+https://github.com/llm-d-incubation/llm-d-rl-time-slicing.git@v0.1.0#subdirectory=pkg/client/python",
]
dev = [
"ruff>=0.5.0",
]
[tool.setuptools.package-dir]
"" = "src"
[tool.setuptools.packages.find]
where = ["src"]
include = ["server*", "training*", "accel_timeslicer*"]
[tool.setuptools.package-data]
"server.observability" = ["static/*"]
[tool.uv]
conflicts = [
[
{ extra = "cpu" },
{ extra = "gpu" },
],
[
{ extra = "cpu" },
{ extra = "vllm" },
],
]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
default = true
[[tool.uv.index]]
name = "torch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "torch-gpu"
url = "https://download.pytorch.org/whl/cu129"
explicit = true
[[tool.uv.index]]
name = "vllm-cu129"
url = "https://wheels.vllm.ai/0.32.0/cu129"
explicit = true
[[tool.uv.index]]
name = "flashinfer-cu129"
# Non-explicit so uv can resolve the transitive per-SM packages
# (flashinfer-jit-cache-sm*) that flashinfer-jit-cache>=0.7 depends on.
# This index only hosts flashinfer-jit-cache* wheels, and pypi stays default.
url = "https://flashinfer.ai/whl/cu129"
[tool.uv.sources]
# Pick the torch build from the user-facing cpu/gpu extras; vllm always uses CUDA torch.
torch = [
{ index = "torch-cpu", extra = "cpu" },
{ index = "torch-gpu", extra = "gpu", marker = "sys_platform == 'linux'" },
{ index = "torch-gpu", extra = "vllm", marker = "sys_platform == 'linux'" },
]
torchaudio = [
{ index = "torch-gpu", extra = "vllm", marker = "sys_platform == 'linux'" },
]
torchcodec = [
{ index = "torch-gpu", extra = "vllm", marker = "sys_platform == 'linux'" },
]
torchvision = [
{ index = "torch-gpu", extra = "gpu", marker = "sys_platform == 'linux'" },
{ index = "torch-gpu", extra = "vllm", marker = "sys_platform == 'linux'" },
]
vllm = [
{ index = "vllm-cu129", extra = "vllm", marker = "sys_platform == 'linux'" },
]
flashinfer-jit-cache = [
{ index = "flashinfer-cu129", extra = "vllm", marker = "sys_platform == 'linux'" },
]
[tool.ruff]
force-exclude = true
exclude = [
".git",
".venv",
"__pycache__",
"scratch",
"scratch/**",
]