qwen.cpp icon indicating copy to clipboard operation
qwen.cpp copied to clipboard

crash if compliing in debug mode, everything is ok if in release mode

Open feixyz10 opened this issue 2 years ago • 0 comments

In CMakeLists.txt add set(CMAKE_BUILD_TYPE "Debug") after line 10, then run the excutable. The program crashed with following error message:

Assertion failed: (encoder_.size() != decoder_.size() && "Encoder and decoder must be of equal length; maybe you had duplicate token indices in your encoder?"), function tiktoken, file tiktoken.h, line 139.

My running env: macbook pro with MI chip, clang version 15.0.0.

feixyz10 avatar Jan 31 '24 10:01 feixyz10