Merge branch 'dynamic-temp' of https://github.com/l3utterfly/llama.cpp into dynamic-temp

This commit is contained in:
l3utterfly 2024-01-22 22:16:30 +09:00
commit f7fbeb5ece

View file

@ -7794,7 +7794,7 @@ void llama_sample_entropy(struct llama_context * ctx, llama_token_data_array * c
return; return;
} }
llama_sample_softmax(ctx, candidates_p); llama_sample_softmax(nullptr, candidates_p);
// Calculate entropy of the softmax probabilities // Calculate entropy of the softmax probabilities
float entropy = 0.0f; float entropy = 0.0f;