Repository navigation
llama: move suppress_tokens handling to common/sampling - #26276
Conversation
|
/bot review |
Automated code reviewReviewed Will slow the review (point 1) Behavioral change worth confirming in the description. Previously suppression was applied inside the gemma4 graph, so it was visible in the raw logits returned by
Nits / convention (point 2) (point 3) Public API addition ( Security / bounds (point 4) Attacker-controlled GGUF: No other correctness issues found. The merged-vector approach is fine even with duplicate ids (logit-bias is additive, This review was generated automatically by pi coding agent using |
ggerganov
left a comment
There was a problem hiding this comment.
The common_params_sampling::has_logit_bias() method can now be removed.
* llama: move suppress_tokens handling to common/sampling * address security issues * rm has_logit_bias
…e gemma4 suppress-tokens patch (superseded by upstream ggml-org#26276) # Conflicts: # src/models/gemma4.cpp
* llama: move suppress_tokens handling to common/sampling * address security issues * rm has_logit_bias
* llama: move suppress_tokens handling to common/sampling * address security issues * rm has_logit_bias
* llama: move suppress_tokens handling to common/sampling * address security issues * rm has_logit_bias
Overview
Move the
suppress_tokenslogits bias handling to common, so that it can be reused by other models (for example, #26254)Requirements