From: Piotr Wilkin (ilintar) Date: Fri, 3 Apr 2026 11:40:41 +0000 (+0200) Subject: fix: remove stale assert (#21369) X-Git-Tag: upstream/0.0.8681~30 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d3416a4aa9a37d9a0ca547e18c0e126bfe8a07ea;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix: remove stale assert (#21369) --- diff --git a/src/llama-vocab.cpp b/src/llama-vocab.cpp index 5bce88aab..cbd361b4b 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()) {