diff options
author | goerch <jhr.walter@t-online.de> | 2023-10-07 06:57:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-07 06:57:01 +0200 |
commit | 3a716b4dae545c3db307594fbc509a95d3e21b6e (patch) | |
tree | 5562016a7c2b2bbe552ba736a427f9187c3a5926 /llama.cpp | |
parent | 1faaae8c2bdc4a21302e367e0754c3fe74a8113e (diff) |
Fix for #3454 (#3455)
Fix: `sentencepiece` tokenizers with added tokens failed with an incorrect assertion
Diffstat (limited to 'llama.cpp')
-rw-r--r-- | llama.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -8200,7 +8200,9 @@ int llama_token_to_piece(const struct llama_model * model, llama_token token, ch buf[0] = llama_token_to_byte(model->vocab, token); return 1; } else { - GGML_ASSERT(false); + // TODO: for now we accept all unsupported token types, + // suppressing them like CONTROL tokens. + // GGML_ASSERT(false); } break; } @@ -8216,7 +8218,9 @@ int llama_token_to_piece(const struct llama_model * model, llama_token token, ch } else if (llama_is_control_token(model->vocab, token)) { ; } else { - GGML_ASSERT(false); + // TODO: for now we accept all unsupported token types, + // suppressing them like CONTROL tokens. + // GGML_ASSERT(false); } break; } |