From 6c2d980734a97464475d7566d2b3da87e108ddd5 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:12:41 +0100 Subject: [PATCH 1/3] Update ggml.c --- ggml/src/ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 3b4861542..e9f3420c2 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -1379,7 +1379,7 @@ bool ggml_are_same_stride(const struct ggml_tensor * t0, const struct ggml_tenso (t0->nb[3] == t1->nb[3]); } -// check if t1 can be represented as a repeatition of t0 +// check if t1 can be represented as a repetition of t0 bool ggml_can_repeat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); From 41a93067ddb69b53452c7dc96b1ff0afdcc94809 Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:13:12 +0100 Subject: [PATCH 2/3] Update arg.cpp --- common/arg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/arg.cpp b/common/arg.cpp index 152f671ab..f7af09c71 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -674,7 +674,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex )); add_opt(common_arg( {"--no-context-shift"}, - string_format("disables context shift on inifinite text generation (default: %s)", params.ctx_shift ? "disabled" : "enabled"), + string_format("disables context shift on infinite text generation (default: %s)", params.ctx_shift ? "disabled" : "enabled"), [](common_params & params) { params.ctx_shift = false; } From c7385eb24d424c7253048887b6e126ded19fa2ed Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:13:47 +0100 Subject: [PATCH 3/3] Update speculative.h --- common/speculative.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/speculative.h b/common/speculative.h index 50ec03446..2baf99fc7 100644 --- a/common/speculative.h +++ b/common/speculative.h @@ -9,7 +9,7 @@ struct common_speculative_params { int n_draft = 16; // max drafted tokens int n_reuse = 256; - float p_min = 0.9f; // min probabiliy required to accept a token in the draft + float p_min = 0.9f; // min probability required to accept a token in the draft }; struct common_speculative * common_speculative_init(struct llama_context * ctx_dft);