EthioNeural research
How small, how quantized? Tokenizer, size and quantization for Amharic SLMs
How do tokenizer choice, model scale, and weight quantization relate to Amharic task performance on a small consumer GPU?
The question
Small language models can run on affordable local hardware, but quantization and tokenization may affect languages differently. This study asks how tokenizer choice, model scale, and quantization relate to Amharic task performance, and whether a small QLoRA fine-tuning run recovers a measured loss.
Experimental setup
- Six instruction-tuned checkpoints from four tokenizer families: Gemma 2, Qwen 2.5, Llama 3.2, and Phi-4 mini, with parameter counts from 0.5B to 7B.
- One NVIDIA RTX 3050 laptop GPU with 4 GB of memory.
- MasakhaNEWS for Amharic and English topic classification; AfriSenti for Amharic sentiment paired with the English tweet_eval sentiment set.
- GGUF runs through Ollama at
q8_0,q4_K_M,q3_K_M, andq2_K. - A controlled bitsandbytes precision check on Qwen 2.5 0.5B with identical base weights at
fp16,int8, andnf4. - Tokenizer fertility measured as tokens per word on paired Amharic and English headlines.
- A QLoRA recovery attempt on the smallest model, trained on the Amharic AfriSenti training split and evaluated on its held-out test split.
Findings reported by the study
Tokenization tracked baseline Amharic accuracy
Measured Ge'ez-script tokenizer fertility ranged from 3.93 times English fertility for Gemma 2 to 9.47 times for Llama 3.2. On MasakhaNEWS, fertility and baseline Amharic accuracy had a reported Pearson correlation of r = -0.97 with p = 0.03 across four tokenizer families. English accuracy was comparatively flat.
This is a small, exploratory correlation. It supports investigating tokenization as a mechanism, but it does not establish that tokenization alone caused the accuracy differences. More tokenizer families, tasks, and languages are needed.
Lower-bit quantization had a task-specific failure point
For Qwen 2.5 3B on Amharic MasakhaNEWS, accuracy was 44.6% at q8_0, 41.3% at q4_K_M, and 19.8% at q3_K_M. The corresponding English results were 68.5%, 69.4%, and 57.8%. The paper reports about a 14 percentage-point larger q8_0 to q3_K_M drop for Amharic than English in this comparison. A second model family showed a smaller extra drop.
At q2_K, both language outputs failed to produce usable labels. That is a break point for this model and task, not evidence of an Amharic-specific effect. These results do not imply that every 4-bit model is safe or that every 3-bit model fails in the same way.
The smallest QLoRA run did not recover the loss
On the smallest model's Amharic AfriSenti test, the reported score moved from 37.1% before tuning to 33.3% after one QLoRA epoch. The tuned model predicted the neutral label for all examples. This result is limited to one small model and one task; larger-model recovery remains open.
Interpretation and limits
The study's proposed ordering is tokenizer choice, then model size, then quantization down to 4-bit for the tested configurations. This is an interpretation of a limited experiment, not a universal rule.
- The tokenizer-accuracy correlation uses four tokenizer families.
- The benchmarks are scoped classification tasks, not language generation or reasoning.
- The controlled bitsandbytes comparison and QLoRA recovery used only the smallest checkpoint.
- One laptop GPU and selected model quantizers do not represent all deployment hardware.
- The language pair and task setup cannot represent every Ethiopian language, dialect, or domain.
Practitioners should evaluate their target language, task, model revision, tokenizer, quantization file, runtime, and hardware before deployment. Keep raw and normalized text, prompts, dataset splits, and model hashes in the experiment record.
Source and related work
The associated private project files are kept in a separate research workspace and are not included in the public website build. See the African language AI research overview for related resources and collaboration priorities.