nkthebass commited on
Commit
9e7a2ce
·
verified ·
1 Parent(s): cca49d1

Card: document GGUF add_space_prefix=false + leading-space template fix (#23840)

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -95,7 +95,9 @@ ids = tok.apply_chat_template([{"role":"user","content":"A theater has 56 rows w
95
  add_generation_prompt=True, return_tensors="pt")
96
  print(tok.decode(m.generate(ids, max_new_tokens=256, do_sample=False)[0][ids.shape[1]:], skip_special_tokens=True))
97
  ```
98
- GGUF file (`*-F16.gguf`) works directly in LM Studio / Ollama / llama.cpp.
 
 
99
 
100
  ### Prompting tips
101
 
 
95
  add_generation_prompt=True, return_tensors="pt")
96
  print(tok.decode(m.generate(ids, max_new_tokens=256, do_sample=False)[0][ids.shape[1]:], skip_special_tokens=True))
97
  ```
98
+ GGUF file (`*-F16.gguf`) works directly in LM Studio / Ollama / llama.cpp — use the model's built-in chat template as-is.
99
+
100
+ > **GGUF tokenization fix (this release):** the F16 GGUF now sets `tokenizer.ggml.add_space_prefix=false` and ships a **leading-space chat template**, so llama.cpp tokenizes the chat format **token-for-token identically to the native SentencePiece tokenizer**. This fixes a prior export mismatch (llama.cpp [#23840](https://github.com/ggml-org/llama.cpp/issues/23840): the default `add_space_prefix=true` injects phantom `▁` around special tokens) that garbled arithmetic in GGUF apps. Multi-digit **add/subtract now compute correctly in-app** (e.g. `56321 − 28479 → 27842`). Note: multiplication is the model's **fp16-precision soft spot** — it's stronger in fp32 than at the fp16 the GGUF runs — so hard multiplies can still miss.
101
 
102
  ### Prompting tips
103