mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 09:15:18 +02:00
stability and memory access fixes (codex generated/reviewed)
This commit is contained in:
+3
-2
@@ -412,8 +412,9 @@ extern "C"
|
||||
return detokenized_str.c_str();
|
||||
}
|
||||
|
||||
static std::vector<TopPicksData> last_logprob_toppicks;
|
||||
static std::vector<logprob_item> last_logprob_items;
|
||||
// Returned pointers remain valid until the next call on the same thread.
|
||||
static thread_local std::vector<TopPicksData> last_logprob_toppicks;
|
||||
static thread_local std::vector<logprob_item> last_logprob_items;
|
||||
last_logprobs_outputs last_logprobs()
|
||||
{
|
||||
last_logprobs_outputs output;
|
||||
|
||||
Reference in New Issue
Block a user