We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ac20e3 commit 815d205Copy full SHA for 815d205
gpttype_adapter.cpp
@@ -3603,6 +3603,9 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
3603
int input_consumed = 0;
3604
std::mt19937 rng(kcpp_data->seed);
3605
3606
+ //do some reservation so we don't have to realloc
3607
+ generated_tokens.reserve(remaining_tokens+16);
3608
+
3609
//prepare sampler order
3610
std::vector<samplers> sampler_order;
3611
if(inputs.sampler_len<=0) //list by value
0 commit comments