Skip to content

Commit

Permalink
Don't report interactive stop token sequence if we are not interactiv…
Browse files Browse the repository at this point in the history
…e mode.
  • Loading branch information
Noeda committed Apr 2, 2023
1 parent f5f8547 commit 4c99e7f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/rllama_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,12 @@ fn command_line_inference(
"Repetition penalty: {}",
token_sampler.get_repetition_penalty()
);
if start_interactive {
pln!(
" Interactive mode stop token sequence: {}",
interactive_stop.as_str()
);
}
pln!("---");
pln!(
"{}",
Expand All @@ -763,10 +769,6 @@ fn command_line_inference(
"{}",
" This is the color of the generated text".truecolor(128, 255, 128)
);
pln!(
"Interactive mode stop token sequence: {}",
interactive_stop.as_str()
);
pln!("---");
print!("{}", prompt.as_str().truecolor(128, 128, 255));

Expand Down

0 comments on commit 4c99e7f

Please sign in to comment.