Skip to content

Commit

Permalink
Fix skip_special_tokens flag (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Jul 5, 2023
1 parent 044c779 commit 5923314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/python/setup/djl_python/streaming_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def use_hf_default_streamer(model, tokenizer, inputs, device, **kwargs):
if device is not None:
input_tokens = input_tokens.to(device)

streamer = HFStreamer(tokenizer, skip_special_token=True)
streamer = HFStreamer(tokenizer, skip_special_tokens=True)
generation_kwargs = dict(input_tokens, streamer=streamer, **kwargs)

def run_generation(model, **kwargs):
Expand Down

0 comments on commit 5923314

Please sign in to comment.