云服务器的使用
在Termius中的使用
是否有下载conda
- 如果没有下载,那么输入命令
wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh - 安装conda
bash Anaconda3-2021.05-Linux-x86_64.sh
回车3次 ,在需要输入yes的时候打yes。继续回车,输入yes - 在安装完毕后重新连接服务器
创建虚拟环境
conda create -n 名称 python=3.10
conda activate 名称
下载git
yum install git
安装LLaMA-Factory框架
git clone https://github.com/hiyouga/LLaMA-Factory.git
cd LLaMA-Factory
pip install -e ".[torch,metrics]"
如果出现报错WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
运行pip install --root-user-action=ignore mediapipe忽略单次报错,下次出现报错还需要输入
- 运行框架
llamafactory-cli webui
如果再出错就运行sudo yum install libsndfile然后再继续启动框架
访问地址
服务器公网ip+端口号
- 访问时可能出现访问不到的问题
可能是【安全组】配置的问题(服务器对外提供的端口有没有)
![]()
下载模型(评估模型)
- 打开模搭网址https://www.modelscope.cn/models
- 在微调框架中加载模型,进行评估
- 训练,测试,导出。


浙公网安备 33010602011771号