chmod +x /etc/rc.d/rc.local
echo “dhclient -6 ens3” >> /etc/rc.d/rc.local
就是开机运行dhclient -6 ens3的命令
chmod +x /etc/rc.d/rc.local
echo “dhclient -6 ens3” >> /etc/rc.d/rc.local
就是开机运行dhclient -6 ens3的命令
模型下载
安装git lfs
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
apt-get install git-lfs
git lfs install
git clone https://huggingface.co/THUDM/chatglm-6b
这样就下载完成了。
如果是llama.app
https://github.com/ggerganov/llama.cpp
下载程序
git clone https://github.com/ggerganov/llama.cpp
cd llama.cppOn Windows:
w64devkit on your pc.w64devkit.exe.cd command to reach the llama.cpp folder.makepython3 convert.py models/7B/上面命令转换成ggml-model-f16.bin文件然后./quantize ./models/7B/ggml-model-f16.bin ./models/7B/ggml-model-q4_0.bin q4_0转换成gml-model-q4_0.bin文件运行下面命令就可以运行了:./main -m ./models/7B/ggml-model-q4_0.bin -n 128
当服务器有多个api应用,或者网站的时候,会出现网页打不开。但是cpu、内存等都很空闲。这种情况,有可能是网站的文件数设置不正确。 查询服务器支持的TCP连接数: ulimit -n 默认是1024 需要增加方法: 编辑/etc/security/limits.conf * s...