Make prompt randomization optional. (#300)

Co-authored-by: Johnman <>
This commit is contained in:
tjohnman 2023-03-19 19:36:19 +01:00 committed by GitHub
parent 368d0c8a9e
commit ad5fd5b60c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -803,7 +803,7 @@ int main(int argc, char ** argv) {
fprintf(stderr, "%s: seed = %d\n", __func__, params.seed);
std::mt19937 rng(params.seed);
if (params.prompt.empty()) {
if (params.random_prompt) {
params.prompt = gpt_random_prompt(rng);
}