Blazing Kiwi (English, 135M class)
Blazing Kiwi (version 1.1) is a small English chat model that runs entirely in the browser on flyingkiwi.yunusemrevurgun.com and looks answers up in an offline library of 49,690 Wikipedia summaries. It is the site's default English model; the larger Flyingkiwi-EN-0.6B stays available in the model menu. The full method is in TECHNICAL_REPORT.md (also as a web page).
| Base | SmolLM2-135M-Instruct (revision 12fd25f7), Llama layout: 30 layers, width 576, 9/3 heads of 64, SwiGLU 1,536, RoPE θ = 100,000, tied embedding |
| Parameters | 122,215,680 (vocabulary cut from 49,152 to 27,799 tokens) plus a 147,712-parameter recall head |
| Browser file | blazing-kiwi-q4.fkm, 69,497,600 bytes: every matrix, the embedding included, in 4 bits with one fp16 scale per 32 values |
| Library | library/, 49,690 entries, 10.6 MB as downloaded (CC BY-SA 4.0, see below) |
| Download per visit | 80.9 MB in total (80,898,745 bytes), against 571 MB for Flyingkiwi-EN-0.6B |
| Speed and memory | 98–134 tokens/s in Chrome on a laptop processor (AMD Ryzen 5 7530U, six threads), against 29–35 for Flyingkiwi-EN-0.6B in the same test; peak tab memory 509 MB against 1,237 MB |
| Chat format | ChatML; an optional library turn after the user's message carries the notes |
What is different
- Vocabulary surgery. Only the tokens English chat and the library use (closed over BPE merges) are kept, sized so that the 4-bit file stays under 70,000,000 bytes with all 30 layers.
- A recall head. The residual stream after layer 24, RMS-normalised per token and averaged over the user's message, times a 256 × 576 matrix gives 256 numbers whose signs are the message's key into the library.
- Hybrid retrieval in the model's own alphabet. The library stores passages as token ids of this model's
vocabulary, each title in three surface forms. In the browser, a freestanding C module (
engine/kiwi-recall.c, 8 KB of WebAssembly) builds a BM25 index over those ids at load time and scores every entry with BM25 + 32 × (agreeing − differing key bits) / 256 + a title bonus (8 / 4 / 4), in about 0.3 ms. The best two entries become notes, the next three are offered by title. - Reading notes. Trained on 30,210 teacher-written conversations (Qwen3.5-35B-A3B) and on the token distributions of
a fine-tuned SmolLM2-1.7B-Instruct, to use notes that answer the question, ignore those that do not and end with
Read more: [[Title]]. A decoder automaton allows only offered titles inside[[...]], and the notes' own tokens get a logit bonus of 2 while the answer is written. - Trained for 4 bits. The last part of training ran every matrix through the exact 4-bit quantiser (quantisation-aware training), so the shipped file is the trained model.
Use
In the browser: flyingkiwi.yunusemrevurgun.com (English, the default
model). With transformers, the notes go in a library turn after the user's message (format in the technical
report, section 2.6):
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("yunusemrejr/BlazingKiwi-EN-135M")
model = AutoModelForCausalLM.from_pretrained("yunusemrejr/BlazingKiwi-EN-135M")
SYSTEM = ( # the system prompt the model was trained with
"You are Blazing Kiwi, a small and fast AI assistant made by Yunus Emre Vurgun. You run entirely "
"on the user's device, so you cannot browse the internet, open links or know today's date. Notes "
"from your built-in offline library may follow the user's message: use them when they answer the "
"question and cite the page as [[Title]]; ignore them when they do not. Be friendly, clear and "
"concise. Be truthful: if you are not sure, say so instead of guessing, and politely correct "
"false assumptions. Use Markdown when it helps."
)
messages = [
{"role": "system", "content": SYSTEM},
{"role": "user", "content": "What does chlorophyll do?"},
{"role": "library", "content": "[[Chlorophyll]] Green pigments found in plants, algae and bacteria\n"
"Chlorophyll is any of several related ... Chlorophyll allows plants to absorb energy from light."},
]
ids = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
out = model.generate(ids, max_new_tokens=200, do_sample=False, repetition_penalty=1.1)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True))
model.safetensors holds the latent weights that quantisation-aware training updated; the website runs their 4-bit
codes (q4_weights.safetensors, the same numbers as blazing-kiwi-q4.fkm), so its replies can differ slightly. The
site's system prompt and the retrieval code are in browser/ and engine/.
Versions
| Version | Date | What changed | Hugging Face revision |
|---|---|---|---|
| 1.1 (this revision) | 31 October 2026 | 9,418 more teacher conversations on false premises, ambiguity, honesty, memory and short reasoning; the 1.0 model continued with 4-bit QAT for two epochs; new recall head and library keys | this one |
| 1.0 | 31 October 2026 | first release | edd36330 |
Measured results
Greedy decoding; answers graded blind by Claude Haiku subagents against written criteria, all answers to a case in
one packet (details in TECHNICAL_REPORT.md and evaluation/).
| Test | Blazing Kiwi 1.1 | Blazing Kiwi 1.0 | Flyingkiwi-EN-0.6B | Qwen3-0.6B (unchanged) |
|---|---|---|---|---|
| 200 questions about held-out library passages, correct | 120 | 103 | 25 (no library) | |
| Same, answers flagged for invented details | 60 | 76 | 134 | |
| Frozen set, 100 reasoning and conversation cases | 25 | 25 | 66 | 64 |
| Frozen set, answers flagged for invented details | 20 | 19 | 4 | 4 |
On the library questions 1.1 was right where 1.0 was wrong 40 times and the reverse 23 times (sign test p = 0.043); on the frozen set it was 6 against 6. The rule written before 1.1 was trained, a higher frozen score than 1.0, was therefore not met; 1.1 replaced 1.0 because it ties there and is better on library questions with fewer invented details. In 1.0's own grading, its library score was 100 with the copy bonus, 58 without it and 8 without the library. TruthfulQA MC1 (817 questions): 24.7% (1.0: 25.5%; Flyingkiwi-EN-0.6B 25.1%; Qwen3-0.6B 25.8%).
Larger models of the same family, unchanged and graded with Blazing Kiwi on the same frozen set, score 30 (SmolLM2-360M-Instruct) and 73 (SmolLM2-1.7B-Instruct). Two training runs at this size both scored 25: at 70 MB the number of weights sets the ceiling on general ability.
Retrieval, on the held-out half of two question sets: the right entry is among the two notes for 94.1% of questions written from unseen passages (word-level BM25 over the same library: 87.8%; the keys alone: 40.0%) and for 97.5% of short questions that name a title. Engine fidelity against PyTorch running the same 4-bit codes, 30 prompts: mean KL 0.0014 (native), 0.0007 (WebAssembly SIMD), 0.0008 (relaxed SIMD), same top token in every case; recall keys agree on 254.0 of 256 bits on average.
Limitations
- Much weaker than the 0.6B models at arithmetic, short logic, false premises, ambiguity and conversation, and it invents details more often; a second training run aimed at these did not change that. Do not use it for sums or for advice that matters.
- The library holds the openings of 49,690 English Wikipedia articles as of 30 October 2026. Other subjects, details beyond an article's opening and recent events are not there.
- Even with the right note, about half of the library answers are fully correct; the usual error is a wrong date, work or place added to a correct summary. A citation shows which page the model was given, not that the sentence is supported by it.
- Answer formats (cards, flowcharts, tables, ...) always come out complete, but their text is only as good as the model's; card titles can be garbled.
- English only. Evaluated on 100 + 200 cases graded by a model, and timed on one laptop processor, not on phones.
Files
| Path | Contents |
|---|---|
model.safetensors, config.json, tokenizer.json, chat_template.jinja | BF16 checkpoint (LlamaForCausalLM), loads with transformers |
q4_weights.safetensors | The exact 4-bit codes and scales the browser runs, embedding included |
recall_head.safetensors | Query and document projections (256 × 576 each) and the layer (metadata) |
blazing-kiwi-q4.fkm | The browser file (engine format version 2) |
library/ | library.jsonl.gz (text and sources), library.fkl.gz (the browser library), licence note |
engine/ | C engine, library controller, answer-format controller, converters; engine/wasm/ the exact WebAssembly builds |
browser/ | The JavaScript modules that wire them together on the site |
evaluation/ | Retrieval, blind-evaluation and engine-fidelity results |
Licences
The model weights are a derivative of SmolLM2-135M-Instruct (Apache-2.0) and are released under the Apache License 2.0
(LICENSE, NOTICE). Training answers came from Qwen3.5-35B-A3B (Apache-2.0) for public prompts (OASST2, Aya,
GSM8K, TriviaQA) and for questions about the library. The library in library/ is derived from Wikipedia (text by
Wikipedia contributors) and is licensed under CC BY-SA 4.0; short descriptions come from Wikidata (CC0).
Made by Yunus Emre Vurgun as part of the Flyingkiwi project.