installation_zh.md 433 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 快速安装

## 使用pip安装

```bash
pip install colossalai
```

## 使用源代码安装

```shell
git clone git@github.com:hpcaitech/ColossalAI.git
cd ColossalAI
# install dependency
pip install -r requirements/requirements.txt

# install colossalai
pip install .
```

安装并支持内核融合(使用融合优化器时必须执行下面的代码)

```
pip install -v --no-cache-dir --global-option="--cuda_ext" .
```