llama: move suppress_tokens handling to common/sampling (#26276)

* llama: move suppress_tokens handling to common/sampling

* address security issues

* rm has_logit_bias
This commit is contained in:
Xuan-Son Nguyen
2026-07-29 18:02:30 +02:00
committed by GitHub
parent caa596ab3f
commit afeebe103b
5 changed files with 32 additions and 44 deletions
-4
View File
@@ -294,10 +294,6 @@ struct common_params_sampling {
bool backend_sampling = false;
bool has_logit_bias() const {
return !logit_bias.empty();
}
// print the parameters into a string
std::string print() const;
};