summaryrefslogtreecommitdiff
path: root/examples/llava
diff options
context:
space:
mode:
authorRichard Kiss <him@richardkiss.com>2023-12-12 01:53:36 -0800
committerGitHub <noreply@github.com>2023-12-12 11:53:36 +0200
commit9494d7c4774ab745490b5a19570ff7747a194143 (patch)
treeec70be73a544a7cf30a17a0430b87d89a269d188 /examples/llava
parent6138963fb232cbae70c9d181db0ba125708f473d (diff)
english : use `typos` to fix comments and logs (#4354)
Diffstat (limited to 'examples/llava')
-rw-r--r--examples/llava/clip.cpp2
-rw-r--r--examples/llava/convert-image-encoder-to-gguf.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp
index fc0656c2..4bb7b93b 100644
--- a/examples/llava/clip.cpp
+++ b/examples/llava/clip.cpp
@@ -739,7 +739,7 @@ bool clip_image_preprocess(const clip_ctx * ctx, const clip_image_u8 * img, clip
temp->ny = longer_side;
temp->size = 3 * longer_side * longer_side;
temp->data = new uint8_t[temp->size]();
- uint8_t bc[3] = {122, 116, 104}; // bakground color in RGB from LLaVA
+ uint8_t bc[3] = {122, 116, 104}; // background color in RGB from LLaVA
// fill with background color
for (size_t i = 0; i < temp->size; i++) {
diff --git a/examples/llava/convert-image-encoder-to-gguf.py b/examples/llava/convert-image-encoder-to-gguf.py
index 729aaef8..03688e0e 100644
--- a/examples/llava/convert-image-encoder-to-gguf.py
+++ b/examples/llava/convert-image-encoder-to-gguf.py
@@ -51,7 +51,7 @@ def bytes_to_unicode():
The reversible bpe codes work on unicode strings.
This means you need a large # of unicode characters in your vocab if you want to avoid UNKs.
When you're at something like a 10B token dataset you end up needing around 5K for decent coverage.
- This is a signficant percentage of your normal, say, 32K bpe vocab.
+ This is a significant percentage of your normal, say, 32K bpe vocab.
To avoid that, we want lookup tables between utf-8 bytes and unicode strings.
And avoids mapping to whitespace/control characters the bpe code barfs on.
"""