AI微調框架axolotl安裝
1. N卡驅動和toolkit安裝https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=WSL-Ubuntu&target_version=2.0&target_type=runfile_local
2. python和mini-conda安裝
基本是要下載安裝包安裝,
python下載地址:https://repo.huaweicloud.com/python/3.12.8/
mini-conda下載地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
conda清華資源:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
python下載地址:https://repo.huaweicloud.com/python/3.12.8/
mini-conda下載地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/
conda清華資源:https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/
3. 新建一個conda環境
conda create -n axolotl python=3.12
4. cuda版本的pytorch安裝
如想安裝其他版本, 可從以下網址查找:
5. git clone https://github.com/axolotl-ai-cloud/axolotl, cd到根目錄, 運行
pip3 install --no-build-isolation axolotl[flash-attn,deepspeed]
posted on 2025-01-12 16:37 paulwong 閱讀(62) 評論(0) 編輯 收藏 所屬分類: AI-FINE-TUNNING