Franok 0.6.0
Franok is an experimental English–Turkish language model by Yunus Emre Vurgun. Its 48,472,816 parameters were trained from random initialization. It has no base model and uses no distilled weights. Teacher-written dialogues are part of the training data.
Browser chat · Ubuntu installer · Source on GitHub
Files
Model files are in releases/v0.6.0/. Use the tokenizer and tensor manifest from the same release as the weights. Each tensor manifest records the configuration, tensor layout, file length and SHA-256.
| Files | Use |
|---|---|
model.q4, model-q4.json | 34.85 MB weights; the browser default |
model.q8, model-q8.json | Higher-precision quantized weights; the Ubuntu app default |
model.f32, model-f32.json | Float32 export and its tensor layout |
tokenizer.json | English–Turkish byte-level BPE tokenizer, shared across formats |
LICENSE | MIT licence for the model weights |
The Ubuntu app is available as franok_0.6.0_amd64.deb on GitHub Releases. Earlier weights and adapters are available at the 0.3 and 0.4 revisions.
How it works
Franok writes one token, a small piece of text, at a time and feeds each one back in to predict the next: an autoregressive, decoder-only model. Its 16,384-entry byte-level BPE vocabulary was fitted on English and Turkish together, and many Turkish words split along their suffixes (Evlerimizden → Ev · ler · imiz · den). Each token becomes 512 numbers, and twelve layers refine them. Every layer first gathers information from earlier tokens with one of three kinds of memory, then transforms it with a SwiGLU feed-forward network of hidden width 1,408. The output scores reuse the input embedding matrix (tied embeddings).
| Layer | 1–3 | 4 | 5–7 | 8 | 9–11 | 12 |
|---|---|---|---|---|---|---|
| Memory | Delta | Window | Delta | Window + Echo | Delta | Window |
- Sliding window: the last page, word for word. Sliding-window attention over the latest 512 tokens, with eight query heads sharing two key/value heads of width 64 (grouped-query attention), RMS-normalized queries and keys (QK-RMSNorm) and rotary position embeddings (RoPE). Work per token stops growing once the window is full.
- Delta memory: a running summary. Gated DeltaNet layers keep four 128 × 128 matrices each. For every token the state decays, then stores the difference between the new value and what it already returned for that key (the gated delta rule). A causal convolution of width four sharpens the inputs. The state never grows; old details blur.
- Echo: what followed last time. In layer 8, Echo finds up to two earlier exact matches for each suffix of one to four tokens, most recent first, within the last 262,144 positions. Each match contributes the value of the token right after it, and a learned null slot lets Echo ignore all of them. Transformers often learn this copy pattern implicitly as induction heads; Echo builds it in as exact matching.
Only Echo's per-position key and value store grows with session length, up to its cap. The architecture guide explains each part in plain words, then gives the equations and state layout.
Training and tokenizer
All weights started random. Training showed the model text and asked it to predict every next token; the cross-entropy loss measured its surprise, and the optimizer adjusted the weights to reduce it. Pretraining ran for 180.13 minutes on one A100 80 GB GPU at about 221,000 tokens per second, processing 2.33 billion tokens. The 3.78-billion-token training corpus drew from 16 sources, weighted 52% English and 48% Turkish. Training used bfloat16, Muon for eligible weight matrices and AdamW for the other parameters, with a warmup–stable–decay schedule tied to the time budget.
Supervised fine-tuning (SFT) then trained on conversations, scoring only the assistant's tokens: 135 million tokens in 2,048-token rows, then 65 million tokens in 8,192-token sessions that join up to 20 conversations. Every fifth long session gives a locker number at the start and asks for it at the end, beyond the 512-token window. SFT used 134,769 conversations per language, filtered against the held-out tests.
The byte-level BPE tokenizer was fitted to a sample of the training sources. The table reports mean UTF-8 bytes per token on held-out text; higher values mean fewer tokens for the same text.
| Text | 16,384 entries | 8,192 entries |
|---|---|---|
| English | 3.63 | 3.26 |
| Turkish | 3.92 | 3.49 |
| Code | 3.64 | 3.37 |
| Chat | 3.95 | 3.52 |
See training objectives and reproduction commands and the data guide for source revisions and splits.
Inference
The C runtime compiles to WebAssembly SIMD and relaxed SIMD. It uses int8 activations and Q4 or Q8 weights in groups of 32. With cross-origin isolation, up to four threads share memory and split the matrix work with bit-identical results. Without isolation, the runtime uses one thread. Prompt prefill processes blocks of 16 tokens. A follow-up that extends the live state or a saved snapshot processes only new tokens. If neither can be reused, the runtime replays the prompt.
On an AMD Ryzen 5 7530U, Node WASM with relaxed SIMD and four threads measured Q4 decode at 434.4 tokens/s at position 32 and prefill at 953 tokens/s. With one thread, Q4 measured 174.6 tokens/s decode and 550 tokens/s prefill. See the 0.6 evaluation for Q8 and longer prefixes.
The browser and Ubuntu chat search earlier turns in the current conversation. Search starts with word matches; Search by meaning across English and Turkish combines word matches with similarity scores from a separate encoder. This ranks turns for the search interface, independently of the language model and its Echo layer.
Evaluation and limitations
| Measurement | Franok 0.6.0 |
|---|---|
| Reading comprehension | Belebele: EN 25.8% (31/120), TR 28.3% (34/120); four-choice chance is 25% |
| Extractive question answering | XQuAD: EN 0.0% exact / 8.1% F1, TR 3.1% exact / 11.0% F1 |
| Language modelling | EN 1.137, TR 1.049 bits per byte |
| Conversation | Blind-judge RUBRIC on 50 turns: 29/50; Franok 0.5 14/50; LFM2-350M 10/50 |
| Recall | 0/24 exact per language at each tested length, with Echo on and off |
| Training and validation loss | Pretraining held-out mean 2.0827 nats; short SFT loss 1.794 → 1.170; long SFT loss 1.166 |
A matching Echo suffix gives the model access to an earlier value; it does not guarantee that the reply repeats it or answers correctly. Verify important answers independently. The Franok 0.6 evaluation gives methods and full results.
Licence and attribution
The code and trained weights are MIT licensed. Datasets retain their upstream licences. Training includes Marul-SFT-TR by Ahmet Karakuş (Marul AI) and selected dialogues from Franok's 0.5 archive. That archive includes dialogues written by Gemma 4 26B and Gemma 4 31B. The data guide lists the upstream dataset authors, licences and pinned sources.