-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (81 loc) · 2.08 KB
/
Copy pathpyproject.toml
File metadata and controls
89 lines (81 loc) · 2.08 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
[project]
name = "diffusers-recipes"
version = "0.1.0"
description = "Recipes for using diffusers with different optimizations."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"accelerate>=1.14.0",
"diffusers>=0.41.0.dev0",
"diffusers-mm>=0.4.0",
"peft>=0.20.0",
"torch>=2.13.0",
"torchaudio>=2.11.0",
"torchcodec>=0.16.0",
"torchvision>=0.28.0",
"transformers>=5.16.1",
]
[project.optional-dependencies]
benchmark = ["nvidia-ml-py>=13.610.43"]
quantization = [
"bitsandbytes>=0.50.2",
"torchao>=0.18.0",
"gguf>=0.19.0",
"sdnq>=0.2.5",
]
attentions = ["kernels>=0.16.1"]
video = ["av>=18.1.0"]
all = [
"nvidia-ml-py>=13.610.43",
"bitsandbytes>=0.50.2",
"torchao>=0.18.0",
"gguf>=0.19.0",
"sdnq>=0.2.5",
"kernels>=0.16.1",
"av>=18.1.0",
]
[tool.ruff]
line-length = 119
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"S", # flake8-bandit
"BLE", # flake8-blind-except
"EXE", # flake8-executable
"PIE", # flake8-pie
"SIM", # flake8-simplify
"PERF", # perflint
"TRY", # tryceratops
"RUF", # ruff-specific
]
ignore = [
"E501", # line length is handled by the formatter; recipe prompts are long single strings
"RUF001", # prompts intentionally contain typographic quotes/dashes
"RUF003",
"TRY003", # long messages inline are fine for a flat script
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cu130", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
torchvision = [
{ index = "pytorch-cu130", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
]
diffusers = { git = "https://github.com/huggingface/diffusers" }