forked from inclusionAI/AReaL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (131 loc) · 2.96 KB
/
pyproject.toml
File metadata and controls
150 lines (131 loc) · 2.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
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
[build-system]
requires = ["setuptools>=61.0", "build>=1.2.1"]
build-backend = "setuptools.build_meta"
[project]
name = "realhf"
description = "ReaL: Efficient RLHF Training of Large Language Models with Parameter Reallocation"
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["version"]
keywords = [
"distributed-systems",
"reinforcement-learning-from-human-feedback",
"large-language-models",
"llm-training",
]
classifiers = [
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 2 - Pre-Alpha",
"Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.2",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
dependencies = [
# Core ML/AI libraries
"torch>2.0.0",
"huggingface_hub",
"datasets",
"accelerate",
"transformers==4.51.1",
# Scientific computing
"numpy<2.0.0",
"scipy",
"pandas",
"matplotlib",
"seaborn",
"h5py",
# Utilities and data processing
"nltk",
"sentencepiece",
"einops",
"tqdm",
"rich",
"orjson>=3.10.16",
"pydantic",
"PyYAML",
"hydra-core==1.4.0.dev1",
"packaging",
"tabulate",
# Monitoring and logging
"wandb",
"tensorboardx",
"colorama",
"colorlog",
"psutil",
"pynvml",
"swanlab[dashboard]",
# Performance and compression
"ninja",
"numba",
"blosc",
"pybind11>=2.10.0",
# Networking and async
"networkx==3.3",
"aiofiles",
"aiohttp>=3.11.10",
"httpx>=0.28.1",
"pyzmq",
"paramiko",
"etcd3",
"protobuf<3.21",
# Distributed computing
"ray",
"redis",
# Web frameworks
"fastapi>=0.115.12",
"uvicorn>=0.34.2",
"uvloop>=0.21.0",
"flask",
# Build and packaging tools
"build>=1.2.1",
"wheel>=0.43.0",
"setuptools>=62.3.0,<75.9",
"cookiecutter>2.1.1",
# System utilities
"distro-info>=1.0",
"python-debian>=0.1.49",
"func_timeout",
"regex",
"python_dateutil",
"word2number",
"Pebble",
"timeout-decorator",
"prettytable",
# Development tools (consider moving to optional dependencies)
"pytest",
"ipython",
"jupyter-book",
"sphinx",
"sphinx-nefertiti",
"black==25.1.0",
"isort==5.13.2",
"clang-format==19.1.7",
]
[project.optional-dependencies]
dev = [
"pytest",
"black==25.1.0",
"isort==5.13.2",
"clang-format==19.1.7",
]
docs = [
"sphinx",
"sphinx-nefertiti",
"jupyter-book",
]
[tool.setuptools.dynamic]
version = {attr = "realhf.__version__"}
[tool.setuptools.packages.find]
where = ["."] # ["."] by default
# include = ["csrc/*", "realhf/*"] # ["*"] by default
# exclude = ["tests", "docker"] # empty by default
# namespaces = false # true by default
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
pythonpath = ["."]
[tool.black]
line-length = 88