fixup! fixup! sampling: separate rng per sampling context

This commit is contained in:
Johannes Gäßler 2024-04-23 13:55:05 +02:00
parent 760db9ee35
commit 2b7cff5f5a

View file

@ -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;