-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (56 loc) · 1.23 KB
/
pyproject.toml
File metadata and controls
63 lines (56 loc) · 1.23 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "alignrl"
version = "0.4.0"
description = "LLM post-training playbook: SFT, GRPO, DPO, eval, and inference"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [{ name = "Samanvya Tripathi" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
"pydantic>=2.0",
"pyyaml>=6.0",
"rich>=13.0",
]
[project.optional-dependencies]
train = [
"torch>=2.1",
"transformers>=4.45",
"trl>=0.12",
"peft>=0.13",
"datasets>=3.0",
"bitsandbytes>=0.44",
"accelerate>=1.0",
"wandb",
]
unsloth = ["unsloth"]
eval = ["lm-eval>=0.4"]
serve = ["vllm>=0.6"]
mlx = ["mlx-lm>=0.18"]
gradio = ["gradio>=4.0"]
dev = [
"pytest>=8.0",
"ruff>=0.5",
"mypy>=1.10",
]
all = ["alignrl[train,eval,serve,gradio,dev]"]
[project.scripts]
alignrl = "alignrl.cli:main"
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "B", "SIM", "TCH"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
[tool.pytest.ini_options]
testpaths = ["tests"]