-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathpyproject.toml
More file actions
98 lines (88 loc) · 2.24 KB
/
pyproject.toml
File metadata and controls
98 lines (88 loc) · 2.24 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
# ---- 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
"torchdata>=0.8.0",
"torchtitan",
# vLLM
# TODO: pin specific vllm version
#"vllm==0.10.0",
# Hugging Face integrations
"datasets>=2.21.0",
"tokenizers",
# Miscellaneous
"omegaconf",
"wandb",
"hf_transfer",
]
dynamic = ["version"]
[project.urls]
GitHub = "https://github.com/pytorch-labs/forge"
Documentation = "https://github.com/pytorch-labs/forge/tree/main/docs"
Issues = "https://github.com/pytorch-labs/forge/issues"
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-timeout",
"tensorboard",
"expecttest",
"tomli>=1.1.0",
"anyio",
"pytest-asyncio",
"multiprocess",
]
oss = [
"torch",
"torchmonarch-nightly==2025.8.1",
"torchstore",
]
# ---- 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
# TODO: get auto backend to work
[[tool.uv.index]]
name = "pytorch-nightly-cu129"
url = "https://download.pytorch.org/whl/nightly/cu129"
#explicit = true
# vllm
# [[tool.uv.index]]
# name = "vllm-nightly"
# url = "https://wheels.vllm.ai/nightly"
# explicit = true
[tool.uv.sources]
torchtitan = { index = "pytorch-nightly-cu129" }
torch = { index = "pytorch-nightly-cu129" }
torchstore = { git = "ssh://git@github.com/meta-pytorch/torchstore.git" }
#vllm = { index = "vllm-nightly" }
[tool.uv]
# TODO: revert to stricter default uv strategy
index-strategy = "unsafe-best-match"
prerelease = "allow"
# TODO: add more backends
environments = [
"sys_platform == 'linux'",
]
# override-dependencies = ["torch>2.7.1", "torchaudio>=2.7.1", "torchvision>=0.22.0"]