Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
73 lines (66 loc) · 1.96 KB
/
Copy pathsetup.py
File metadata and controls
73 lines (66 loc) · 1.96 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
"""Fallback setup script for environments that do not fully use pyproject.toml."""
import os
from pathlib import Path
from setuptools import find_packages, setup
root = Path(__file__).parent
with open(os.path.join(root, "verl/version/version")) as f:
__version__ = f.read().strip()
install_requires = [
"accelerate",
"cachetools",
"codetiming",
"datasets",
"dill",
"fastapi",
"hydra-core",
"numpy<2.0.0",
"pandas",
"peft",
"pyarrow>=19.0.0",
"pybind11",
"pylatexenc",
"PyYAML",
"ray[default]>=2.41.0",
"torchdata",
"tensordict>=0.8.0,<=0.10.0,!=0.9.0",
"transformers",
"TransferQueue==0.1.8",
"wandb",
"packaging>=20.0",
"tensorboard",
"uvicorn",
]
extras_require = {
"test": ["pytest", "pre-commit", "py-spy", "pytest-asyncio", "pytest-rerunfailures"],
"gpu": ["liger-kernel", "flash-attn"],
"math": ["math-verify"],
"maporl": ["trl>=0.11,<1.0"],
"vllm": ["tensordict>=0.8.0,<=0.10.0,!=0.9.0", "vllm>=0.8.5,<=0.12.0"],
"sglang": ["tensordict>=0.8.0,<=0.10.0,!=0.9.0", "sglang[srt,openai]==0.5.8", "torch==2.9.1"],
"mcore": ["mbridge"],
"trtllm": ["tensorrt-llm>=1.2.0rc6"],
}
setup(
name="trajweave",
version=__version__,
package_dir={"": "."},
packages=find_packages(where="."),
url="https://github.com/OpenDCAI/TrajWeave",
license="Apache-2.0",
license_files=["LICENSE", "Notice.txt", "licenses/*.txt"],
author="OpenDCAI",
description="TrajWeave: a Multi-Agent LLM RL framework built on the VERL training backend",
install_requires=install_requires,
extras_require=extras_require,
package_data={
"": ["version/*"],
"verl": [
"trainer/config/*.yaml",
"trainer/config/*/*.yaml",
"experimental/*/config/*.yaml",
],
},
include_package_data=True,
long_description=(root / "README.md").read_text(),
long_description_content_type="text/markdown",
)