Просмотр исходного кода

fix: typos in documentation files (#11791)

* Update ggml.c

* Update arg.cpp

* Update speculative.h
Maxim Evtush 11 месяцев назад
Родитель
Сommit
7b891bdc86
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      common/arg.cpp
  2. 1 1
      common/speculative.h
  3. 1 1
      ggml/src/ggml.c

+ 1 - 1
common/arg.cpp

@@ -674,7 +674,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
     ));
     ));
     add_opt(common_arg(
     add_opt(common_arg(
         {"--no-context-shift"},
         {"--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) {
         [](common_params & params) {
             params.ctx_shift = false;
             params.ctx_shift = false;
         }
         }

+ 1 - 1
common/speculative.h

@@ -9,7 +9,7 @@ struct common_speculative_params {
     int n_draft = 16;  // max drafted tokens
     int n_draft = 16;  // max drafted tokens
     int n_reuse = 256;
     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);
 struct common_speculative * common_speculative_init(struct llama_context * ctx_dft);

+ 1 - 1
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]);
         (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) {
 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");
     static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");