Attempt at solving the ExLlamaV2 issue

This commit is contained in:
oobabooga 2025-04-17 21:45:15 -07:00
parent 2c2d453c8c
commit c9b3c9dfbf

View file

@ -444,7 +444,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 chr(0xfffd) in new_content:
if new_content.endswith(chr(0xfffd)):
continue
cumulative_reply += new_content