mirror of https://github.com/google/gemma.cpp.git
parent
ef786f1bfc
commit
7fc8ddf825
12
gemma/run.cc
12
gemma/run.cc
|
|
@ -184,19 +184,23 @@ void Run(LoaderArgs& loader, InferenceArgs& inference, AppArgs& app) {
|
||||||
|
|
||||||
if (app.verbosity >= 1) {
|
if (app.verbosity >= 1) {
|
||||||
const std::string instructions =
|
const std::string instructions =
|
||||||
|
std::string(
|
||||||
"*Usage*\n"
|
"*Usage*\n"
|
||||||
" Enter an instruction and press enter (%C resets conversation, "
|
" Enter an instruction and press enter (%C resets conversation, "
|
||||||
"%Q quits).\n" +
|
"%Q quits).\n")
|
||||||
|
.append(
|
||||||
(inference.multiturn == 0
|
(inference.multiturn == 0
|
||||||
? std::string(" Since multiturn is set to 0, conversation will "
|
? std::string(
|
||||||
|
" Since multiturn is set to 0, conversation will "
|
||||||
"automatically reset every turn.\n\n")
|
"automatically reset every turn.\n\n")
|
||||||
: "\n") +
|
: "\n"))
|
||||||
|
.append(
|
||||||
"*Examples*\n"
|
"*Examples*\n"
|
||||||
" - Write an email to grandma thanking her for the cookies.\n"
|
" - Write an email to grandma thanking her for the cookies.\n"
|
||||||
" - What are some historical attractions to visit around "
|
" - What are some historical attractions to visit around "
|
||||||
"Massachusetts?\n"
|
"Massachusetts?\n"
|
||||||
" - Compute the nth fibonacci number in javascript.\n"
|
" - Compute the nth fibonacci number in javascript.\n"
|
||||||
" - Write a standup comedy bit about GPU programming.\n";
|
" - Write a standup comedy bit about GPU programming.\n");
|
||||||
|
|
||||||
std::cout << "\033[2J\033[1;1H" // clear screen
|
std::cout << "\033[2J\033[1;1H" // clear screen
|
||||||
<< kAsciiArtBanner << "\n\n";
|
<< kAsciiArtBanner << "\n\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue