Update MACA
parent
2c13df218e
commit
7d4670b1e2
87
MACA.md
87
MACA.md
@ -251,54 +251,57 @@
|
|||||||
|
|
||||||
|
|
||||||
### Pypi安装
|
### Pypi安装
|
||||||
|
|
||||||
#### 通过requirements.txt安装
|
|
||||||
- **maca-pypi源地址预设在requirement.txt 文件中,用户执行命令不需关注maca-pypi源地址**
|
|
||||||
```bash
|
|
||||||
cat <<EOF> ./requirements.txt
|
|
||||||
-i https://repos.metax-tech.com/r/maca-pypi/simple
|
|
||||||
apex
|
|
||||||
dropout_layer_norm
|
|
||||||
flash_attn
|
|
||||||
fused_dense_lib
|
|
||||||
rotary_emb
|
|
||||||
torch
|
|
||||||
torchaudio
|
|
||||||
torchvision
|
|
||||||
triton
|
|
||||||
xentropy_cuda_lib
|
|
||||||
xformers
|
|
||||||
|
|
||||||
EOF
|
|
||||||
pip install -r ./requirements.txt
|
|
||||||
|
|
||||||
```
|
|
||||||
- **在命令行中指定 maca-pypi 源地址**
|
|
||||||
```bash
|
|
||||||
cat <<EOF> ./requirements.txt
|
|
||||||
apex
|
|
||||||
dropout_layer_norm
|
|
||||||
flash_attn
|
|
||||||
fused_dense_lib
|
|
||||||
rotary_emb
|
|
||||||
torch
|
|
||||||
torchaudio
|
|
||||||
torchvision
|
|
||||||
triton
|
|
||||||
xentropy_cuda_lib
|
|
||||||
xformers
|
|
||||||
|
|
||||||
EOF
|
|
||||||
pip install -r ./requirements.txt -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 单包安装
|
#### 单包安装
|
||||||
- **使用以下命令安装指定包**
|
- **使用以下命令安装指定包**
|
||||||
```bash
|
```bash
|
||||||
pip install <package> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
pip install <package> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 通过requirements.txt安装
|
||||||
|
- **maca-pypi源地址预设在requirement.txt 文件中,用户执行命令不需关注maca-pypi源地址**
|
||||||
|
```bash
|
||||||
|
pip install -r ./requirements.txt
|
||||||
|
```
|
||||||
|
```bash
|
||||||
|
cat <<EOF> ./requirements.txt
|
||||||
|
**-i https://repos.metax-tech.com/r/maca-pypi/simple**
|
||||||
|
apex
|
||||||
|
dropout_layer_norm
|
||||||
|
flash_attn
|
||||||
|
fused_dense_lib
|
||||||
|
rotary_emb
|
||||||
|
torch
|
||||||
|
torchaudio
|
||||||
|
torchvision
|
||||||
|
triton
|
||||||
|
xentropy_cuda_lib
|
||||||
|
xformers
|
||||||
|
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
- **在命令行中指定 maca-pypi 源地址**
|
||||||
|
```bash
|
||||||
|
pip install -r ./requirements.txt -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||||
|
```
|
||||||
|
```bash
|
||||||
|
cat <<EOF> ./requirements.txt
|
||||||
|
apex
|
||||||
|
dropout_layer_norm
|
||||||
|
flash_attn
|
||||||
|
fused_dense_lib
|
||||||
|
rotary_emb
|
||||||
|
torch
|
||||||
|
torchaudio
|
||||||
|
torchvision
|
||||||
|
triton
|
||||||
|
xentropy_cuda_lib
|
||||||
|
xformers
|
||||||
|
|
||||||
|
EOF
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### 列出可用版本
|
#### 列出可用版本
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user