sweep_bench: set number of repetions (#1176)

This commit is contained in:
Kawrakow
2026-01-22 12:28:30 +02:00
committed by GitHub
parent 101fe54797
commit 573e23679d
3 changed files with 77 additions and 54 deletions

View File

@@ -786,6 +786,11 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
params.max_extra_alloc_MiB = std::stoi(argv[i]);
return true;
}
if (arg == "-nrep" || arg == "--n-repetitions") {
CHECK_ARG
params.nrep = std::stoi(argv[i]);
return true;
}
if (arg == "--samplers") {
CHECK_ARG
const auto sampler_names = string_split(argv[i], ";");