Skip to content

Commit 92f7da0

Browse files
marcelpetricktaronaeoCISC
authored
chore : correct typos [no ci] (ggml-org#20041)
* fix(docs): correct typos found during code review Non-functional changes only: - Fixed minor spelling mistakes in comments - Corrected typos in user-facing strings - No variables, logic, or functional code was modified. Signed-off-by: Marcel Petrick <[email protected]> * Update docs/backend/CANN.md Co-authored-by: Aaron Teo <[email protected]> * Revert "Auxiliary commit to revert individual files from 846d1c3" This reverts commit 02fcf0c7db661d5ff3eff96b2b2db9fdb7213256. * Update tests/test-backend-ops.cpp Co-authored-by: Sigbjørn Skjæret <[email protected]> * Update tests/test-backend-ops.cpp Co-authored-by: Sigbjørn Skjæret <[email protected]> --------- Signed-off-by: Marcel Petrick <[email protected]> Co-authored-by: Aaron Teo <[email protected]> Co-authored-by: Sigbjørn Skjæret <[email protected]>
1 parent 7a99dc8 commit 92f7da0

81 files changed

Lines changed: 160 additions & 160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Maintainers reserve the right to decline review or close pull requests for any r
159159
160160
# Code maintenance
161161
162-
- Existing code should have designated collaborators and/or maintainers specified in the [CODEOWNERS](CODEOWNERS) file reponsible for:
162+
- Existing code should have designated collaborators and/or maintainers specified in the [CODEOWNERS](CODEOWNERS) file responsible for:
163163
- Reviewing and merging related PRs
164164
- Fixing related bugs
165165
- Providing developer guidance/support

common/arg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
23992399
params.fit_params = false;
24002400
} else {
24012401
throw std::runtime_error(
2402-
string_format("error: unkown value for --fit: '%s'\n", value.c_str()));
2402+
string_format("error: unknown value for --fit: '%s'\n", value.c_str()));
24032403
}
24042404
}
24052405
).set_env("LLAMA_ARG_FIT"));

