li-plus / chatglm.cpp

C++ implementation of ChatGLM-6B & ChatGLM2-6B & ChatGLM3 & GLM4(V)
MIT License
2.92k stars 334 forks source link

chatglm4: Run ./build/bin/main, Error: invalid model type 4 #307

Closed guissy closed 3 months ago

guissy commented 3 months ago

./build/bin/main -m chatglm4-ggml.bin -p "你好"

报错 /chatglm.cpp:1435 invalid model type 4

li-plus commented 3 months ago

试试先 pull 一下最新代码,重新编译,再加载模型呢

git pull origin main
git submodule update --init --recursive
cmake -B build
cmake --build build -j --config Release
guissy commented 3 months ago

试试先 pull 一下最新代码,重新编译,再加载模型呢

git pull origin main
git submodule update --init --recursive
cmake -B build
cmake --build build -j --config Release

It works! thank you!!