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
ColossalAI
Commits
070df689
Unverified
Commit
070df689
authored
Mar 05, 2024
by
Hongxin Liu
Committed by
GitHub
Mar 05, 2024
Browse files
[devops] fix extention building (#5427)
parent
822241a9
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
examples/language/llama2/README.md
examples/language/llama2/README.md
+1
-1
examples/language/openmoe/README.md
examples/language/openmoe/README.md
+1
-1
extensions/utils.py
extensions/utils.py
+1
-1
setup.py
setup.py
+1
-1
No files found.
examples/language/llama2/README.md
View file @
070df689
...
...
@@ -53,7 +53,7 @@ We follow the hyperparameter settings from the original LLaMA paper. We use Adam
Please install the latest ColossalAI from source.
```
bash
CUDA
_EXT
=
1 pip
install
-U
git+https://github.com/hpcaitech/ColossalAI
BUILD
_EXT
=
1 pip
install
-U
git+https://github.com/hpcaitech/ColossalAI
```
Then install other dependencies.
...
...
examples/language/openmoe/README.md
View file @
070df689
...
...
@@ -17,7 +17,7 @@
Please install the latest ColossalAI from source.
```
bash
CUDA
_EXT
=
1 pip
install
-U
git+https://github.com/hpcaitech/ColossalAI
BUILD
_EXT
=
1 pip
install
-U
git+https://github.com/hpcaitech/ColossalAI
```
Then install dependencies.
...
...
extensions/utils.py
View file @
070df689
...
...
@@ -154,7 +154,7 @@ def check_cuda_availability():
def
set_cuda_arch_list
(
cuda_dir
):
"""
This function sets the PyTorch TORCH_CUDA_ARCH_LIST variable for ahead-of-time extension compilation.
Ahead-of-time compilation occurs when
CUDA
_EXT=1 is set when running 'pip install'.
Ahead-of-time compilation occurs when
BUILD
_EXT=1 is set when running 'pip install'.
"""
cuda_available
=
check_cuda_availability
()
...
...
setup.py
View file @
070df689
...
...
@@ -70,7 +70,7 @@ def get_version() -> str:
if
BUILD_EXT
:
if
not
TORCH_AVAILABLE
:
raise
ModuleNotFoundError
(
"[extension] PyTorch is not found while
CUDA
_EXT=1. You need to install PyTorch first in order to build CUDA extensions"
"[extension] PyTorch is not found while
BUILD
_EXT=1. You need to install PyTorch first in order to build CUDA extensions"
)
from
extensions
import
ALL_EXTENSIONS
...
...
Prev
1
2
Next
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