-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (50 loc) · 1.3 KB
/
pyproject.toml
File metadata and controls
59 lines (50 loc) · 1.3 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
[project]
name = "post-training"
version = "0.1.0"
description = "A modular post-training framework for LLMs (SFT, DPO)"
readme = "README.md"
requires-python = ">=3.12,<3.13"
# Minimal deps for job submission (scripts/submit.py).
# Training deps live in [project.optional-dependencies.trl].
dependencies = [
"omegaconf",
"jinja2",
"pyyaml",
"wandb",
"huggingface-hub",
"psutil",
]
[project.optional-dependencies]
trl = [
"torch==2.9.1+cu126",
"trl",
"deepspeed",
"transformers",
"datasets>4.5.0",
"accelerate",
"kernels",
"flash_attn",
"liger-kernel",
"tensorboard",
]
flash-attn-2 = ["flash-attn"]
dev = ["pre-commit", "pytest"]
[tool.uv]
extra-index-url = ["https://download.pytorch.org/whl/cu126"]
index-strategy = "unsafe-best-match"
environments = [
"sys_platform == 'linux' and platform_machine == 'x86_64'"
]
[tool.uv.sources]
flash-attn = { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.16/flash_attn-2.8.3%2Bcu126torch2.9-cp312-cp312-linux_x86_64.whl" }
[tool.black]
line-length = 100
target-version = ["py312"]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
ignore = ["E501", "E402"]
[tool.ruff.lint.isort]
known-first-party = ["post_training"]