Instructions to use nahommohan/tibeb-sft-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nahommohan/tibeb-sft-adapter with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download nahommohan/tibeb-sft-adapter --local-dir tibeb-sft-adapter
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- am
|
| 5 |
+
tags:
|
| 6 |
+
- amharic
|
| 7 |
+
- ethiopian
|
| 8 |
+
- finance
|
| 9 |
+
- lora
|
| 10 |
+
- mlx
|
| 11 |
+
base_model: CohereForAI/aya-expanse-8b
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Tibeb SFT Adapter
|
| 15 |
+
|
| 16 |
+
LoRA adapters for **Tibeb AI** β Ethiopia's Amharic financial assistant, fine-tuned on Aya Expanse 8B.
|
| 17 |
+
|
| 18 |
+
## Model Description
|
| 19 |
+
|
| 20 |
+
Tibeb is an Amharic-language AI assistant focused on financial literacy in the Ethiopian context. These adapters were trained using MLX LoRA on Apple Silicon.
|
| 21 |
+
|
| 22 |
+
## Training Details
|
| 23 |
+
|
| 24 |
+
- **Base model:** CohereForAI/aya-expanse-8b (4-bit quantized via mlx-community)
|
| 25 |
+
- **Method:** LoRA (rank 16, all layers, cosine LR decay, AdamW)
|
| 26 |
+
- **Data:** ~692K rows of Amharic instruction data (see dataset repo)
|
| 27 |
+
- **Hardware:** Apple Silicon Mac (MLX backend)
|
| 28 |
+
|
| 29 |
+
### v3 Config
|
| 30 |
+
- Iterations: 20,000
|
| 31 |
+
- Batch size: 1 (4x gradient accumulation = effective batch 4)
|
| 32 |
+
- Learning rate: 1e-5 β 1e-6 (cosine decay, 500 warmup steps)
|
| 33 |
+
- LoRA rank: 16, dropout: 0.05, scale: 32.0
|
| 34 |
+
- Max sequence length: 512
|
| 35 |
+
|
| 36 |
+
## Adapters
|
| 37 |
+
|
| 38 |
+
- `mlx-adapter-v3/` β v3 training (rank 16, all layers, cosine LR)
|
| 39 |
+
- `mlx-adapter/` β v2 training (rank 8, 16 layers)
|
| 40 |
+
|
| 41 |
+
## Usage
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
from mlx_lm import load, generate
|
| 45 |
+
|
| 46 |
+
model, tokenizer = load(
|
| 47 |
+
"mlx-community/aya-expanse-8b-4bit",
|
| 48 |
+
adapter_path="nahommohan/tibeb-sft-adapter/mlx-adapter-v3"
|
| 49 |
+
)
|
| 50 |
+
|
| 51 |
+
prompt = "α΅α α²-α’α α’αα¨α΅α΅ααα΅ ααα¨α"
|
| 52 |
+
response = generate(model, tokenizer, prompt=prompt, max_tokens=500)
|
| 53 |
+
print(response)
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## Links
|
| 57 |
+
|
| 58 |
+
- Training pipeline: [github.com/nahomar/tibeb-training](https://github.com/nahomar/tibeb-training)
|
| 59 |
+
- Dataset: [nahommohan/tibeb-training-data](https://huggingface.co/datasets/nahommohan/tibeb-training-data)
|