Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (53 loc) · 1.55 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (53 loc) · 1.55 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mini-posttrain"
version = "0.1.0"
description = "A teaching-level post-training library: SFT + DPO in <1000 LoC, designed to be read in a Sunday afternoon."
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [{ name = "Mark" }]
keywords = ["llm", "post-training", "sft", "dpo", "lora", "rlhf"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
requires-python = ">=3.10"
dependencies = [
"torch>=2.1",
"transformers>=4.40",
"numpy",
]
[project.optional-dependencies]
peft = ["peft>=0.10"]
trl = ["trl>=0.10", "datasets>=2.20"]
wandb = ["wandb>=0.16"]
dev = [
"pytest>=8",
"ruff>=0.4",
"datasets>=2.20",
"trl>=0.10",
"peft>=0.10",
"wandb>=0.16",
]
[project.scripts]
mini-sft = "mini_posttrain.cli.train_sft:main"
mini-dpo = "mini_posttrain.cli.train_dpo:main"
mini-eval = "mini_posttrain.eval.eval_harness:main"
[tool.setuptools.packages.find]
include = ["mini_posttrain*"]
[tool.pytest.ini_options]
markers = [
"smoke: opt-in tests that download a tiny model and run end-to-end",
]
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py310"