Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (65 loc) · 1.62 KB
/
Copy pathpyproject.toml
File metadata and controls
80 lines (65 loc) · 1.62 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
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "dfactory"
version = "0.2.0.dev0"
description = "A modular training framework for discrete diffusion language models."
readme = "README.md"
requires-python = ">=3.11,<3.14"
license = "Apache-2.0"
license-files = ["LICENSE", "LEGAL.md"]
dependencies = [
"datasets>=2.16,<=2.21",
"huggingface-hub",
"numpy",
"PyYAML>=6",
"safetensors",
"torch==2.8.0",
"torchaudio==2.8.0",
"torchvision==0.23.0",
"tqdm",
"transformers[torch]==4.57.3",
"veomni[gpu]==0.1.4",
]
[project.optional-dependencies]
dev = [
"build",
"pytest>=6,<8",
"ruff>=0.7,<1",
]
docs = [
"myst-parser",
"sphinx",
"sphinx-rtd-theme",
]
[project.scripts]
dfactory = "dfactory.cli:main"
[project.entry-points."dfactory.recipes"]
[project.entry-points."dfactory.datasets"]
[project.entry-points."dfactory.models"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.uv]
environments = ["sys_platform == 'linux' and platform_machine == 'x86_64'"]
[tool.uv.sources]
torch = [{ index = "pytorch" }]
torchvision = [{ index = "pytorch" }]
torchaudio = [{ index = "pytorch" }]
[tool.uv.extra-build-dependencies]
flash-attn = [{ requirement = "torch", match-runtime = true }]
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[tool.pytest.ini_options]
addopts = "-ra"
pythonpath = ["src"]
testpaths = ["tests"]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.ruff.lint.per-file-ignores]
"src/dfactory/models/llada2/modeling.py" = ["E501"]