Commit afd43f51 authored by Rick Ho's avatar Rick Ho
Browse files

update setup.py and requirements.txt

parent 709ac745
...@@ -2,6 +2,7 @@ import setuptools ...@@ -2,6 +2,7 @@ import setuptools
from torch.utils.cpp_extension import BuildExtension, CUDAExtension from torch.utils.cpp_extension import BuildExtension, CUDAExtension
import os import os
CUDA_HELPER = os.environ.get('CUDA_HELPER', '/usr/local/cuda/samples/common/inc') CUDA_HELPER = os.environ.get('CUDA_HELPER', '/usr/local/cuda/samples/common/inc')
cxx_flags = [ cxx_flags = [
'-I{}'.format(CUDA_HELPER) '-I{}'.format(CUDA_HELPER)
...@@ -9,9 +10,16 @@ cxx_flags = [ ...@@ -9,9 +10,16 @@ cxx_flags = [
if os.environ.get('USE_NCCL', '0') == '1': if os.environ.get('USE_NCCL', '0') == '1':
cxx_flags.append('-DMOE_USE_NCCL') cxx_flags.append('-DMOE_USE_NCCL')
if __name__ == '__main__': if __name__ == '__main__':
setuptools.setup( setuptools.setup(
name='fmoe', name='fmoe',
version='0.1.0',
description='An efficient Mixture-of-Experts impl. for PyTorch',
author='Jiaao He, Jiezhong Qiu and Aohan Zeng',
author_email='hja20@mails.tsinghua.edu.cn',
license='Apache-2',
url='https://github.com/laekov/fastmoe',
packages=['fmoe'], packages=['fmoe'],
ext_modules=[ ext_modules=[
CUDAExtension( CUDAExtension(
...@@ -29,7 +37,6 @@ if __name__ == '__main__': ...@@ -29,7 +37,6 @@ if __name__ == '__main__':
} }
) )
], ],
version='0.0.2',
cmdclass={ cmdclass={
'build_ext': BuildExtension 'build_ext': BuildExtension
}) })
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment