Skip to content

Commit

Permalink
Print prompt if not apply_chat_template
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmbmb committed Sep 1, 2024
1 parent fe07d24 commit 99e075d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ fn main() -> Result<()> {

let start = std::time::Instant::now();

let token_streamer: Box<dyn TokenStreamer> =
Box::new(TextStreamer::new(&tokenizer, true, true));
let token_streamer: Box<dyn TokenStreamer> = Box::new(TextStreamer::new(
&tokenizer,
args.apply_chat_template,
true,
));

let input_ids = encodings.get_input_ids();
model.generate(
Expand Down

0 comments on commit 99e075d

Please sign in to comment.