Gemma 4 E4B for Lezgian–Russian translation
This text-only GGUF release merges the translation LoRA into Gemma 4 E4B IT. It is designed for local Russian ↔ Lezgian translation. The Q4_K_M file can be imported into LM Studio or a recent PocketPal AI build. Available memory and context length affect whether it runs on a given phone.
The Lezgian fine-tuning changes are available for personal, noncommercial use. The base model is by Google DeepMind and is distributed under Apache 2.0.
Training
The final translation run used 84,203 aligned pairs, with a prompt in each direction for every pair. Training used QLoRA with rank 32 and alpha 64 for 21,051 optimizer steps. The run resumed from step 5,000 after a power outage. The chart joins the validation measurements from both sessions.

Data sources
The table gives the number of selected training pairs, after filtering, for each source. Links point to the source releases. The exact combined training and evaluation splits stay local. The upstream Dagwoman release is linked for provenance. The training run used an earlier local alignment.
| Source | Selected pairs |
|---|---|
| Local Dagwoman alignment (upstream release) | 6,571 |
| Lezgian–Russian books | 6,205 |
| Bible Caucasus | 4,209 |
| LezgiChal | 46,880 |
| CNAL conversational corpus | 723 |
| Constitution of Dagestan | 115 |
| Lezgian–Russian–Azerbaijani corpus, selected Bible and Quran pairs | 4,500 |
| Lezghian Community synthetic newspaper pairs | 6,000 |
| Pashaev synthetic newspaper and Wikipedia pairs | 9,000 |
The Lezgian periodicals corpus is a related resource for continued pretraining. The separate 300-step monolingual experiment used local Samur and Dagwoman texts. It lowered held-out monolingual loss from 10.22 to 3.33 while reducing translation chrF in both directions. The exported weights come from the translation run before that experiment.
Evaluation
Translation scores use corpus chrF2 on the same 48 held-out pairs in each direction. Case-choice accuracy uses 105 held-out items. The ergative column uses its 30-item subset. These metrics were measured before GGUF export.
| Model | Russian → Lezgian | Lezgian → Russian | Case choice | Ergative |
|---|---|---|---|---|
| Base Gemma 4 E4B IT | 9.91 | 18.14 | 42.86% | 40.00% |
| Previous LoRA, 16,985 pairs | 38.23 | 41.27 | 74.29% | 63.33% |
| Translation LoRA, 84,203 pairs | 45.84 | 47.12 | 84.76% | 76.67% |
| Translation LoRA plus 300 monolingual steps | 43.83 | 44.51 | 84.76% | 76.67% |
The test uses a small newspaper and magazine domain sample. Training data include machine translations and OCR-derived or automatically aligned text. Review translations with a fluent speaker when accuracy matters, especially for formal or public use.
Usage
- LM Studio. Download the GGUF and use
lms import gemma-4-e4b-lezgi-Q4_K_M.gguf, or search for the public repository in the app. - PocketPal AI. Import the GGUF from Files, or search for the public repository under Models → Add from Hugging Face. Start with a short context and a text prompt.
The export is 5.30 GB. A local llama.cpp smoke test loaded the GGUF and translated one short example in each direction with the training prompt format. PocketPal on iPhone has yet to be tested with this file.
Use the training prompt format. Put the source text after a blank line and swap the languages for the reverse direction.
Translate the following text from Russian to Lezgian. Return only the translation.
Я сижу дома.