Skip to content

Commit

Permalink
embd-input: Fix input embedding example unsigned int seed (ggerganov#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pnb authored Jul 4, 2023
1 parent b472f3f commit 7f0e9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/embd-input/embd-input-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct MyModel* create_mymodel(int argc, char ** argv) {

fprintf(stderr, "%s: build = %d (%s)\n", __func__, BUILD_NUMBER, BUILD_COMMIT);

if (params.seed < 0) {
if (params.seed == LLAMA_DEFAULT_SEED) {
params.seed = time(NULL);
}
fprintf(stderr, "%s: seed = %d\n", __func__, params.seed);
Expand Down

0 comments on commit 7f0e9a7

Please sign in to comment.