You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regarding issue with output format for Vicuna (lmsys/vicuna-7b-v1.5) using fastchat/serve/huggingface_api.py #3795
The ASSISTANT's output looks like (with the special characters "▁" and additional spaces):
USER: Hello! Who are you? ASSISTANT: ▁I ' m ▁a ▁language ▁model ▁called ▁Vic una , ▁and ▁I ▁was ▁trained ▁by ▁Lar ge ▁Model ▁Systems ▁Organ ization ▁( L MS YS ) ▁research ers .
However, I was expecting the output to be clean:
USER: Hello! Who are you? ASSISTANT: I'm a language model called Vicuna , and I was trained by Large Model Systems Organization (LMSYS) researchers.
I need to have clean output because I am performing multi-turn generation (i.e. pass the first response of the assistant back to the assistant as context for generating next response).
Sorry if I am missing something fundamental here but any help would be much appreciated!
Activity
chessing234 commentedon Jul 17, 2026
Opened a fix in #3909 — adds
clean_up_tokenization_spaces=Trueto matchinference.py.fix: clean tokenization spaces in huggingface_api decode