RichardErkhov commited on
Commit
41f7bd1
1 Parent(s): 4075421

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +149 -0
README.md ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Llama3.1-ArrowSE-v0.4 - GGUF
11
+ - Model creator: https://huggingface.co/DataPilot/
12
+ - Original model: https://huggingface.co/DataPilot/Llama3.1-ArrowSE-v0.4/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [Llama3.1-ArrowSE-v0.4.Q2_K.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q2_K.gguf) | Q2_K | 2.96GB |
18
+ | [Llama3.1-ArrowSE-v0.4.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.IQ3_XS.gguf) | IQ3_XS | 3.28GB |
19
+ | [Llama3.1-ArrowSE-v0.4.IQ3_S.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.IQ3_S.gguf) | IQ3_S | 3.43GB |
20
+ | [Llama3.1-ArrowSE-v0.4.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q3_K_S.gguf) | Q3_K_S | 3.41GB |
21
+ | [Llama3.1-ArrowSE-v0.4.IQ3_M.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.IQ3_M.gguf) | IQ3_M | 3.52GB |
22
+ | [Llama3.1-ArrowSE-v0.4.Q3_K.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q3_K.gguf) | Q3_K | 3.74GB |
23
+ | [Llama3.1-ArrowSE-v0.4.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q3_K_M.gguf) | Q3_K_M | 3.74GB |
24
+ | [Llama3.1-ArrowSE-v0.4.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q3_K_L.gguf) | Q3_K_L | 4.03GB |
25
+ | [Llama3.1-ArrowSE-v0.4.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.IQ4_XS.gguf) | IQ4_XS | 4.18GB |
26
+ | [Llama3.1-ArrowSE-v0.4.Q4_0.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q4_0.gguf) | Q4_0 | 4.34GB |
27
+ | [Llama3.1-ArrowSE-v0.4.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.IQ4_NL.gguf) | IQ4_NL | 4.38GB |
28
+ | [Llama3.1-ArrowSE-v0.4.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q4_K_S.gguf) | Q4_K_S | 4.37GB |
29
+ | [Llama3.1-ArrowSE-v0.4.Q4_K.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q4_K.gguf) | Q4_K | 4.58GB |
30
+ | [Llama3.1-ArrowSE-v0.4.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q4_K_M.gguf) | Q4_K_M | 4.58GB |
31
+ | [Llama3.1-ArrowSE-v0.4.Q4_1.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q4_1.gguf) | Q4_1 | 4.78GB |
32
+ | [Llama3.1-ArrowSE-v0.4.Q5_0.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q5_0.gguf) | Q5_0 | 5.21GB |
33
+ | [Llama3.1-ArrowSE-v0.4.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q5_K_S.gguf) | Q5_K_S | 5.21GB |
34
+ | [Llama3.1-ArrowSE-v0.4.Q5_K.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q5_K.gguf) | Q5_K | 5.34GB |
35
+ | [Llama3.1-ArrowSE-v0.4.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q5_K_M.gguf) | Q5_K_M | 5.34GB |
36
+ | [Llama3.1-ArrowSE-v0.4.Q5_1.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q5_1.gguf) | Q5_1 | 5.65GB |
37
+ | [Llama3.1-ArrowSE-v0.4.Q6_K.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q6_K.gguf) | Q6_K | 6.14GB |
38
+ | [Llama3.1-ArrowSE-v0.4.Q8_0.gguf](https://huggingface.co/RichardErkhov/DataPilot_-_Llama3.1-ArrowSE-v0.4-gguf/blob/main/Llama3.1-ArrowSE-v0.4.Q8_0.gguf) | Q8_0 | 7.95GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ base_model:
46
+ - meta-llama/Meta-Llama-3.1-8B-Instruct
47
+ - elyza/Llama-3-ELYZA-JP-8B
48
+ - nvidia/Llama3-ChatQA-1.5-8B
49
+ library_name: transformers
50
+ tags:
51
+ - mergekit
52
+ - merge
53
+ language:
54
+ - ja
55
+ license: llama3
56
+ ---
57
+
58
+ ## 概要 
59
+
60
+ このモデルはllama3.1-8B-instructをもとに日本語性能を高めることを目的にMergekit&ファインチューニングを用いて作成されました。
61
+
62
+ meta,ELYZA,nvidiaの皆様に感謝します。
63
+
64
+ ## how to use
65
+
66
+
67
+ ```python
68
+ import torch
69
+ from transformers import AutoModelForCausalLM, AutoTokenizer
70
+
71
+ DEFAULT_SYSTEM_PROMPT = "あなたは誠実で優秀な日本人のアシスタントです。特に指示が無い場合は、常に日本語で回答してください。"
72
+ text = "Vtuberとして成功するために大切な5つのことを小学生にでもわかるように教えてください。"
73
+
74
+ model_name = "DataPilot/Llama3.1-ArrowSE-v0.4"
75
+
76
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
77
+ model = AutoModelForCausalLM.from_pretrained(
78
+ model_name,
79
+ torch_dtype="auto",
80
+ device_map="auto",
81
+ )
82
+ model.eval()
83
+
84
+ messages = [
85
+ {"role": "system", "content": DEFAULT_SYSTEM_PROMPT},
86
+ {"role": "user", "content": text},
87
+ ]
88
+ prompt = tokenizer.apply_chat_template(
89
+ messages,
90
+ tokenize=False,
91
+ add_generation_prompt=True
92
+ )
93
+ token_ids = tokenizer.encode(
94
+ prompt, add_special_tokens=False, return_tensors="pt"
95
+ )
96
+
97
+ with torch.no_grad():
98
+ output_ids = model.generate(
99
+ token_ids.to(model.device),
100
+ max_new_tokens=1200,
101
+ do_sample=True,
102
+ temperature=0.6,
103
+ top_p=0.9,
104
+ )
105
+ output = tokenizer.decode(
106
+ output_ids.tolist()[0][token_ids.size(1):], skip_special_tokens=True
107
+ )
108
+ print(output)
109
+ ```
110
+
111
+
112
+ ## merge
113
+
114
+ This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
115
+
116
+ ## Merge Details
117
+ ### Merge Method
118
+
119
+ This model was merged using the [TIES](https://arxiv.org/abs/2306.01708) merge method using meta-llama/Meta-Llama-3.1-8B-Instruct as a base.
120
+
121
+ ### Models Merged
122
+
123
+ The following models were included in the merge:
124
+ * [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct)
125
+ * [elyza/Llama-3-ELYZA-JP-8B](https://huggingface.co/elyza/Llama-3-ELYZA-JP-8B)
126
+ * [nvidia/Llama3-ChatQA-1.5-8B](https://huggingface.co/nvidia/Llama3-ChatQA-1.5-8B)
127
+
128
+ ### Configuration
129
+
130
+ The following YAML configuration was used to produce this model:
131
+
132
+ ```yaml
133
+ models:
134
+ - model: meta-llama/Meta-Llama-3.1-8B-Instruct
135
+ parameters:
136
+ weight: 1
137
+ - model: elyza/Llama-3-ELYZA-JP-8B
138
+ parameters:
139
+ weight: 0.7
140
+ - model: nvidia/Llama3-ChatQA-1.5-8B
141
+ parameters:
142
+ weight: 0.15
143
+ merge_method: ties
144
+ base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
145
+ parameters:
146
+ normalize: false
147
+ dtype: bfloat16
148
+ ```
149
+