diff options
Diffstat (limited to 'src/llama.cpp')
-rw-r--r-- | src/llama.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/llama.cpp b/src/llama.cpp index 8823ab5b..c2769e32 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -23401,6 +23401,9 @@ struct llama_sampler_dry* llama_sampler_dry_clone(struct llama_sampler_dry* smpl } void llama_sampler_dry_accept(struct llama_sampler_dry* smpl, llama_token token) { + if (!smpl) { + return; + } if (smpl->dry_multiplier == 0.0f || smpl->dry_base < 1.0f || smpl->dry_penalty_last_n == 0) { return; } |