mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 10:24:35 +00:00
perplexity : fix winogrande N tasks option
This commit is contained in:
parent
e9240cdfa0
commit
d391ae9b49
@ -865,7 +865,7 @@ static void winogrande_score(llama_context * ctx, const gpt_params & params) {
|
|||||||
}
|
}
|
||||||
float scale = 1/(1.f + (float)rng.max());
|
float scale = 1/(1.f + (float)rng.max());
|
||||||
std::vector<winogrande_entry> selected;
|
std::vector<winogrande_entry> selected;
|
||||||
selected.reserve(params.winogrande_tasks);
|
selected.resize(params.winogrande_tasks);
|
||||||
for (int i = 0; i < int(params.winogrande_tasks); ++i) {
|
for (int i = 0; i < int(params.winogrande_tasks); ++i) {
|
||||||
int j = int(scale*rng()*aux.size());
|
int j = int(scale*rng()*aux.size());
|
||||||
selected[i] = std::move(data[aux[j]]);
|
selected[i] = std::move(data[aux[j]]);
|
||||||
|
Loading…
Reference in New Issue
Block a user