From ce9e2d94b169f657e3ba52fbb68e74d693ac590b Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 17 Apr 2025 22:03:21 -0700 Subject: [PATCH] Revert "Attempt at solving the ExLlamaV2 issue" This reverts commit c9b3c9dfbfdbc3a9877728b98e9670b066ea89eb. --- modules/text_generation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/text_generation.py b/modules/text_generation.py index d62441df..2869e03c 100644 --- a/modules/text_generation.py +++ b/modules/text_generation.py @@ -447,7 +447,7 @@ def generate_reply_HF(question, original_question, seed, state, stopping_strings new_content = get_reply_from_output_ids(output, state, starting_from=starting_from) # check the partial unicode character - if new_content.endswith(chr(0xfffd)): + if chr(0xfffd) in new_content: continue cumulative_reply += new_content