grayling-49m

A small model that suggests the next word while you type, in about 200 languages. It has 49 million parameters and is fast enough to run at every key on an ordinary processor, with no graphics card.

It is the model of Grayling, autocomplete for every app on your computer. It only continues the text you give it: it is not a chat model. (It was called hydor-suggest-49m until 30 November 2026; that address leads here.)

Use it

In an app. Install Grayling (macOS, Windows, Linux). It downloads this model by itself.

In your own program.

pip install grayling
from grayling import Engine, download

engine = Engine.load(download(), threads=4)      # downloads this model (about 0.3 GB), once

for text in ["Please let me know if you have any ques",
             "Buenos días, quería preguntarte si podrías enviarme el docu",
             "Können Sie mir bitte die Unterla",
             "Thank you for your "]:                # ends with a space: the next word
    r = engine.suggest(text=text, precision=0.3)
    print(repr(text), "->", repr(r["word"]), f"sure {r['conf']:.2f}", "show" if r["show"] else "stay quiet")
'Please let me know if you have any ques' -> 'tions.' sure 0.49 show
'Buenos días, quería preguntarte si podrías enviarme el docu' -> 'mento' sure 0.77 show
'Können Sie mir bitte die Unterla' -> 'gen' sure 0.88 show
'Thank you for your ' -> 'help.' sure 0.05 stay quiet

word is what to add after the text; show says whether the model is sure enough to show it. It is not a transformers model: Grayling's own engine runs it. More in the Python README; there are packages for npm and Rust, and a local HTTP API.

How good it is

The share of the keys that the first suggestion saves, with the same sentences typed key by key into each program (FLORES-200 sentences it never saw: English, and Spanish, German, French, Portuguese, Italian, Greek, Polish and Turkish):

English 8 other languages
Grayling (this model with Qwen3.5-0.8B) 45% 35%
This model alone 31% 20%
iPhone keyboard 35% 31%
Gboard (Android) 28% 27%

These were measured with version 2; version 3 saves a little more on its own. It takes about 20 ms a key on 4 cores and under 0.5 GB of memory with its files. It can also learn from your own typing, on your computer: your text never leaves it. All the numbers, with intervals, are in Grayling's results.

How it was made

  • A small network of short convolutions and attention (48.8 million parameters) with Qwen3.5's tokenizer, so it can be mixed with Qwen3.5.
  • Pretrained on public web text in about 200 languages (49 billion tokens), with extra weight on the languages larger models handle worst.
  • Then trained on text that people typed (chats and email, version 2), and on longer inputs: a chat's previous message and the text around the cursor (version 3).
  • Grayling mixes it with Qwen3.5-0.8B-Base: a small learned gate says how much to trust each model at every step, and a per-language switch says where Qwen3.5 works alone.
  • The data and its licences, the training stages and every result are in docs/model.md.

Versions

  • Version 3 (3 December 2026): trained on longer inputs; it uses the text before the box about twice as well and saves a little more everywhere.
  • Version 2 (24 November 2026, revision db7f4139): trained further on text that people typed.
  • Version 1 (23 November 2026, revision f4408ab5): pretrained on web text.

Limits

  • It is small and makes plain mistakes. Alone it saves less typing than Qwen3.5-0.8B; it works best beside it, or after learning your writing.
  • It was tested mostly on translated sentences and on public chats and email; languages with little public text (a third of them) are weak.
  • It learned from web text and from real people's messages and email, and nothing is filtered: it may suggest offensive or private words.

Licence

AGPL-3.0-only (see LICENSE and NOTICE); the tokenizer is Qwen3.5's, Apache-2.0. The data's licences are in docs/model.md.

Downloads last month
690
Safetensors
Model size
48.8M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train algoprog/grayling-49m

Evaluation results

  • Keystrokes saved (%) at 40% right, Qwen3.5-0.8B-Base alone on FLORES-200 devtest (193 languages that use spaces, 20 sentences each)
    self-reported
    9.000
  • Keystrokes saved (%) at 40% right, Qwen3.5-0.8B-Base mixed with this model on FLORES-200 devtest (193 languages that use spaces, 20 sentences each)
    self-reported
    11.200
  • Keystrokes saved (%) at 40% right, this model alone on FLORES-200 devtest (193 languages that use spaces, 20 sentences each)
    self-reported
    7.300