-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (32 loc) · 904 Bytes
/
setup.py
File metadata and controls
37 lines (32 loc) · 904 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
32
33
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='vortex_torch',
version='0.2.0',
packages=find_packages(),
python_requires=">=3.10",
install_requires=[
"torch>=2.7",
"lighteval[math]==0.12.2"
],
ext_modules=[
CUDAExtension(
name='vortex_torch_C',
sources=[
'csrc/register.cc',
'csrc/utils_sglang.cu',
'csrc/topk.cu'
],
include_dirs=['csrc'],
extra_compile_args={
'cxx': ['-O3'],
'nvcc': [
'-O3',
'-gencode=arch=compute_89,code=sm_89',
'-gencode=arch=compute_90,code=sm_90'
],
},
),
],
cmdclass={'build_ext': BuildExtension},
)