Skip to content

Commit

Permalink
Fix decoding in cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
haotian-liu authored Feb 7, 2024
1 parent b42a13d commit 188ac52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llava/serve/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def main(args):
streamer=streamer,
use_cache=True)

outputs = tokenizer.decode(output_ids[0, input_ids.shape[1]:]).strip()
outputs = tokenizer.decode(output_ids).strip()
conv.messages[-1][-1] = outputs

if args.debug:
Expand Down

0 comments on commit 188ac52

Please sign in to comment.