aboutsummaryrefslogtreecommitdiff
path: root/examples/main
diff options
context:
space:
mode:
authorGuillaume "Vermeille" Sanchez <Guillaume.V.Sanchez@gmail.com>2023-07-21 12:58:36 +0200
committerGitHub <noreply@github.com>2023-07-21 13:58:36 +0300
commitab0e26bdfb7b3adb1e3145c61a0fa92d1abd21d0 (patch)
tree84420ac76f4de9304ab23a9835c4feca03171fed /examples/main
parent73643f5fb1136dc2b65ae910bdc5a431520d70a2 (diff)
llama : remove cfg smooth factor as it is only a reparameterization of the guidance scale (#2280)
Diffstat (limited to 'examples/main')
-rw-r--r--examples/main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp
index bcbcf12..656382f 100644
--- a/examples/main/main.cpp
+++ b/examples/main/main.cpp
@@ -557,7 +557,7 @@ int main(int argc, char ** argv) {
llama_token_data_array candidates_p = { candidates.data(), candidates.size(), false };
if (ctx_guidance) {
- llama_sample_classifier_free_guidance(ctx, &candidates_p, ctx_guidance, params.cfg_scale, params.cfg_smooth_factor);
+ llama_sample_classifier_free_guidance(ctx, &candidates_p, ctx_guidance, params.cfg_scale);
}
// Apply penalties