mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 13:27:21 +01:00
use 1 seq for kl_divergence
This commit is contained in:
parent
5cf23d11c8
commit
dcab343f2f
@ -1991,8 +1991,12 @@ int main(int argc, char ** argv) {
|
|||||||
params.n_batch = std::min(params.n_batch, n_kv);
|
params.n_batch = std::min(params.n_batch, n_kv);
|
||||||
} else {
|
} else {
|
||||||
params.n_batch = std::min(params.n_batch, params.n_ctx);
|
params.n_batch = std::min(params.n_batch, params.n_ctx);
|
||||||
// ensure there's at least enough seq_ids for HellaSwag
|
if (params.kl_divergence) {
|
||||||
params.n_parallel = std::max(4, params.n_parallel);
|
params.n_parallel = 1;
|
||||||
|
} else {
|
||||||
|
// ensure there's at least enough seq_ids for HellaSwag
|
||||||
|
params.n_parallel = std::max(4, params.n_parallel);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (params.ppl_stride > 0) {
|
if (params.ppl_stride > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user