Instructions to use hypaai/Hypa-SmolLM-135M-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use hypaai/Hypa-SmolLM-135M-Instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use hypaai/Hypa-SmolLM-135M-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hypaai/Hypa-SmolLM-135M-Instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hypaai/Hypa-SmolLM-135M-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
- Ollama
How to use hypaai/Hypa-SmolLM-135M-Instruct-GGUF with Ollama:
ollama run hf.co/hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use hypaai/Hypa-SmolLM-135M-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
- Lemonade
How to use hypaai/Hypa-SmolLM-135M-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Hypa-SmolLM-135M-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Hypa SmolLM 135M — Keyboard (GGUF)
A 105 MB smart-keyboard model for 27 languages, built to run on a phone.
This is the quantised llama.cpp build — the one you want if you're actually deploying. It does the four things a keyboard has to do — predict the next word, complete the word being typed, fix the last word, and clean up a whole sentence — in Igbo, Yorùbá, Hausa, Efik, Tiv, Igede, Eggon and twenty others, alongside English, French, Spanish, Portuguese and Arabic.
Keyboard assistance has to run locally, offline, with low latency, on the mid-range Android phones that dominate the markets these languages are spoken in. That constraint is why the base model is 135M parameters and why this build is 105 MB rather than several gigabytes.
Built by Hypa Intelligence. Trained on Hypa-Keyboard-v2.
Which build do I want?
| Repo | Format | Size | Use it when |
|---|---|---|---|
→ -GGUF (this one) |
GGUF Q4_K_M | 105 MB | On-device, llama.cpp, Ollama, LM Studio, mobile |
-16bit |
BF16 safetensors | 0.1B params | Transformers or vLLM; converting or quantising yourself |
-LoRAs |
PEFT adapter | — | Merging onto your own base, or continued training |
What it does
Five tasks, each selected by its system prompt:
| Task | System prompt | Behaviour |
|---|---|---|
| Next-word prediction | You are Hypa Keyboard. Predict the next word. |
Text ends at a word boundary → emit the next word |
| Word completion | You are Hypa Keyboard. Complete the current word. |
Text ends mid-word → finish the word being typed |
| Last-word correction | You are Hypa Keyboard. Correct the last word. |
Fix only the final, just-typed token |
| Block correction | You are Hypa Keyboard. Correct the text block. |
Return a clean version of the whole span |
| Grammar correction | You are Hypa Keyboard. Correct grammar, missing words, spelling, and sentence errors. |
Full grammatical error correction over the span |
Correction is trained against a controlled corruption vocabulary that treats tone-mark damage as a first-class error type. Losing diacritics is the single most common failure when typing tonal orthographies on a standard mobile keyboard, so restoring them is a core capability rather than an afterthought.
Usage
llama.cpp
# Interactive
llama-cli -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M --jinja
# OpenAI-compatible server
llama-server -hf hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M --jinja
Ollama
ollama run hf.co/hypaai/Hypa-SmolLM-135M-Instruct-GGUF:Q4_K_M
LM Studio / Jan
Search for hypaai/Hypa-SmolLM-135M-Instruct-GGUF in the model browser.
Calling a keyboard task
Against the llama.cpp server:
curl -s http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "system", "content": "You are Hypa Keyboard. Predict the next word."},
{"role": "user", "content": "Ndewo, kedu ka ị"}
],
"max_tokens": 8,
"temperature": 0
}'
From Python with llama-cpp-python:
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="hypaai/Hypa-SmolLM-135M-Instruct-GGUF",
filename="*Q4_K_M.gguf",
n_ctx=512,
verbose=False,
)
def keyboard(system_prompt, text, max_tokens=8):
out = llm.create_chat_completion(
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": text},
],
max_tokens=max_tokens,
temperature=0.0,
)
return out["choices"][0]["message"]["content"]
keyboard("You are Hypa Keyboard. Predict the next word.", "Ndewo, kedu ka ị")
keyboard("You are Hypa Keyboard. Complete the current word.", "Ẹ káàbọ̀ sí ilé ìwé wa, a")
keyboard("You are Hypa Keyboard. Correct the last word.", "I dey go markit")
keyboard("You are Hypa Keyboard. Correct the text block.",
"Omi Omi kp anya'ami mail ekubo uche r'abo ohigbeli mi.", max_tokens=64)
Settings that matter
Use greedy decoding (temperature = 0). Sampling makes keyboard suggestions feel erratic — users experience variance as the keyboard being broken, not creative.
Keep max_tokens low: 4–8 for prediction and completion, 32–64 for block and grammar correction. On a 135M model, longer generations drift.
A small context window (256–512) is usually enough and keeps latency and memory down on mobile.
Available files
| File | Quant | Size |
|---|---|---|
smollm-135m-instruct.Q4_K_M.gguf |
Q4_K_M | 105 MB |
Training
| Base model | unsloth/smollm-135m-instruct-bnb-4bit (SmolLM-135M-Instruct) |
| Method | LoRA (PEFT) via TRL SFTTrainer, accelerated with Unsloth |
| Dataset | hypaai/Hypa-Keyboard-v2 — 409,598 examples |
| Languages | 27 |
| Quantisation | Q4_K_M via llama.cpp |
| LoRA rank / alpha | 2048 |
| Target modules | ["q_proj", "k_proj", "v_proj", "o_proj","gate_proj", "up_proj", "down_proj"] |
| Learning rate | 1e-4 |
| Epochs / steps | 1 |
| Max sequence length | 2048 |
Evaluation
Not yet published.
Limitations
- No per-language evaluation. The training dataset has no language column, so quality across the 27 languages is unmeasured and certainly uneven. Expect better results in Hausa, Igbo, Yorùbá and Swahili than in Eggon, Igede, Ebira or Nupe.
- Quantisation cost is unmeasured. Q4 on a 135M model is a harsher compression than the same quant on a large model. Until the BF16-vs-Q4 comparison exists, treat any quality gap as unknown.
- Synthetic training noise. Corruptions were programmatically injected. The model has not seen real keyboard-layout adjacency errors (fat-finger typos), swipe-typing failures, or genuine mid-sentence code-switching — all of which dominate actual mobile input.
- Close-relative confusion. Efik, Ibibio and Annang share substantial vocabulary and orthography. A correction valid in one may be applied to text written in another.
- Source-formatting leakage. Some training spans carried Markdown, prompt fragments and JSON punctuation, so the model occasionally treats prompt-like text as ordinary typing.
- Not a chat model. Despite the instruct base, this is trained for five narrow keyboard tasks. Conversation, question answering and translation are out of scope and will produce poor output.
Intended use
For: on-device keyboard assistance — prediction, autocomplete, autocorrect, diacritic restoration, light grammar correction; research on low-resource keyboard modelling.
Not for: general text generation, translation, question answering, or any setting where output is treated as authoritative text in these languages. Corrections must be shown as suggestions the user can reject, never applied silently — a wrong autocorrect in a language the user speaks and the model barely knows is worse than no autocorrect at all.
Citation
@misc{hypaai2026hypakeys,
title = {Hypa SmolLM 135M: A Compact Multilingual Keyboard Model for African Languages},
author = {Hypa Intelligence},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/hypaai/Hypa-SmolLM-135M-Instruct-GGUF}}
}
License
Apache 2.0, inherited from SmolLM-135M-Instruct.
Contact
Hypa Intelligence • Website • Hugging Face • GitHub • Blog
Quantised with Unsloth.
- Downloads last month
- 356
4-bit
Model tree for hypaai/Hypa-SmolLM-135M-Instruct-GGUF
Base model
hypaai/Hypa-SmolLM-135M-Instruct-16bit