Update MACA
parent
60583ad325
commit
36306b03d9
32
MACA.md
32
MACA.md
@ -250,6 +250,8 @@
|
||||
- 如果不使用 PyTorch Extension 功能,可以不配置 cu-bridge 环境。关于 PyTorch Extension 功能,参见官网描述。
|
||||
|
||||
|
||||
## Pypi源配置
|
||||
|
||||
### 一次性安装
|
||||
- **使用以下命令一次性安装指定包**
|
||||
```bash
|
||||
@ -273,14 +275,44 @@
|
||||
pip index versions <package> -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||
```
|
||||
|
||||
## Conda源配置
|
||||
|
||||
### 一次性安装
|
||||
- **使用以下命令一次性安装指定包**
|
||||
```bash
|
||||
conda install <PKG Name> -c https://repos.metax-tech.com/r/maca-conda/
|
||||
```
|
||||
|
||||
### 永久配置
|
||||
- **添加新channels**
|
||||
```bash
|
||||
conda config --add channels https://repos.metax-tech.com/r/maca-conda/
|
||||
conda config --set show_channel_urls yes
|
||||
```
|
||||
|
||||
- **删除默认channels**
|
||||
```bash
|
||||
conda config --remove channels defaults
|
||||
或者手动方式
|
||||
For Linux sed -i.bak '/- defaults/d' ~/.condarc
|
||||
For Windows 在文件 %USERPROFILE%/.condarc 中删除 "- defaults" 这一行
|
||||
```
|
||||
|
||||
|
||||
|
||||
### 安装指南
|
||||
|
||||
- **1.安装 mcPyTorch**
|
||||
```bash
|
||||
使用 pip 安装
|
||||
pip install pip install torch==<version> i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||
```
|
||||
|
||||
```bash
|
||||
使用 conda 安装
|
||||
conda install torch==<version> -c https://repos.metax-tech.com/r/maca-conda/
|
||||
```
|
||||
|
||||
- **2. 安装 mcFlashattn**
|
||||
```bash
|
||||
pip install flash_attn==<version> i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com
|
||||
|
Loading…
Reference in New Issue
Block a user