Skip to content

Commit

Permalink
Adding another assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
goerch committed Sep 19, 2023
1 parent 4abbfb5 commit 59a30b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,7 @@ static void llm_load_vocab(

for (int i = 0; i < n_merges; i++) {
const std::string word = gguf_get_arr_str(ctx, merges_keyidx, i);
GGML_ASSERT(codepoints_from_utf8(word).size() >= 0);

std::string first;
std::string second;
Expand Down

0 comments on commit 59a30b7

Please sign in to comment.