conda配hugging face環境 & 伺服器系統盤容量不足

snail1502發表於2024-07-25
conda create --name env_name python=3.10
安裝pytorch:https://pytorch.org/get-started/locally/
conda install jupyter
conda install -c huggingface transformers datasets evaluate
conda install -c fastai accelerate
conda install scipy scikit-learn

伺服器系統盤容量不夠了,可以把home目錄軟連結到其他盤

mv /home/username /dev_sdb/home/username 
sudo ln -s /home/data/username / /home/username 
sudo chown -R  username:username  /home/username 
sudo chown -R  username:username /dev_sdb/home/username

cp -a /home/username/. /dev_sdb/home/username
rm -rf /home/username
sudo ln -s /home/data/username /home/username
sudo chown -R  username:username /home/username
sudo chown -R  username:username /home/data/username

相關文章