Skip to content

Commit ea89ace

Browse files
maximevtushtinglou
authored andcommitted
fix: typos in documentation files (ggml-org#11791)
* Update ggml.c * Update arg.cpp * Update speculative.h
1 parent 4c17b63 commit ea89ace

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

common/arg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
674674
));
675675
add_opt(common_arg(
676676
{"--no-context-shift"},
677-
string_format("disables context shift on inifinite text generation (default: %s)", params.ctx_shift ? "disabled" : "enabled"),
677+
string_format("disables context shift on infinite text generation (default: %s)", params.ctx_shift ? "disabled" : "enabled"),
678678
[](common_params & params) {
679679
params.ctx_shift = false;
680680
}

common/speculative.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct common_speculative_params {
99
int n_draft = 16; // max drafted tokens
1010
int n_reuse = 256;
1111

12-
float p_min = 0.9f; // min probabiliy required to accept a token in the draft
12+
float p_min = 0.9f; // min probability required to accept a token in the draft
1313
};
1414

1515
struct common_speculative * common_speculative_init(struct llama_context * ctx_dft);

ggml/src/ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ bool ggml_are_same_stride(const struct ggml_tensor * t0, const struct ggml_tenso
13791379
(t0->nb[3] == t1->nb[3]);
13801380
}
13811381

1382-
// check if t1 can be represented as a repeatition of t0
1382+
// check if t1 can be represented as a repetition of t0
13831383
bool ggml_can_repeat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) {
13841384
static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
13851385

0 commit comments

Comments
 (0)