-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (88 loc) · 2.39 KB
/
Copy pathpyproject.toml
File metadata and controls
94 lines (88 loc) · 2.39 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lego-rl"
version = "0.1.0"
description = "Integration patches for agentic RL training with VeRL and Harbor."
readme = "README.md"
requires-python = ">=3.12,<3.14"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [
{ name = "Lego-RL maintainers" }
]
keywords = ["agentic-rl", "verl", "harbor", "ppo", "grpo", "kubernetes"]
dependencies = [
"harbor>=0.3.1",
"numpy>=1.26,<3",
"omegaconf>=2.3",
"pandas>=2.2.2",
"pyarrow>=19.0.0",
]
[project.optional-dependencies]
train = [
"accelerate",
"codetiming",
"compressed-tensors==0.18.0",
"datasets",
"dill",
"hydra-core",
"peft",
"pybind11",
"pylatexenc",
"ray[default]>=2.41.0",
"torch==2.10.0",
"torchaudio==2.10.0",
"torchdata",
"torchvision==0.25.0",
"tensordict>=0.8.0,<=0.10.0,!=0.9.0",
"transformers==5.4.0",
"vllm==0.19.0",
"verl",
# Hard requirement of the default modeling backend: verl's
# workers/engine/veomni/transformer_impl.py imports veomni at module load and
# MODELING_BACKEND defaults to veomni. Its stale `datasets<=2.21.0` pin is lifted by
# the datasets override below -- installing this extra without that override in
# effect will fail to resolve. See overrides.txt.
"veomni==0.1.11",
"blobfile>=3.0.0",
"timm",
"wandb",
"packaging>=20.0",
"tensorboard",
]
agent = [
"openhands-ai",
"openhands-sdk",
"openhands-tools",
]
cuda12x = [
"cupy-cuda12x",
]
dev = [
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"ruff>=0.15.4",
]
[tool.uv]
# Lifts stale upstream metadata so `[train]` resolves. Keep these exact pins in
# sync with requirements.txt and overrides.txt.
#
# Caveat: uv only picks this up when it discovers this pyproject.toml as its config
# file, i.e. when the working directory is the repo root. scripts/setup_env.sh does
# not rely on that -- it exports UV_OVERRIDE=<repo>/overrides.txt so the override
# applies no matter where the script is invoked from. This block is here so that a
# plain `uv sync` / `uv pip install -e .[train]` run from the repo root also works.
override-dependencies = [
"datasets==4.8.4",
"transformers==5.4.0",
"compressed-tensors==0.18.0",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"verl_patch" = ["config/*.yaml"]
"harbor_patch" = ["**/*.j2"]