Skip to content

Commit 7211167

Browse files
committed
Move to pyproject.toml from pixi.toml.
1 parent 5fc122f commit 7211167

File tree

2 files changed

+138
-112
lines changed

2 files changed

+138
-112
lines changed

pixi.toml

Lines changed: 0 additions & 111 deletions
This file was deleted.

pyproject.toml

Lines changed: 138 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,72 @@
11
[project]
2-
requires-python = ">=3.10"
2+
name = "OneTrainer"
3+
requires-python = ">=3.10,<3.14"
4+
version = "0.1.0"
5+
6+
dependencies = [
7+
"numpy==2.2.6",
8+
"opencv-python==4.11.0.86",
9+
"pillow==11.3.0",
10+
"imagesize==1.4.1",
11+
"tqdm==4.67.1",
12+
"pyyaml==6.0.2",
13+
"huggingface-hub==0.34.4",
14+
"scipy==1.15.3",
15+
"matplotlib==3.10.3",
16+
"av==14.4.0",
17+
"yt-dlp",
18+
"scenedetect==0.6.6",
19+
"accelerate==1.7.0",
20+
"safetensors==0.5.3",
21+
"tensorboard==2.19.0",
22+
"pytorch-lightning==2.5.1.post0",
23+
"diffusers @ git+https://github.com/huggingface/diffusers.git@256e0106749363fce06c28000698edeaf56a874d",
24+
"gguf==0.17.1",
25+
"transformers==4.56.2",
26+
"sentencepiece==0.2.1",
27+
"omegaconf==2.3.0",
28+
"invisible-watermark==0.2.0",
29+
"pooch==1.8.2",
30+
"open-clip-torch==2.32.0",
31+
"mgds @ git+https://github.com/Nerogar/mgds.git@385578f8c9e7861bd98c85d8855a23cb6b48661d",
32+
"dadaptation==3.2",
33+
"lion-pytorch==0.2.3",
34+
"prodigyopt==1.1.2",
35+
"schedulefree==1.4.1",
36+
"pytorch-optimizer==3.6.0",
37+
"prodigy-plus-schedule-free==2.0.1",
38+
"adv-optm==1.4.1",
39+
"muon-optimizer @ git+https://github.com/KellerJordan/Muon.git@f90a42b28e00b8d9d2d05865fe90d9f39abcbcbd",
40+
"scalene==2.0.1",
41+
"customtkinter==5.2.2",
42+
"runpod==1.7.10",
43+
"fabric==3.2.2",
44+
"psutil==7.0.0",
45+
"requests==2.32.5",
46+
"deepdiff==8.6.1",
47+
]
48+
49+
[project.optional-dependencies]
50+
cpu = [
51+
"torch==2.8.0",
52+
"torchvision==0.23.0",
53+
"onnxruntime==1.22.1",
54+
]
55+
56+
cuda = [
57+
"torch==2.8.0",
58+
"torchvision==0.23.0",
59+
"onnxruntime-gpu==1.22.0",
60+
"bitsandbytes==0.46.0",
61+
"nvidia-nccl-cu12; sys_platform == 'linux' and platform_machine == 'amd64'",
62+
"triton-windows; sys_platform == 'win32' and platform_machine == 'amd64'",
63+
]
64+
65+
rocm = [
66+
"torch==2.7.1",
67+
"torchvision==0.22.1",
68+
"onnxruntime==1.22.1",
69+
]
370

471
[tool.ruff]
572
extend-exclude = [
@@ -39,3 +106,73 @@ section-order = [
39106
"third-party",
40107
"local-folder",
41108
]
109+
110+
[tool.uv]
111+
conflicts = [
112+
[
113+
{ extra = "cpu" },
114+
{ extra = "cuda" },
115+
{ extra = "rocm" },
116+
],
117+
]
118+
119+
[tool.uv.sources]
120+
torch = [
121+
{ index = "torch-cpu", extra = "cpu" },
122+
{ index = "torch-cuda", extra = "cuda" },
123+
{ index = "torch-rocm", extra = "rocm" },
124+
]
125+
126+
[[tool.uv.index]]
127+
name = "torch-cpu"
128+
url = "https://download.pytorch.org/whl/cpu"
129+
130+
[[tool.uv.index]]
131+
name = "torch-cuda"
132+
url = "https://download.pytorch.org/whl/cu128"
133+
134+
[[tool.uv.index]]
135+
name = "torch-rocm"
136+
url = "https://download.pytorch.org/whl/rocm6.3"
137+
138+
[tool.pixi.workspace]
139+
channels = ["conda-forge"]
140+
platforms = ["osx-arm64", "linux-64", "win-64"]
141+
142+
[tool.pixi.tasks]
143+
train = { cmd = "python scripts/train.py", cwd = "." }
144+
ui = { cmd = "python scripts/train_ui.py", cwd = "." }
145+
146+
[tool.pixi.feature.cpu.pypi-dependencies]
147+
torch = "==2.8.0"
148+
torchvision = "==0.23.0"
149+
onnxruntime = "==1.22.1"
150+
151+
[tool.pixi.feature.cuda]
152+
platforms = ["linux-64", "win-64"]
153+
154+
[tool.pixi.feature.cuda.system-requirements]
155+
cuda = "12.8"
156+
157+
[tool.pixi.feature.rocm]
158+
platforms = ["linux-64"]
159+
160+
[tool.pixi.dependencies]
161+
python = "3.13.*"
162+
163+
[tool.pixi.target.linux-64.dependencies]
164+
tk = "*"
165+
libgl = "*"
166+
167+
[tool.pixi.system-requirements]
168+
linux = "5.17"
169+
libc = { family="glibc", version="2.28" }
170+
macos = "15.0"
171+
172+
[tool.pixi.pypi-options]
173+
index-strategy = "unsafe-best-match"
174+
175+
[tool.pixi.environments]
176+
cpu = { features = ["cpu"] }
177+
cuda = { features = ["cuda"] }
178+
rocm = { features = ["rocm"] }

0 commit comments

Comments
 (0)