@@ -17,9 +17,26 @@ An integrated large-scale model training system with efficient parallelization t
## Installation
### Install From Source (Recommended)
### PyPI
```bash
pip install colossalai
```
This command will install CUDA extension if your have installed CUDA, NVCC and torch.
> We **recommend** you to install from source as the Colossal-AI is updating frequently in the early versions. The documentation will be in line with the main branch of the repository. Feel free to raise an issue if you encounter any problem. :)
If you don't want to install CUDA extension, you should add `--global-option="--no_cuda_ext"`, like:
f'The detected CUDA version ({raw_output}) mismatches the version that was used to compile PyTorch ({torch.version.cuda}). CUDA extension will not be installed.')
returnFalse
deffetch_requirements(path):
withopen(path,'r')asfd:
return[r.strip()forrinfd.readlines()]
ifbare_metal_minor!=torch_binary_minor:
print("\nWarning: Cuda extensions are being compiled with a version of Cuda that does "
+"not match the version used to compile Pytorch binaries. "
+"Pytorch binaries were compiled with Cuda {}.\n".format(torch.version.cuda)
+"In some cases, a minor-version mismatch will not cause later errors: "
"nvcc was not found. CUDA extension will not be installed. If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")
"--cuda_ext was requested, but nvcc was not found. Are you sure your environment has nvcc available? If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.")