diff --git a/MACA.md b/MACA.md index b3b5911..d5cdc08 100644 --- a/MACA.md +++ b/MACA.md @@ -250,6 +250,8 @@ - 如果不使用 PyTorch Extension 功能,可以不配置 cu-bridge 环境。关于 PyTorch Extension 功能,参见官网描述。 +## Pypi源配置 + ### 一次性安装 - **使用以下命令一次性安装指定包** ```bash @@ -273,14 +275,44 @@ pip index versions -i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com ``` +## Conda源配置 + +### 一次性安装 + - **使用以下命令一次性安装指定包** + ```bash + conda install -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== i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com ``` + ```bash + 使用 conda 安装 + conda install torch== -c https://repos.metax-tech.com/r/maca-conda/ + ``` + - **2. 安装 mcFlashattn** ```bash pip install flash_attn== i https://repos.metax-tech.com/r/maca-pypi/simple --trusted-host repos.metax-tech.com