forked from RLinf/RLinf
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (129 loc) · 3.17 KB
/
pyproject.toml
File metadata and controls
140 lines (129 loc) · 3.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
[project]
name = "RLinf"
version = "0.1.0"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.10,<=3.11.14"
keywords = [
"reinforcement-learning",
"embodied-intelligence",
"large-language-models",
]
classifiers = [
# 2 - Pre-Alpha
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 2 - Pre-Alpha",
"Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.4",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
]
dependencies = [
# Core System
"accelerate",
"ray[default]>=2.47.0",
"torch==2.6.0",
# Data processing
"pylatexenc",
"datasets",
"latex2sympy2 @ git+https://github.com/RLinf/latex2sympy2.git",
"sentencepiece",
"torchdata",
"wandb",
"word2number",
"regex",
"scipy",
# Utilities
"hydra-core==1.4.0.dev1",
"einops",
"nvitop",
"pybind11",
"torch-memory-saver",
"setuptools>=69.5.1,<75.9",
"ninja",
"pytest",
"gsutil",
"ruff",
"pre-commit",
"liger_kernel",
"pip",
"icmplib",
"pyrealsense2",
# Logging
"swanlab",
"tensorboard",
]
[project.optional-dependencies]
sglang-vllm = [
"transformers==4.51.1",
"sglang[all]==0.4.6.post5",
"vllm==0.8.5",
# uvloop is not compatible with simulators, put it here
"uvloop==0.21.0",
]
embodied = [
"transformers==4.40.1",
"draccus",
"rich",
"tensorflow_graphics",
"peft==0.11.1",
"timm==0.9.10",
"sapien==3.0.1;platform_system=='Linux'",
"mani_skill @ git+https://github.com/haosulab/ManiSkill.git",
"tensordict",
"libero @ git+https://github.com/RLinf/LIBERO.git",
"imageio[ffmpeg]",
"robosuite==1.4.1",
"bddl",
"easydict",
"cloudpickle",
"gym",
"av",
]
[tool.uv]
prerelease = "allow"
conflicts = [
[
{ extra = "sglang-vllm" },
{ extra = "embodied" },
],
]
override-dependencies = [
"torch==2.6.0",
"torchvision==0.21.0",
"torchaudio==2.6.0",
"xgrammar==0.1.19",
"uvloop==0.21.0",
"tensorflow-addons==0.23.0",
]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
isort = {known-first-party = ["rlinf"]}
select = ["C", "E", "F", "I", "W", "CPY001", "RUF013", "UP006", "PERF102", "PLC1802", "PLC0208", "D", "RUF002", "DOC102", "DOC202", "DOC403", "DOC502"]
ignore = [
"C901", # "complex-structure"
"E501", # "line-too-long"
"E741", # "ambiguous-variable-name"
"D100", # "Missing docstring in public module"
"D104", # "Missing docstring in public package"
"D203", # "incorrect-blank-line-before-class", conflict with D211,
"D213", # "multi-line-summary-second-line", conflict with D212
]
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
# Only enable docstring check for the scheduler module for now.
"!rlinf/scheduler/**.py" = ["D", "RUF002"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"