flush stdout every token
This commit is contained in:
parent
56ddd88d05
commit
fdd8bf5903
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ struct chat {
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s", llama_token_to_str(ctx, id).c_str());
|
printf("%s", llama_token_to_str(ctx, id).c_str());
|
||||||
|
fflush(stdout);
|
||||||
} while (true);
|
} while (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue