-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (41 loc) · 1.13 KB
/
Copy pathsetup.py
File metadata and controls
42 lines (41 loc) · 1.13 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
from setuptools import setup, find_packages
setup(
name="triattention",
version="0.2.0",
description="TriAttention: efficient KV cache compression via tri-directional sparse attention",
author="Weian Mao, Xi Lin, Wei Huang, Yuxin Xie, Tianfu Fu, Bohan Zhuang, Song Han, Yukang Chen",
url="https://github.com/WeianMao/triattention",
packages=find_packages(),
python_requires=">=3.10",
install_requires=[
"transformers>=4.48.1",
"datasets>=4.0",
"huggingface-hub>=0.35",
"accelerate",
"numpy>=1.26",
"scipy",
"einops",
"sentencepiece",
"pyyaml>=6.0",
"tqdm",
"matplotlib",
"regex",
"torch",
"triton",
],
extras_require={
"eval": [
"pebble>=5.0",
"sympy>=1.13",
"latex2sympy2",
"word2number",
"antlr4-python3-runtime==4.7.2",
],
"flash": ["flash-attn>=2.5.8"],
},
entry_points={
"vllm.general_plugins": [
"triattention = triattention.vllm.plugin:register_triattention_backend",
],
},
)