Unverified Commit 070df689 authored by Hongxin Liu's avatar Hongxin Liu Committed by GitHub
Browse files

[devops] fix extention building (#5427)

parent 822241a9
...@@ -53,7 +53,7 @@ We follow the hyperparameter settings from the original LLaMA paper. We use Adam ...@@ -53,7 +53,7 @@ We follow the hyperparameter settings from the original LLaMA paper. We use Adam
Please install the latest ColossalAI from source. Please install the latest ColossalAI from source.
```bash ```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. Then install other dependencies.
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
Please install the latest ColossalAI from source. Please install the latest ColossalAI from source.
```bash ```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. Then install dependencies.
......
...@@ -154,7 +154,7 @@ def check_cuda_availability(): ...@@ -154,7 +154,7 @@ def check_cuda_availability():
def set_cuda_arch_list(cuda_dir): def set_cuda_arch_list(cuda_dir):
""" """
This function sets the PyTorch TORCH_CUDA_ARCH_LIST variable for ahead-of-time extension compilation. 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() cuda_available = check_cuda_availability()
......
...@@ -70,7 +70,7 @@ def get_version() -> str: ...@@ -70,7 +70,7 @@ def get_version() -> str:
if BUILD_EXT: if BUILD_EXT:
if not TORCH_AVAILABLE: if not TORCH_AVAILABLE:
raise ModuleNotFoundError( 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 from extensions import ALL_EXTENSIONS
......
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