Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,64 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-sa-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-sa-4.0
|
| 3 |
+
datasets:
|
| 4 |
+
- HumanF-MarkrAI/Korean-RAG-ver2
|
| 5 |
+
language:
|
| 6 |
+
- ko
|
| 7 |
+
tags:
|
| 8 |
+
- Retrieval Augmented Generation
|
| 9 |
+
- RAG
|
| 10 |
+
- Multi-domain
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# MarkrAI/RAG-KO-Mixtral-7Bx2-v2.0
|
| 14 |
+
|
| 15 |
+
# Model Details
|
| 16 |
+
|
| 17 |
+
## Model Developers
|
| 18 |
+
MarkrAI - AI Researchers
|
| 19 |
+
|
| 20 |
+
## Base Model
|
| 21 |
+
[DopeorNope/Ko-Mixtral-v1.4-MoE-7Bx2](https://huggingface.co/DopeorNope/Ko-Mixtral-v1.4-MoE-7Bx2).
|
| 22 |
+
|
| 23 |
+
## Instruction tuning Method
|
| 24 |
+
Using QLoRA.
|
| 25 |
+
```
|
| 26 |
+
4-bit quantization
|
| 27 |
+
Lora_r: 64
|
| 28 |
+
Lora_alpha: 64
|
| 29 |
+
Lora_dropout: 0.05
|
| 30 |
+
Lora_target_modules: [embed_tokens, q_proj, k_proj, v_proj, o_proj, gate, w1, w2, w3, lm_head]
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## Hyperparameters
|
| 34 |
+
```
|
| 35 |
+
Epoch: 5
|
| 36 |
+
Batch size: 64
|
| 37 |
+
Learning_rate: 1e-5
|
| 38 |
+
Learning scheduler: linear
|
| 39 |
+
Warmup_ratio: 0.06
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
## Datasets
|
| 43 |
+
Private datasets: [HumanF-MarkrAI/Korean-RAG-ver2](https://huggingface.co/datasets/HumanF-MarkrAI/Korean-RAG-ver2)
|
| 44 |
+
```
|
| 45 |
+
Aihub datasets 활용하여서 제작함.
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Implmentation Code
|
| 49 |
+
```
|
| 50 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 51 |
+
import torch
|
| 52 |
+
|
| 53 |
+
repo = "MarkrAI/RAG-KO-Mixtral-7Bx2-v2.0"
|
| 54 |
+
markrAI_RAG = AutoModelForCausalLM.from_pretrained(
|
| 55 |
+
repo,
|
| 56 |
+
return_dict=True,
|
| 57 |
+
torch_dtype=torch.float16,
|
| 58 |
+
device_map='auto'
|
| 59 |
+
)
|
| 60 |
+
markrAI_RAG_tokenizer = AutoTokenizer.from_pretrained(repo)
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
# Model Benchmark
|
| 64 |
+
- Coming soon...
|