File size: 2,017 Bytes
788890c
c00b392
 
 
 
 
 
788890c
91e7242
 
9820b03
 
91e7242
 
 
 
 
 
32a9357
91e7242
32a9357
91e7242
 
 
 
 
 
 
 
 
 
 
 
 
 
7f86567
 
5c2ac75
 
 
 
 
 
 
 
7f86567
5c2ac75
7f86567
5c2ac75
91e7242
 
 
 
9820b03
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
---
datasets:
- kyujinpy/KOpen-platypus
language:
- ko
- en
pipeline_tag: text-generation
---

### Model Card for Model ID
base_model : [Ko-Llama3-Luxia-8B](https://huggingface.co./saltlux/Ko-Llama3-Luxia-8B)

### Basic usage
```python
# pip install accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

tokenizer = AutoTokenizer.from_pretrained("MDDDDR/Ko-Luxia-8B-it-v0.2")
model = AutoModelForCausalLM.from_pretrained(
    "MDDDDR/Ko-Luxia-8B-it-v0.2",
    device_map="auto",
    torch_dtype=torch.bfloat16
)

input_text = "사과가 뭐야?"
input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")

outputs = model.generate(**input_ids)
print(tokenizer.decode(outputs[0]))
```

### Training dataset
dataset : [kyujinpy/KOpen-platypus](https://huggingface.co./datasets/kyujinpy/KOpen-platypus)

### lora_config and bnb_config in Training
```python
bnd_config = BitsAndBytesConfig(
  load_in_4bit = True
)

lora_config = LoraConfig(
  r = 16,
  lora_alpha = 16,
  lora_dropout = 0.05,
  target_modules = ['gate_proj', 'up_proj', 'down_proj']
)
```

### Hardware
RTX 3090 Ti 24GB x 1

### Model Benchmark Results
|      Tasks      |Version|Filter|n-shot|  Metric   |   |Value |   |Stderr|
|-----------------|-------|------|-----:|-----------|---|-----:|---|------|
|kobest_boolq     |      1|none  |     0|acc        |↑  |0.5278|±  |0.0133|
|                 |       |none  |     0|f1         |↑  |0.3954|±  |N/A   |
|kobest_copa      |      1|none  |     0|acc        |↑  |0.7380|±  |0.0139|
|                 |       |none  |     0|f1         |↑  |0.7372|±  |N/A   |
|kobest_hellaswag |      1|none  |     0|acc        |↑  |0.4800|±  |0.0224|
|                 |       |none  |     0|acc_norm   |↑  |0.6180|±  |0.0218|
|                 |       |none  |     0|f1         |↑  |0.4774|±  |N/A   |
|kobest_sentineg  |      1|none  |     0|acc        |↑  |0.5390|±  |0.0250|
|                 |       |none  |     0|f1         |↑  |0.5037|±  |N/A   |