Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
feixyz10 opened this issue Jan 31, 2024 · 0 comments
Open

Comments

@feixyz10
Copy link

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 feixyz10 changed the title crash if compliing in debug mode crash if compliing in debug mode, everything is ok if in release mode Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant