mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 09:04:36 +00:00
remove debug prints for now, they were kind of cluttered
This commit is contained in:
parent
5af9138ebe
commit
5bac0fb3d5
1 changed files with 6 additions and 13 deletions
|
@ -1658,17 +1658,11 @@ const std::vector<samplers> & sampler_order, llama_grammar * grammar, float dyna
|
|||
sample_top_k(&candidates_p, 3000);
|
||||
|
||||
if (use_grammar) {
|
||||
|
||||
(debugmode == 1 && printf("\nGrammar sampling %zu candidates.\n", candidates_p.size));
|
||||
sample_grammar(file_format, n_vocab, &candidates_p, grammar);
|
||||
(debugmode == 1 && printf("\nGrammar returned %zu candidates.\n", candidates_p.size));
|
||||
|
||||
// if top_k 3000 doesn't contain a valid candidate for this grammar, try again pre-cull
|
||||
if (candidates_p.size <= 0) {
|
||||
candidates_p.size = n_pre_cull;
|
||||
(debugmode == 1 && printf("\nRe-sampling grammar with %zu pre-cull tokens.\n", candidates_p.size));
|
||||
sample_grammar(file_format, n_vocab, &candidates_p, grammar);
|
||||
(debugmode == 1 && printf("\nGrammar returned %zu candidates.\n", candidates_p.size));
|
||||
sample_top_k(&candidates_p, 3000);
|
||||
}
|
||||
}
|
||||
|
@ -3960,7 +3954,6 @@ generation_outputs gpttype_generate(const generation_inputs inputs)
|
|||
}
|
||||
|
||||
if (grammar != nullptr) {
|
||||
(debugmode == 1 && printf("\nGrammar attempting to accept token...\n"));
|
||||
grammar_accept_token(file_format, n_vocab, grammar, id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue