mirror of https://github.com/google/gemma.cpp.git
Merge branch 'main' into dev
This commit is contained in:
commit
5b5c080b10
5
run.cc
5
run.cc
|
|
@ -144,6 +144,11 @@ void ReplGemma(gcpp::Gemma& model, hwy::ThreadPool& pool,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (prompt_string == "%c" || prompt_string == "%C") {
|
||||||
|
abs_pos = 0;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (model.model_training == ModelTraining::GEMMA_IT) {
|
if (model.model_training == ModelTraining::GEMMA_IT) {
|
||||||
// For instruction-tuned models: add control tokens.
|
// For instruction-tuned models: add control tokens.
|
||||||
prompt_string = "<start_of_turn>user\n" + prompt_string +
|
prompt_string = "<start_of_turn>user\n" + prompt_string +
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue