main: refactor ctrl_token_no_out --> no_special
This commit is contained in:
parent
7d52482bac
commit
8f76ba54ba
3 changed files with 3 additions and 3 deletions
|
@ -906,7 +906,7 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
|
|||
return true;
|
||||
}
|
||||
if (arg == "--no-special") {
|
||||
params.ctrl_token_no_out = true;
|
||||
params.no_special = true;
|
||||
return true;
|
||||
}
|
||||
if (arg == "--embedding") {
|
||||
|
|
|
@ -142,7 +142,7 @@ struct gpt_params {
|
|||
bool use_color = false; // use color to distinguish generations and inputs
|
||||
bool interactive = false; // interactive mode
|
||||
bool interactive_specials = false; // whether to allow special tokens from user, during interactive mode
|
||||
bool ctrl_token_no_out = false; // disable control token output
|
||||
bool no_special = false; // disable control token output
|
||||
bool conversation = false; // conversation mode (does not print special tokens and suffix/prefix)
|
||||
bool chatml = false; // chatml mode (used for models trained on chatml syntax)
|
||||
bool prompt_cache_all = false; // save user input and generations to prompt cache
|
||||
|
|
|
@ -760,7 +760,7 @@ int main(int argc, char ** argv) {
|
|||
if (!llama_token_is_control_token(llama_get_model(ctx), id)) {
|
||||
// Stream Output Token To Standard Output
|
||||
fprintf(stdout, "%s", token_str.c_str());
|
||||
} else if (!params.ctrl_token_no_out) {
|
||||
} else if (!params.no_special) {
|
||||
#ifndef _MSC_VER
|
||||
if (control_token_file_descriptor_is_attached) {
|
||||
// Stream Control Token To Special Token Output. Useful for debugging control token behaviour
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue