2025-08-06 17:02:29 +08:00
|
|
|
1.安装wsl
|
|
|
|
|
|
|
|
|
|
2.wsl中安装conda
|
|
|
|
|
|
|
|
|
|
3.conda创建虚拟环境
|
|
|
|
|
conda create -n AITrain python=3.12 -y
|
|
|
|
|
conda activate AITrain
|
|
|
|
|
conda install -c "nvidia/label/cuda-12.1.1" cuda -y
|
|
|
|
|
conda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 pytorch-cuda=12.1 -c pytorch -c nvidia -y
|
|
|
|
|
|
|
|
|
|
4.pip install requirements.txt -r
|
|
|
|
|
|
|
|
|
|
5.下载deepseek模型
|
|
|
|
|
pip install modelscope
|
|
|
|
|
pip install vllm
|
2025-08-08 10:17:40 +08:00
|
|
|
pip install swanlab==0.5.7
|
|
|
|
|
pip install accelerate==1.6.0
|
|
|
|
|
pip install datasets==3.5.1
|
|
|
|
|
pip install peft==0.15.2
|
|
|
|
|
pip install autoawq
|
|
|
|
|
|
2025-08-06 17:02:29 +08:00
|
|
|
python model_download.py
|