Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastMoE
Commits
afd43f51
Commit
afd43f51
authored
Feb 18, 2021
by
Rick Ho
Browse files
update setup.py and requirements.txt
parent
709ac745
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
requirements.txt
requirements.txt
+1
-0
setup.py
setup.py
+8
-1
No files found.
requirements.txt
0 → 100644
View file @
afd43f51
torch
setup.py
View file @
afd43f51
...
@@ -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
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment