Mikhail Rudenko commited on
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- speculative-decoding
|
| 5 |
+
- knowledge-distillation
|
| 6 |
+
- mistral
|
| 7 |
+
base_model: Lite-Mistral-150M-v2-Instruct
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# drafter-understanding
|
| 11 |
+
|
| 12 |
+
Domain-specific draft model for speculative decoding, trained on **Understanding** tasks.
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
| Parameter | Value |
|
| 17 |
+
|-----------|-------|
|
| 18 |
+
| Base model | Lite-Mistral-150M-v2-Instruct (156M params) |
|
| 19 |
+
| Architecture | MistralForCausalLM |
|
| 20 |
+
| Target model | TurboSparse-Mistral-Instruct (7B) |
|
| 21 |
+
| Domain | Understanding (21 Flan clusters) |
|
| 22 |
+
| Training samples | 395K |
|
| 23 |
+
| Epochs | 4.5 (early stop from 25) |
|
| 24 |
+
| Training time | 4.3 hours (1x RTX 3090) |
|
| 25 |
+
| Loss | Mixed: 0.5 x CE + 0.5 x KL (T=1.0) |
|
| 26 |
+
| Final eval_loss | 1.193 |
|
| 27 |
+
| Final top1_accuracy | 65.05% |
|
| 28 |
+
| Overlap Area (AR proxy) | **0.7558** on own domain |
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 34 |
+
|
| 35 |
+
model = AutoModelForCausalLM.from_pretrained("mikhialo/drafter-understanding")
|
| 36 |
+
tokenizer = AutoTokenizer.from_pretrained("mikhialo/drafter-understanding")
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Training Data
|
| 40 |
+
|
| 41 |
+
[mikhialo/domain-aware-sd-synthetic](https://huggingface.co/datasets/mikhialo/domain-aware-sd-synthetic)
|
| 42 |
+
|
| 43 |
+
## Citation
|
| 44 |
+
|
| 45 |
+
Part of the Domain-Aware Speculative Decoding research project:
|
| 46 |
+
[GitHub](https://github.com/MikhailRudenk0/Domain-Aware-SD)
|