-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathpyproject.toml
More file actions
213 lines (207 loc) · 6.17 KB
/
pyproject.toml
File metadata and controls
213 lines (207 loc) · 6.17 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "OpenThoughts-Agent"
version = "0.1.0"
description = "OT-Agent HPC launch and data tooling"
requires-python = ">=3.10"
dependencies = [
# Core HPC + data infrastructure deps
"pydantic>=2.0.0,<3.0.0",
"pyyaml",
"omegaconf",
"wandb",
"bs4",
"numpy<=2.26.0",
"huggingface_hub>=0.20.0,<1.0.0",
"datasets>=2.0.0",
"supabase>=2.22.3",
"python-dotenv>=1.0.0",
"harbor[daytona] @ git+https://github.com/laude-institute/harbor.git@penfever/temp-override",
"dynamic-semaphore @ git+https://github.com/penfever/dynamic-semaphore",
"google-cloud-storage",
"h5py",
"certifi",
"rapidfuzz",
"huggingface_hub",
"uv>=0.4.17",
"socksio", # SOCKS5 proxy support for httpx (needed for JSC SSH tunnels)
]
[project.optional-dependencies]
datagen-cpu = [
"google-cloud-aiplatform>=1.67.0",
"google-genai>=0.1.0",
"accelerate==1.12.0",
"trufflehog>=2.2.0",
]
datagen = [
"ray[default]>=2.50.0",
"torch-c-dlpack-ext==0.1.4",
"google-cloud-aiplatform>=1.67.0",
"google-genai>=0.1.0",
"vllm[flashinfer]>=0.11.2,<=0.16.0; platform_system != 'Darwin'",
"transformers==4.57.3",
"torch>=2.9.0,<=2.10.0; platform_system != 'Darwin'",
"accelerate==1.12.0",
"trufflehog>=2.2.0",
]
# ROCm/AMD GPU variant for datagen (e.g., OLCF Frontier with MI250X)
# Install with:
# uv pip install -e ".[datagen-rocm]" \
# --extra-index-url https://wheels.vllm.ai/rocm/0.14.0/rocm700 \
# --prerelease=allow
datagen-rocm = [
"ray[default]>=2.50.0",
"torch-c-dlpack-ext==0.1.4",
"google-cloud-aiplatform>=1.67.0",
"google-genai>=0.1.0",
"transformers==4.57.3",
# PyTorch ROCm 6.4 - must install with --index-url https://download.pytorch.org/whl/rocm6.4
"torch==2.8.0",
"torchvision==0.23.0",
"torchaudio==2.8.0",
# vLLM ROCm wheel (requires --extra-index-url https://wheels.vllm.ai/rocm/0.14.0/rocm700 --prerelease=allow)
"vllm==0.14.0+rocm700",
# Note: flash-attn is CUDA-only; PyTorch native attention used instead
]
datagen-swesmith = [
"swesmith",
]
cloud = [
"skypilot>=0.6.1",
"google-api-python-client", # GCP support for SkyPilot
"boto3", # S3-compatible object storage (MinIO, AWS S3)
"s3fs", # Filesystem interface for S3/MinIO
]
cloud-aws = [
"skypilot>=0.6.1",
"boto3",
]
cloud-lambda = [
"skypilot>=0.6.1",
# Lambda Cloud only needs skypilot + API key configuration
]
cloud-vast = [
"skypilot>=0.6.1",
"vastai-sdk>=0.1.12",
]
cloud-kubernetes = [
"skypilot>=0.6.1",
# Kubernetes needs kubectl + kubeconfig, no extra Python deps
]
cloud-all = [
"skypilot>=0.6.1",
"google-api-python-client",
"boto3",
"vastai-sdk>=0.1.12",
]
rl = [
# SkyRL training framework - install with vllm extra for inference
# Uses mlfoundations fork with custom patches
"skyrl[vllm] @ git+https://github.com/mlfoundations/skyrl.git",
"Jinja2", # For chat templates
]
# ROCm/AMD GPU variant for RL (e.g., OLCF Frontier with MI250X)
# Install with: uv pip install -e ".[rl-rocm]" --index-url https://download.pytorch.org/whl/rocm6.4
# Or use: ./hpc/setup_rl_env.sh --rocm
rl-rocm = [
# SkyRL without vllm extra (vLLM ROCm support is experimental)
"skyrl @ git+https://github.com/mlfoundations/skyrl.git",
"Jinja2", # For chat templates
# PyTorch ROCm 6.4 - must install with --index-url https://download.pytorch.org/whl/rocm6.4
"torch==2.8.0",
"torchvision==0.23.0",
"torchaudio==2.8.0",
# Note: flash-attn is CUDA-only; PyTorch native attention used instead
]
# IMPORTANT: RL and datagen extras are INCOMPATIBLE due to version conflicts:
# - RL (SkyRL): torch==2.8.0, vllm==0.11.0, Python 3.12 required
# - datagen: torch==2.9.0, vllm==0.11.2, Python 3.10+
# The RL environment must be set up separately using: ./hpc/setup_rl_env.sh
# The RL launcher will automatically use the separate environment.
# See hpc/rl_launch_utils.py for details.
# SFT for Qwen3.5 models (requires transformers v5+ for hybrid GDN architecture)
# IMPORTANT: Incompatible with datagen/RL extras (transformers 4.x vs 5.x).
# Must be installed in a separate environment.
# Install with:
# uv pip install -e ".[sft-qwen35]"
sft-qwen35 = [
"transformers>=5.3.0",
"torch>=2.6.0",
"accelerate>=1.3.0",
"datasets>=2.16.0",
"peft>=0.14.0",
"trl>=0.8.6",
"tokenizers>=0.19.0",
"deepspeed>=0.16.0",
"flash-attn>=2.7.0; platform_system != 'Darwin'",
"torchao>=0.8.0",
"liger-kernel>=0.5.0",
"trufflehog>=2.2.0",
]
# Harbor environment backends
curator = [
"bespokelabs-curator>=0.1.0",
]
harbor-docker = [
"docker>=7.0.0",
]
harbor-modal = [
"modal>=0.60.0",
]
harbor-all = [
"docker>=7.0.0",
"modal>=0.60.0",
]
# Beam cluster setup (self-hosted Beta9 on GKE)
beam = [
"requests>=2.31.0",
"beta9>=0.1.0",
]
[tool.setuptools.packages.find]
where = ["."]
include = [
"data",
"data.*",
"database",
"database.*",
"sft",
"sft.*",
"eval",
"eval.*",
"hpc",
"hpc.*",
"rl",
"rl.*",
"scripts",
"scripts.*",
"train",
"train.*",
]
exclude = [
"docs*",
"notes*",
"wheels*",
"tmp*",
]
[tool.uv.pip]
# Default: CUDA 12.8 PyTorch index
# For ROCm/AMD GPUs (e.g., Frontier), use instead:
# uv pip install ... --index-url https://download.pytorch.org/whl/rocm6.4
extra-index-url = ["https://download.pytorch.org/whl/cu128"]
[tool.uv]
index-strategy = "unsafe-best-match"
# =============================================================================
# ROCm Installation Notes (for AMD GPUs like Frontier MI250X)
# =============================================================================
# ROCm extras (datagen-rocm, rl-rocm) require the ROCm PyTorch index:
#
# # For datagen on ROCm:
# uv pip install -e ".[datagen-rocm]" --index-url https://download.pytorch.org/whl/rocm6.4
#
# # For RL on ROCm (preferred method is setup script):
# ./hpc/setup_rl_env.sh --rocm
#
# See: https://docs.olcf.ornl.gov/software/analytics/pytorch_frontier.html
# =============================================================================