From d3416a4aa9a37d9a0ca547e18c0e126bfe8a07ea Mon Sep 17 00:00:00 2001 From: "Piotr Wilkin (ilintar)" Date: Fri, 3 Apr 2026 13:40:41 +0200 Subject: [PATCH] fix: remove stale assert (#21369) --- src/llama-vocab.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/llama-vocab.cpp b/src/llama-vocab.cpp index 5bce88aab4..cbd361b4b9 100644 --- a/src/llama-vocab.cpp +++ b/src/llama-vocab.cpp @@ -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()) {