Instructions to use Psycodem/gemma-4-e4b-lora-diacritization with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Psycodem/gemma-4-e4b-lora-diacritization with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Add 10pct card
Browse files- 10pct/README.md +20 -0
10pct/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Gemma 4 E4B-it + LoRA — 10% of the corpus
|
| 2 |
+
|
| 3 |
+
One of three adapters in [`Psycodem/gemma-4-e4b-lora-diacritization`](https://huggingface.co/Psycodem/gemma-4-e4b-lora-diacritization).
|
| 4 |
+
Trained on 104,270 rows of `Misraj/Sadeed_Tashkeela` (1,087 optimizer
|
| 5 |
+
steps, 54 of them warmup).
|
| 6 |
+
|
| 7 |
+
| Split | n | DER (CE) | DER (no CE) | WER (CE) | WER (no CE) |
|
| 8 |
+
|---|---:|---:|---:|---:|---:|
|
| 9 |
+
| Train sample | 500 | 1.23 | 1.01 | 3.24 | 1.86 |
|
| 10 |
+
| Tashkeela test | 2,485 | 12.96 | 12.45 | 16.2 | 13.33 |
|
| 11 |
+
| **SadeedDiac-25** | **1,200** | **3.15** | 2.68 | 7.28 | 4.47 |
|
| 12 |
+
|
| 13 |
+
Load it with:
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
model = PeftModel.from_pretrained(model, "Psycodem/gemma-4-e4b-lora-diacritization", subfolder="10pct")
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
See the [repo card](https://huggingface.co/Psycodem/gemma-4-e4b-lora-diacritization) for the full prompt,
|
| 20 |
+
hyperparameters and caveats.
|