chatglm.cpp
chatglm.cpp copied to clipboard
编译安装时,third_party中的sentencepiece的cmake_minimum_required(VERSION 3.1 FATAL_ERROR)需要更新至3.5
CMake Error at third_party/sentencepiece/CMakeLists.txt:15 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
使用CMAKE_ARGS="-DGGML_CUDA=ON" pip install -U chatglm-cpp编译安装时,会出现上述错误,目前只能通过源码编译修改CMakeLists.txt文件解决