summaryrefslogtreecommitdiff
path: root/common/sampling.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/sampling.h')
-rw-r--r--common/sampling.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/sampling.h b/common/sampling.h
index fdfa9eed..f16ef97e 100644
--- a/common/sampling.h
+++ b/common/sampling.h
@@ -36,6 +36,9 @@ typedef struct llama_sampling_params {
float cfg_scale = 1.f; // how strong is guidance
std::unordered_map<llama_token, float> logit_bias; // logit bias for specific tokens
+
+ std::vector<llama_token> penalty_prompt_tokens;
+ bool use_penalty_prompt_tokens = false;
} llama_sampling_params;
// general sampler context