Update utils.cpp
This commit is contained in:
parent
7412189fe5
commit
2913d75a42
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ bool gpt_vocab_init(const std::string & fname, gpt_vocab & vocab) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void sample_top_k(std::vector<std::pair<double, gpt_vocab::id>> &logits_id, int top_k) {
|
void sample_top_k(std::vector<std::pair<double, gpt_vocab::id>> & logits_id, int top_k) {
|
||||||
// find the top K tokens
|
// find the top K tokens
|
||||||
std::partial_sort(
|
std::partial_sort(
|
||||||
logits_id.begin(),
|
logits_id.begin(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue