Skip to content

Commit 04767e5

Browse files
maximevtushubergarm
authored andcommitted
fix: typos in documentation files (ggml-org#11791)
* Update ggml.c * Update arg.cpp * Update speculative.h
1 parent 9922053 commit 04767e5

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
@@ -679,7 +679,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
679679
));
680680
add_opt(common_arg(
681681
{"--no-context-shift"},
682-
string_format("disables context shift on inifinite text generation (default: %s)", params.ctx_shift ? "disabled" : "enabled"),
682+
string_format("disables context shift on infinite text generation (default: %s)", params.ctx_shift ? "disabled" : "enabled"),
683683
[](common_params & params) {
684684
params.ctx_shift = false;
685685
}

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
@@ -1385,7 +1385,7 @@ bool ggml_are_same_stride(const struct ggml_tensor * t0, const struct ggml_tenso
13851385
(t0->nb[3] == t1->nb[3]);
13861386
}
13871387

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

0 commit comments

Comments
 (0)