Skip to content

Commit

Permalink
fixup! fixup! sampling: separate rng per sampling context
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesGaessler committed Apr 23, 2024
1 parent 760db9e commit 2b7cff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
invalid_param = true;
return true;
}
// This is temporary, in the future the samplign state will be moved fully to llama_sampling_context.
params.seed = std::stoul(argv[i]);
sparams.seed = std::stoul(argv[i]);
return true;
Expand Down

0 comments on commit 2b7cff5

Please sign in to comment.