-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (94 loc) · 2.42 KB
/
pyproject.toml
File metadata and controls
105 lines (94 loc) · 2.42 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
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
# ---- All project specifications ---- #
[project]
name = "forge"
description = "A PyTorch native platform for post-training generative AI models"
readme = "README.md"
requires-python = ">=3.10, <3.13"
license = {file = "LICENSE"}
authors = [
{ name = "PyTorch Team", email = "packages@pytorch.org" },
]
keywords = ["pytorch", "training", "llm"]
dependencies = [
# PyTorch
"torch==2.9.0",
"torchdata>=0.8.0",
"torchtitan==0.2.0",
"torchmonarch==0.2.0",
# Issue 656: switch to ping torchstore nightly
"torchstore",
"vllm>=0.13.0,<0.14.0",
# Hugging Face integrations
"datasets>=2.21.0",
"tokenizers",
# Miscellaneous
"omegaconf",
"wandb",
"hf_transfer",
"six",
"setuptools<80",
]
dynamic = ["version"]
[project.urls]
GitHub = "https://github.com/meta-pytorch/torchforge"
Documentation = "https://meta-pytorch.org/torchforge"
Issues = "https://github.com/meta-pytorch/torchforge/issues"
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-timeout",
"tensorboard",
"expecttest",
"tomli>=1.1.0",
"anyio",
"pytest-asyncio",
"multiprocess",
]
docs = [
"sphinx==7.2.6",
"pytorch-sphinx-theme2==0.1.0",
"docutils>=0.18.1,<0.21",
"sphinx-design==0.6.1",
"sphinxcontrib-mermaid==1.0.0",
"sphinx-gallery==0.19.0",
"matplotlib",
"myst-parser",
"sphinx-sitemap==2.7.1",
"sphinx-autodoc-typehints==1.25.3",
]
# ---- Explicit project build information ---- #
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
include = ["forge*"]
[tool.pytest.ini_options]
addopts = ["--showlocals"] # show local variables in tracebacks
pythonpath = "."
[tool.uv.workspace]
members = [
"forge",
]
# pytorch
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
[tool.uv.sources]
torch = { index = "pytorch-cu128" }
# Issue 656: switch to ping torchstore nightly
torchstore = { git = "https://github.com/meta-pytorch/torchstore.git", branch = "no-monarch-2026.01.05" }
[tool.uv]
# TODO: revert to stricter default uv strategy
index-strategy = "unsafe-best-match"
prerelease = "allow"
# TODO: add more backends
environments = [
"sys_platform == 'linux'",
]
[tool.black]
target-version = ["py310"] # match the minium supported python version
[tool.usort]
first_party_detection = false