-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (110 loc) · 2.73 KB
/
pyproject.toml
File metadata and controls
127 lines (110 loc) · 2.73 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "psa-triton"
version = "0.1.0"
description = "Training-free inference acceleration for video generation models using Pyramid Sparse Attention"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache-2.0"}
authors = [
{name = "PSA Team", email = "your.email@example.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
# Core dependencies
"torch>=2.6.0",
"triton>=3.5.1",
"transformers==4.56.0",
"diffusers==0.35.2",
# Data manipulation
"numpy>=2.3.5",
"einops>=0.6.0",
"pyyaml>=6.0.3",
# Imaging and video
"Pillow>=12.0.0",
"opencv-python>=4.8.0",
"av>=16.0.1",
# HuggingFace ecosystem
"huggingface-hub>=0.36.0",
"hf-transfer>=0.1.4",
"safetensors>=0.7.0",
"accelerate>=1.12.0",
# Utilities
"filelock>=3.20.0",
"requests>=2.32.5",
"regex>=2025.11.3",
"tqdm>=4.67.1",
"ftfy>=6.1.0",
# Deep learning utilities
"timm>=0.9.0",
"torchvision>=0.24.1",
# Qwen-VL support
"qwen-vl-utils>=0.0.14",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"black>=22.0.0",
"flake8>=4.0.0",
"mypy>=1.0.0",
"ruff",
]
all = [
# Additional packages from fastvideo_env
"kornia>=0.7.0",
"lpips>=0.1.4",
"pytorch-lightning>=2.0.0",
"torchmetrics>=1.0.0",
"deepspeed>=0.12.0",
"peft>=0.7.0",
]
[project.urls]
Homepage = "https://github.com/yourusername/PyramidSparseAttention"
Documentation = "https://github.com/yourusername/PyramidSparseAttention"
Repository = "https://github.com/yourusername/PyramidSparseAttention"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"*" = ["configs/*.yaml"]
[tool.black]
line-length = 120
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=psa_triton --cov-report=term-missing"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false