common/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ std::string common_detokenize(
869869
// Embedding utils
870870
//
871871

872-
// TODO: repace embd_norm with an enum
872+
// TODO: replace embd_norm with an enum
873873
void common_embd_normalize(const float * inp, float * out, int n, int embd_norm);
874874

875875
float common_embd_similarity_cos(const float * embd1, const float * embd2, int n);

common/debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ template <bool abort_on_nan> void common_debug_print_tensor(uint8_t * data, ggml
1818
// prints tensors that are processed in the computation graph
1919
// by default prints all tensors, but can be configured by creating a `base_callback_data` instance with
2020
// non-empty filter_patterns. See examples/debug.ccp for possible usage patterns
21-
// The template parameter determins whether an error should be thrown whenever a NaN is encountered
21+
// The template parameter determines whether an error should be thrown whenever a NaN is encountered
2222
// in a tensor (useful for stopping debug sessions on first erroneous tensor)
2323
// The callback data will be passed as the third parameter (user_data)
2424
template <bool abort_on_nan> bool common_debug_cb_eval(struct ggml_tensor * t, bool ask, void * user_data);

common/jinja/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The llama.cpp Jinja engine introduces `jinja::string` (see `jinja/string.h`), wh
6363
- **One-to-many** (e.g., split): result is marked `is_input` **only if ALL** input parts are marked `is_input`
6464
- **Many-to-one** (e.g., join): same as one-to-many
6565

66-
For string concatenation, string parts will be appended to the new string as-is, while perserving the `is_input` flag.
66+
For string concatenation, string parts will be appended to the new string as-is, while preserving the `is_input` flag.
6767

6868
**Enabling Input Marking:**
6969

convert_hf_to_gguf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4031,7 +4031,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
40314031
# split Conv3D into Conv2Ds
40324032
c1, c2, kt, kh, kw = data_torch.shape
40334033
del c1, c2, kh, kw # unused
4034-
assert kt == 2, "Current implmentation only support temporal_patch_size of 2"
4034+
assert kt == 2, "Current implementation only support temporal_patch_size of 2"
40354035
yield (gguf.TENSOR_NAMES[gguf.MODEL_TENSOR.V_ENC_EMBD_PATCH] + ".weight" , data_torch[:, :, 0, ...])
40364036
yield (gguf.TENSOR_NAMES[gguf.MODEL_TENSOR.V_ENC_EMBD_PATCH] + ".weight.1", data_torch[:, :, 1, ...])
40374037
else:
@@ -5404,7 +5404,7 @@ def set_gguf_parameters(self):
54045404
# Get ssm_d_conv from linear_attn_config.short_conv_kernel_size or ssm_d_conv
54055405
linear_attn_config = self.hparams["linear_attn_config"]
54065406
# n_head == 0 for KDA layers, n_head > 0 for MLA layers
5407-
# full_attention_layers list will be used to distingush layer type
5407+
# full_attention_layers list will be used to distinguish layer type
54085408
_num_kv_heads = list()
54095409
_full_attn_layers = linear_attn_config["full_attn_layers"]
54105410
for il in range(self.hparams["num_hidden_layers"]):
@@ -6505,7 +6505,7 @@ def set_gguf_parameters(self):
65056505
super().set_gguf_parameters()
65066506
hparams = self.hparams
65076507
self.gguf_writer.add_clip_projector_type(gguf.VisionProjectorType.GEMMA3)
6508-
# default values below are taken from HF tranformers code
6508+
# default values below are taken from HF transformers code
65096509
self.gguf_writer.add_vision_attention_layernorm_eps(hparams.get("layer_norm_eps", 1e-6))
65106510
self.gguf_writer.add_vision_use_gelu(True)
65116511
# calculate proj_scale_factor (used by tinygemma3 test model)
@@ -7097,7 +7097,7 @@ def modify_tensors(self, data_torch: Tensor, name: str, bid: int | None) -> Iter
70977097

70987098
if bid == 0 and "time_mix_a" in new_name:
70997099
# dummy v0/v1/v2 on first layer
7100-
# easist way to make llama happy
7100+
# easiest way to make llama happy
71017101
yield (new_name.replace("time_mix_a", "time_mix_v"), data_torch)
71027102

71037103
yield (new_name, data_torch)
@@ -9596,7 +9596,7 @@ def __init__(self, *args, **kwargs):
95969596
# NOTE: Explicitly include hparam prefix prefix for d_model to
95979597
# disambiguate with top-level head_dim
95989598
# NOTE 2: If needed for future models, this can be isolated in a method
9599-
# to separate the prefix setting and teh keys used
9599+
# to separate the prefix setting and the keys used
96009600
self.d_model = self.find_hparam([f"{self.hparam_prefixes[0]}_head_dim", "hidden_size", "d_model"])
96019601
self.n_group = self.find_hparam(["n_groups", "num_groups"])
96029602
self.d_inner = self.find_hparam(["expand", "num_heads"]) * self.d_model
@@ -9743,7 +9743,7 @@ def set_gguf_parameters(self):
97439743
self.gguf_writer.add_value_length(self.head_dim)
97449744

97459745
# Set feed_forward_length
9746-
# NOTE: This will trigger an override warning. This is preferrable to
9746+
# NOTE: This will trigger an override warning. This is preferable to
97479747
# duplicating all the parent logic
97489748
if not self.is_moe:
97499749
n_ff = self.find_hparam(["intermediate_size", "n_inner", "hidden_dim"])

docs/backend/CANN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
**Llama.cpp + CANN**
2222

23-
The llama.cpp CANN backend is designed to support Ascend NPU. It utilize the ability of AscendC and ACLNN which are intergrated to CANN Toolkit and kernels to using Ascend NPU directly.
23+
The llama.cpp CANN backend is designed to support Ascend NPU. It utilize the ability of AscendC and ACLNN which are integrated to CANN Toolkit and kernels to using Ascend NPU directly.
2424

2525
## News
2626

@@ -210,7 +210,7 @@ docker run --name llamacpp --device /dev/davinci0 --device /dev/davinci_manager
210210
# and install driver.
211211
sudo sh Ascend-hdk-910b-npu-firmware_x.x.x.x.X.run --full
212212
```
213-
If the following messaage appers, firmware is installed successfully.
213+
If the following message appears, firmware is installed successfully.
214214
```sh
215215
Firmware package installed successfully!
216216
```

docs/backend/SYCL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ use 1 SYCL GPUs: [0] with Max compute units:512
708708

709709
- Remove **build** folder or try a clean-build.
710710

711-
- I can **not** see `[ext_oneapi_level_zero:gpu]` afer installing the GPU driver on Linux.
711+
- I can **not** see `[ext_oneapi_level_zero:gpu]` after installing the GPU driver on Linux.
712712

713713
Please double-check with `sudo sycl-ls`.
714714

docs/backend/snapdragon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Llama-3.2-1B-Instruct-Q4_0.gguf: 1 file pushed, 0 skipped. 38.3 MB/s (773025920
116116
### Windows
117117

118118
All artifacts are already installed in the `pkg-snapdragon` folder.
119-
To run, adapt below instructions to use Powershell scrits in `scripts/snapdragon/windows`.
119+
To run, adapt below instructions to use Powershell scripts in `scripts/snapdragon/windows`.
120120

121121
## How to Run
122122

docs/backend/snapdragon/windows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Once the build is complete HTP ops libraries will be installed like this
144144
-a---- 1/22/2026 6:01 PM 4139 libggml-htp.cat
145145
```
146146

147-
The .cat file, the signature and proper certicate installation can be verified with
147+
The .cat file, the signature and proper certificate installation can be verified with
148148

149149
```
150150
> signtool.exe verify /v /pa .\pkg-snapdragon\lib\libggml-htp.cat

0 commit comments

Comments
 (0)