conda create --name unsloth_env python=3.10 pytorch-cuda=11.8
conda install pytorch-cuda=11.8 pytorch cudatoolkit xformers -c pytorch -c nvidia -c xformers -y
conda install pytorch torchvision torchaudio cudatoolkit=11.8 -c pytorch
pip install protobuf==3.18
pip install "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git"
pip install --no-deps xformers "trl<0.9.0" peft accelerate bitsandbytes
-i https://pypi.tuna.tsinghua.edu.cn/simple
python /home/magic/ftp/FT/app.py
解决docker 拉取超时的问题
首先进入/etc/docker/daemon.json文件
然后在里面加入下面的配置
{
"registry-mirrors": ["https://docker.registry.cyou",
"https://docker-cf.registry.cyou",
"https://dockercf.jsdelivr.fyi",
"https://docker.jsdelivr.fyi",
"https://dockertest.jsdelivr.fyi",
"https://mirror.aliyuncs.com",
"https://dockerproxy.com",
"https://mirror.baidubce.com",
"https://docker.m.daocloud.io",
"https://docker.nju.edu.cn",
"https://docker.mirrors.sjtug.sjtu.edu.cn",
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.iscas.ac.cn",
"https://docker.rainbond.cc"]
}
然后在终端重新启动一下docker
systemctl daemon-reload
systemctl restart docker
然后再拉镜像,您猜怎么着!?成了!!!
再然后就是问题得到圆满解决!!
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/Liiiiiiiiiii19/article/details/142438122
标签:https,微调,unsloth,pytorch,install,docker,cn From: https://www.cnblogs.com/CqMagic/p/18356638