ColossalAI/docs/installation.md

28 lines
691 B
Markdown
Raw Normal View History

2021-10-28 16:21:23 +00:00
# Setup
### PyPI
2021-10-28 16:21:23 +00:00
```bash
pip install colossalai
```
### Install From Source (Recommended)
> 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. :)
2021-10-28 16:21:23 +00:00
```shell
git clone https://github.com/hpcaitech/ColossalAI.git
2021-10-28 16:21:23 +00:00
cd ColossalAI
# install dependency
pip install -r requirements/requirements.txt
# install colossalai
pip install .
```
Install and enable CUDA kernel fusion (compulsory installation when using fused optimizer)
2021-12-10 06:37:33 +00:00
```shell
2021-10-28 16:21:23 +00:00
pip install -v --no-cache-dir --global-option="--cuda_ext" .
```