sq_typing_v2)A small Albanian language model for FUTO Keyboard that does next-word prediction and autocorrect / word completion while you type. It is the same kind of model as FUTO's own English transformer model: a 35.5M-parameter Llama trained from scratch in FUTO's keystroke-mixing autocorrect format, so it corrects typos from where you actually tapped on the keyboard.
Part of FUTO Keyboard Polyglot, a patched FUTO Keyboard with Greek and Albanian models for voice input,
typing, dictionaries and dictation cleanup. The training tooling is in
training/typing-lm and the full model catalogue in
models/.
Needs FUTO Keyboard Polyglot. Stock FUTO Keyboard passes only
a–zkeystrokes to a transformer model, so this model does not work there. The Polyglot build's Unicode keystroke patch (patch 0001) fixes that, and you also have to turn on one Developer setting (below).
| File | What it is |
|---|---|
sq_typing_v2_Q8_0.gguf |
Recommended. For FUTO Keyboard Polyglot. GGUF, Q8_0, with FUTO's keyboardlm.* metadata. |
sq_typing_v1.1_Q8_0.gguf |
The previous version (v1 weights, fixed export). |
checkpoint-v2/ |
The v2 PyTorch checkpoint (same format as checkpoint/). |
checkpoint/ |
The v1 PyTorch checkpoint (🤗 Transformers LlamaForCausalLM, model.safetensors, fp32) and its SentencePiece tokenizer.model, for re-export or fine-tuning. |
LICENSE, ATTRIBUTION.md |
MIT licence and credits for the training data. |
sq_typing_v2_Q8_0.gguf to the phone: Settings → Languages & Models → open Albanian → import the .gguf as its
transformer (typing) model. You can also open the file from a file manager and choose FUTO Keyboard Polyglot.Suggestions should appear before you type, and typos and missing accents should be corrected as you type.
▁ (FUTO's inverted_space). Every letter of the
alphabet is its own piece, because the keyboard maps each key to that letter's token. Special tokens <XBU>,
<XBC>, <XEC> mark the autocorrect part of the input.keyboardlm.features): base_v1 inverted_space xbu_char_autocorrect_v1 char_embed_mixing_v1 lora_finetunable_v1; keyboardlm.languages = sq.<s> context <XBU> key key … <XBC> → word▁. Each keystroke is one input position holding a blend of the
embeddings of the 4 letter keys nearest the tap (char_embed_mixing_v1). Taps are simulated on the real FUTO
layout, with fuzzy taps, dropped, extra, swapped and doubled keys, the language's own misspellings and half-typed
words. A long-press diacritic is typed as the base letter, so the model learns to restore accents.The checkpoint/ loads as a plain LlamaForCausalLM (saved with Transformers 5.x; the config uses the newer
rope_parameters key) for next-word prediction. The autocorrect path needs FUTO's keystroke embedding mixing, which
is implemented in the keyboard, not in Transformers.
Measured the way FUTO runs the model, on held-out text never trained on. "Typos" means sloppy taps plus one keystroke error or phonetic misspelling; "half-typed word" means completing a word from its first letters.
v2 (top-3; v1 in brackets):
| Test | Next word | Clean typing | Typos | Half-typed word |
|---|---|---|---|---|
| Neutral text | 41.9% (41.0) | 96.5% (96.2) | 87.2% (87.1) | 73.4% (72.8) |
| Slang, insults, swearing | 31.8% (32.2) | 96.0% (97.4) | 77.5% (80.6) | 57.7% (54.6) |
greta44 misspellings, top-3, v2 (v1): all 58.4% (58.2); c/q/ç confusion 41.2% (23.5); digraph reduction (sh→s, gj→g …) 55.7% (52.2); case endings 51.7% (49.3); dropped final vowel 67.9% (53.6); extra letter 70.4% (69.8); transposed letters 61.4% (62.6); missing letter 49.1% (54.0).
v1 (top-1 / top-3):
| Test (top-1 / top-3) | Next word | Clean typing | Typos | Half-typed word |
|---|---|---|---|---|
| Neutral text (held-out web and Wikipedia text) | 27.8% / 41.0% | 91.2% / 96.2% | 74.7% / 87.1% | 55.3% / 72.8% |
| Slang, insults, swearing (held-out) | 19.0% / 32.2% | 88.5% / 97.4% | 63.0% / 80.6% | 32.2% / 54.6% |
On greta44/albanian-error-augmentation (2,495 linguist-made Albanian misspellings) the model puts the correct word in its top 3 for 58.2%. That data was not trained on, but its error types informed the model's synthetic typos.
These scores were measured on the PyTorch checkpoint. The Q8_0 GGUF agrees with it on 98-100% of top predictions in llama.cpp.
v2 is v1 fine-tuned for 300M more tokens (lr 2e-4, batch 128) with Albanian typing errors added to half of the autocorrect examples: c/q/ç mixed up (in any position), digraphs reduced (sh→s, gj→g, dh→d, nj→n, xh→x, zh→z, th→t, ll→l, rr→r), a wrong inflection ending that the context has to fix, and a dropped final vowel. Applying them to only half of the words kept v1's handling of ordinary slips (a first try that applied them everywhere lost 3-4 points on extra, missing and swapped letters). The remaining cost is missing letters (-5 points on greta44).
v1.1 is the same v1 weights with a fixed export. The first v1 GGUFs (shared privately, never published in the
catalogue) were written without the Q/K RoPE permutation llama.cpp needs, so in the keyboard they agreed with the
trained model on only about 40% of top predictions. v1.1 was re-exported with
training/typing-lm/export.py and checked in llama.cpp: 98-100%
agreement at Q8_0 (Q6_K was 94-97%, hence Q8_0). If you have an older sq_typing_v1 file, replace it.
| Source | Licence |
|---|---|
FineWeb-2 als_Latn (standard Albanian) and aln_Latn (Gheg) |
ODC-By 1.0; also subject to Common Crawl's Terms of Use |
Wikipedia 20231101.sq |
CC BY-SA 3.0 and GFDL |
| OpenSubtitles (OPUS), monolingual sq, v2024 | No licence of its own for the text (see caveats) |
| Shaj (Nurce, Keci, Derczynski) | CC-BY-4.0 |
| Our own informal-sentence list (slang, insults, swearing, Gheg forms) | Our own work (MIT) |
Evaluation only: greta44/albanian-error-augmentation (Apache-2.0).
What the licences on the training text mean for model weights is not settled law. In plain terms:
ATTRIBUTION.md.| File | Bytes | SHA-256 |
|---|---|---|
sq_typing_v2_Q8_0.gguf |
47,044,256 | 46a264d4cb418e8ffeff03d478326a231ce4d0199fc8c921f9ac769a6bc8a13b |
checkpoint-v2/model.safetensors |
141,862,848 | 8a91e2c724456e89ab0500c96ff55677833ba0f1142d9bcebe31ff0e73d70002 |
sq_typing_v1.1_Q8_0.gguf |
47,044,256 | 1a9ad13033c1a4cb7e9ae71d65865267621bd3932c16a6028cb9088d49947abe |
checkpoint/model.safetensors |
141,862,848 | 67f34875f7e45a471e38792930ae50096145bf9f4c87cfd5306f60b3e1dcb8f5 |
checkpoint/tokenizer.model |
258,653 | 960f753e01d388db643a1f03c5684393b4eb873c22ed381047c8e30fe197529d |
The same checksums are in SHA256SUMS (sha256sum -c SHA256SUMS). sq_typing_v1.1_Q8_0.gguf is byte-identical to the file in
the GitHub release models-v1.
The weights are MIT-licensed (trained from scratch; they are our own work); see LICENSE. Credits for the training
data are in ATTRIBUTION.md. The GGUF metadata layout follows
stamchry/greek-keyboard-lm (Apache-2.0), and the Unicode keystroke
patch is based on stamchry/android-keyboard.
Takedown or licence questions: open an issue in the GitHub repository.