Upload .\docs\training.md with huggingface_hub
Browse files- .//docs//training.md +29 -0
.//docs//training.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Training
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
|
| 5 |
+
BwengeAi supports fine-tuning Llama models on Kinyarwanda data using LoRA.
|
| 6 |
+
|
| 7 |
+
## Base Models
|
| 8 |
+
|
| 9 |
+
| Model | Parameters | Use Case |
|
| 10 |
+
|-------|-----------|----------|
|
| 11 |
+
| meta-llama/Llama-3.2-1B | 1B | Development/testing |
|
| 12 |
+
| almanach/Llama-3-8B-mono-Kinyarwanda | 8B | Production (recommended) |
|
| 13 |
+
| almanach/Llama-2-7B-mono-Kinyarwanda | 7B | Production |
|
| 14 |
+
|
| 15 |
+
## Training Modes
|
| 16 |
+
|
| 17 |
+
- **Full fine-tuning**: All parameters trained
|
| 18 |
+
- **LoRA**: Adapter layers only (recommended)
|
| 19 |
+
- **QLoRA**: Quantized LoRA for memory efficiency
|
| 20 |
+
|
| 21 |
+
## Running
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
python scripts/train.py
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
## Configuration
|
| 28 |
+
|
| 29 |
+
Training parameters are in `configs/default.yaml` under `training:` and `model:`.
|