-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (130 loc) · 2.73 KB
/
pyproject.toml
File metadata and controls
146 lines (130 loc) · 2.73 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
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "rllm"
version = "0.1.0"
description = "Reinforcement Learning for Language Agents"
authors = [
{name = "rLLM Team"}
]
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
license = {file = "LICENSE"}
dependencies = [
# Core ML/AI packages
"torch>=2.7",
"transformers",
"accelerate",
"flash-attn>=2.8.0.post2",
"sentence-transformers",
"torchmetrics",
# Training and inference
"deepspeed",
"vllm>=0.8.3",
"sgl-kernel>=0.2.0",
"sglang>=0.4.8.post1",
"sglang-router",
"peft",
"torchao",
# Data processing
"datasets",
"polars",
"dm-tree",
# Cloud and infrastructure
"google-cloud-aiplatform",
"vertexai",
"kubernetes",
"ray",
# Web and automation
"gradio",
"selenium",
"browsergym",
"firecrawl",
# Math and science
"latex2sympy2",
"pylatexenc",
"nltk",
"scipy",
"scikit-learn",
# Code evaluation
"swebench",
"e2b_code_interpreter",
# Utilities
"fire",
"gdown",
"tabulate",
"sortedcontainers",
"PyMuPDF",
"together",
"wandb",
"pybind11",
"gym",
# Development and testing
"pytest",
"pre-commit",
"ruff",
"mypy",
# Documentation
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocstrings[python]>=0.24.0",
"mkdocs-autorefs>=0.5.0",
"pymdown-extensions>=10.0.0",
]
[tool.ruff]
line-length = 5000 # TODO: Reduce this to a more reasonable value
[tool.ruff.lint]
isort = {known-first-party = ["rllm"]}
# c.f. https://github.com/vllm-project/vllm/blob/ce8d6b75fc0586045df75ee1568a5b5f9957251b/pyproject.toml
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# isort
"I",
"G",
]
ignore = [
# star imports
"F405", "F403",
# lambda expression assignment
"E731",
# Loop control variable not used within loop body
"B007",
# f-string format
"UP032",
# `.log()` statement uses f-string
"G004",
# equality check using x == True
"E712",
]
[tool.ruff.lint.per-file-ignores]
"rllm/rewards/code_utils/**" = ["ALL"]
[tool.setuptools.packages.find]
where = ["."]
include = ["rllm", "rllm.*"]
[tool.mypy]
plugins = ["pydantic.mypy"]
ignore_missing_imports = true
check_untyped_defs = true
follow_imports = "silent"
exclude = [
"verl/.*",
"rllm/rewards/code_utils/.*",
"rllm/rewards/math_utils/.*",
"examples/.*",
"scripts/.*",
"tests/.*",
"docs/.*",
]