CUDA
选择runfile
安装好后设置到/root/.bashrc,版本以实际为准
export CUDA_HOME=/usr/local/cuda-12.4:$CUDA_HOME
export PATH=/usr/local/cuda-12.4/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:$LD_LIBRARY_PATH
miniconda
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
sudo chmod 777 Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
~/.bashrc设置miniconda
export PATH=/root/miniconda3/bin/conda:$PATH
source ~/.bashrc
之后再执行/root/miniconda3/bin/conda init
重启shell看到(base)就是成功
微调环境
conda create -n llm python=3.11.9
conda activate llm
One comment
权限777会不会不太好