forked from QwenLM/FlashQLA
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (27 loc) · 826 Bytes
/
setup.py
File metadata and controls
31 lines (27 loc) · 826 Bytes
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
# Copyright (c) 2026 The Qwen team, Alibaba Group.
# Licensed under The MIT License [see LICENSE for details]
import os
import subprocess
from setuptools import setup, find_packages
this_dir = os.path.dirname(os.path.abspath(__file__))
rev = os.getenv("QLA_VERSION_SUFFIX", "")
if not rev:
try:
cmd = ["git", "rev-parse", "--short", "HEAD"]
rev = "+" + subprocess.check_output(cmd, cwd=this_dir).decode("ascii").rstrip()
except Exception:
rev = ""
setup(
name="flash_qla",
version="0.1.0" + rev,
description="FlashQLA: Fused TileLang kernels for Linear Attention",
packages=find_packages(),
license="MIT",
python_requires=">=3.10",
install_requires=[
"torch>=2.8",
"tilelang==0.1.8",
"apache-tvm-ffi==0.1.9",
],
zip_safe=False,
)