forked from pytorch/rl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (143 loc) · 3.65 KB
/
pyproject.toml
File metadata and controls
152 lines (143 loc) · 3.65 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
[build-system]
requires = ["setuptools", "wheel", "torch", "ninja", "numpy", "pybind11[global]", "cmake"]
build-backend = "setuptools.build_meta"
[project]
name = "torchrl" # This will be overridden by setup.py for nightly builds
dynamic = ["version"]
description = "A modular, primitive-first, python-first PyTorch library for Reinforcement Learning"
readme = "README.md"
authors = [
]
maintainers = [
]
keywords = ["reinforcement-learning", "pytorch", "rl", "machine-learning"]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.9"
dependencies = [
"torch>=2.1.0",
"pyvers",
"numpy",
"packaging",
"cloudpickle",
"tensordict>=0.10.0,<0.11.0",
]
[project.optional-dependencies]
atari = ["gymnasium[atari]"]
dm_control = ["dm_control"]
replay_buffer = ["torch>=2.7.0"]
gym_continuous = ["gymnasium<1.0", "mujoco"]
rendering = ["moviepy<2.0.0"]
tests = [
"pytest",
"pyyaml",
"pytest-instafail",
"scipy",
"pytest-mock",
"pytest-cov",
"pytest-asyncio",
"pytest-benchmark",
"pytest-rerunfailures",
"pytest-error-for-skips",
"pytest-timeout",
]
utils = [
"tensorboard",
"wandb",
"tqdm",
"hydra-core>=1.1",
"hydra-submitit-launcher",
]
checkpointing = ["torchsnapshot"]
offline-data = [
"huggingface_hub",
"minari",
"requests",
"tqdm",
"torchvision",
"scikit-learn",
"pandas",
"h5py",
"pillow",
]
marl = ["vmas>=1.2.10", "pettingzoo>=1.24.1", "dm-meltingpot"]
open_spiel = ["open_spiel>=1.5"]
brax = ["jax>=0.7.0", "brax"]
llm = [
"transformers",
"vllm",
"playwright",
"datasets",
"langdetect",
"nltk",
"immutabledict",
"accelerate",
"sentencepiece",
"protobuf",
"einops",
"safetensors",
]
grpo = [
# Core dependencies for GRPO training
"datasets",
"peft",
"wandb",
"vllm",
"transformers",
"accelerate",
"ray",
"tqdm",
# Optional but recommended dependencies
"flash-attn",
"bitsandbytes",
"xformers",
# LLM-related dependencies that may be needed
"nltk",
"langdetect",
"immutabledict",
]
dev = [
"pre-commit",
"autoflake",
]
[project.urls]
Homepage = "https://github.com/pytorch/rl"
Documentation = "https://pytorch.org/rl"
Repository = "https://github.com/pytorch/rl"
"Bug Tracker" = "https://github.com/pytorch/rl/issues"
twitter = "https://x.com/torchrl1"
linkedin = "https://www.linkedin.com/company/torchrl"
discord = "https://discord.gg/cZs26Qq3Dd"
benchmark = "https://docs.pytorch.org/rl/dev/bench/"
[tool.setuptools.dynamic]
version = {file = "version.txt"}
[tool.setuptools.packages.find]
exclude = [
"test*",
"tutorials*",
"docs*",
"examples*",
"knowledge_base*",
"packaging*",
]
[tool.setuptools.package-data]
"*" = ["*.txt", "*.md"]
"torchrl" = ["csrc/*.h"]
[tool.usort]
first_party_detection = false
[project.entry-points."vllm.general_plugins"]
# Ensure FP32 overrides are registered in all vLLM processes (main, workers, and
# the registry subprocess) before resolving model classes.
fp32_overrides = "torchrl.modules.llm.backends.vllm.vllm_plugin:register_fp32_overrides"