-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
171 lines (150 loc) · 3.69 KB
/
pyproject.toml
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "oat-llm"
dynamic = ["version"]
description = 'Online AlignmenT (OAT) for LLMs.'
readme = "README.md"
requires-python = ">=3.8, <3.11"
keywords = ["rlhf", "llm", "ai-alignment", "rl", "bandit", "ai", "sample-efficiency"]
authors = [
{ name = "Zichen Liu", email = "liuzc@sea.com" },
{ name = "Changyu Chen", email = "chency@sea.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"accelerate",
"bitsandbytes",
"datasets",
"deepspeed==0.15.0",
"dm-launchpad[tensorflow]",
"einops",
"flash-attn==2.6.3",
"fire",
"httpx",
"jsonlines",
"llm-blender==0.0.2",
"loralib",
"ml_collections",
"mosec",
"msgspec",
"optimum",
"packaging",
"peft",
"protobuf==3.20.0",
"pyarrow>=0.6.1,<12",
"python-Levenshtein==0.25.1",
"scipy",
"torchmetrics",
"tqdm",
"tyro",
"transformers==4.45.2",
"transformers_stream_generator",
"vllm==0.6.2",
"wandb",
"wheel",
]
[project.urls]
Documentation = "https://github.com/sail-sg/oat#readme"
Issues = "https://github.com/sail-sg/oat/issues"
Source = "https://github.com/sail-sg/oat"
[project.license]
text = "Apache-2.0"
[tool.hatch.version]
path = "oat/__about__.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/examples",
"/k8s",
]
[tool.hatch.build.targets.wheel]
packages = ["oat"]
[tool.hatch.envs.types]
extra-dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:oat tests}"
[tool.coverage.run]
source_pkgs = ["oat", "tests"]
branch = true
parallel = true
omit = [
"oat/__about__.py",
]
[tool.coverage.paths]
oat = ["oat", "*/oat/oat"]
tests = ["tests", "*/oat/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.pylint.master]
load-plugins = "pylint.extensions.docparams,pylint.extensions.docstyle,pylint.extensions.no_self_use"
default-docstring-type = "google"
ignore-paths = ["rosmo/__about__.py"]
[tool.pylint.format]
max-line-length = 88
indent-after-paren = 4
indent-string = " "
[tool.pylint.imports]
known-third-party = "wandb"
[tool.pylint.reports]
output-format = "colorized"
reports = "no"
score = "yes"
max-args = 7
[tool.pylint.messages_control]
disable = ["W0201", "W0108", "W0212", "W1514", "R0902", "R0903", "R0913", "R0914", "R0915", "R1719",
"R1732", "R0801", "C0103", "C3001", "C0116", "W0106", "R0912", "R1702", "W0640", "W1203",
"R0402"]
[tool.yapf]
based_on_style = "yapf"
spaces_before_comment = 4
dedent_closing_brackets = true
column_limit = 88
continuation_indent_width = 4
[tool.isort]
profile = "black"
multi_line_output = 3
indent = 4
line_length = 88
known_third_party = "wandb"
[tool.mypy]
files = "rosmo/**/*.py"
allow_redefinition = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
pretty = true
show_error_codes = true
show_error_context = true
show_traceback = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
[tool.pydocstyle]
ignore = ["D100", "D102", "D104", "D105", "D107", "D203", "D213", "D401", "D402"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
"ignore::FutureWarning",
]