Downloads · 30 days
15
4% of all-time downloads
RitwikSehrawat/gemma-3-1b-kbd-q4km
gemma-3-1b-kbd-q4km is a machine learning model from RitwikSehrawat. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A fine-tuned Gemma 3 1B (INT4) for context-aware text prediction on Android, quantized to GGUF Q4KM for on-device inference via llama.cpp.
Downloads · 30 days
15
4% of all-time downloads
All-time downloads
350
Public
Repo size
814 MB
Likes
1
Public
Click a slice to open those files.
.gguf814 MB · 100%
From the Hugging Face model README
A fine-tuned Gemma 3 1B (INT4) for context-aware text prediction on Android, quantized to GGUF Q4_K_M for on-device inference via llama.cpp.
convert_hf_to_gguf.py~3B token conversational corpus from five sources with per-source cleaning, thread reconstruction, and synthetic typo augmentation:
The model uses custom special tokens to condition predictions on app context:
<|app|>messaging<|ctx|>
[on-screen conversation history]
<|cursor|>
<|app|> — app category (messaging, email, search, social, etc.)<|ctx|> — marks start of on-screen conversational context<|cursor|> — marks the cursor position; model predicts the next tokens| Metric | Gemma (LLM) | N-gram baseline |
|---|---|---|
| MRR (top-5) | 0.3772 | 0.0509 |
| Hit@5 | 52.4% | 9.9% |
| Win rate | 92.2% | 4.5% |
Evaluated on 1,865 examples.
Designed for integration with HeliBoard via llama.cpp's Android NDK build. Load the GGUF, feed the structured prompt, and use top-k token predictions as keyboard suggestions.