]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix: remove stale assert (#21369)
authorPiotr Wilkin (ilintar) <redacted>
Fri, 3 Apr 2026 11:40:41 +0000 (13:40 +0200)
committerGitHub <redacted>
Fri, 3 Apr 2026 11:40:41 +0000 (13:40 +0200)
src/llama-vocab.cpp

index 5bce88aab40849f1a81c468fc3857df47838796d..cbd361b4b9a3c468c03c26e4027ca81f98912c5a 100644 (file)
@@ -3712,9 +3712,7 @@ int llama_vocab::max_token_len() const {
 
 int llama_vocab::find_bpe_rank(const std::string & token_left, const std::string & token_right) const {
     GGML_ASSERT(token_left.find(' ')   == std::string::npos);
-    GGML_ASSERT(token_left.find('\n')  == std::string::npos);
     GGML_ASSERT(token_right.find(' ')  == std::string::npos);
-    GGML_ASSERT(token_right.find('\n') == std::string::npos);
 
     auto it = pimpl->bpe_ranks.find(std::make_pair(token_left, token_right));
     if (it == pimpl->bpe_ranks.end()) {