Update README.md
Browse files
README.md
CHANGED
@@ -1,199 +1,399 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
# Model Card for Model ID
|
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 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
-
|
148 |
-
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- synthetic
|
5 |
+
license: llama3
|
6 |
+
datasets:
|
7 |
+
- Danielbrdz/Barcenas-Economia
|
8 |
+
- HiTZ/casimedicos-exp
|
9 |
+
- somosnlp/coser_resumenes
|
10 |
+
- csebuetnlp/CrossSum
|
11 |
+
- Iker/Document-Translation-en-es
|
12 |
+
- somosnlp/es-inclusive-language-it
|
13 |
+
- glaiveai/glaive-code-assistant-v3
|
14 |
+
- glaiveai/glaive-function-calling-v2
|
15 |
+
- Iker/InstructTranslation-EN-ES
|
16 |
+
- somosnlp/lenguaje-claro-dataset
|
17 |
+
- somosnlp/LingComp_QA
|
18 |
+
- Iker/NoticIA
|
19 |
+
- teknium/OpenHermes-2.5
|
20 |
+
- Iker/OpenHermes-2.5-Spanish
|
21 |
+
- Helsinki-NLP/opus-100
|
22 |
+
- projecte-aina/RAG_Multilingual
|
23 |
+
- HiTZ/This-is-not-a-dataset
|
24 |
+
- Iker/Reddit-Post-Translation
|
25 |
+
- wikipedia
|
26 |
+
language:
|
27 |
+
- es
|
28 |
+
- en
|
29 |
+
pipeline_tag: text-generation
|
30 |
+
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
31 |
---
|
32 |
|
|
|
33 |
|
34 |
+

|
35 |
+
|
36 |
+
|
37 |
+
# Neurona 8B Beta: Un Modelo de Lenguage en Español
|
38 |
+
|
39 |
+
> Esta es una versión preliminar del dataset card. El modelo está en desarrollo y no es la versión final. Si quieres saber más sobre este modelo, escribe a [email protected]
|
40 |
+
|
41 |
+
|
42 |
+
Neurona 8B es un modelo de lenguaje en Español. Esta es la segunda iteración y un experimento para poner a punto los scripts y la infraestructura.
|
43 |
+
|
44 |
+
Neurona 8B ha sido entrenado con los siguiente datasets. No en todos los casos se ha usado el dataset completo
|
45 |
+
|
46 |
+
- [Danielbrdz/Barcenas-Economia](https://huggingface.co/datasets/Danielbrdz/Barcenas-Economia)
|
47 |
+
- [HiTZ/casimedicos-exp](https://huggingface.co/datasets/HiTZ/casimedicos-exp)
|
48 |
+
- [somosnlp/coser_resumenes](https://huggingface.co/datasets/somosnlp/coser_resumenes)
|
49 |
+
- [csebuetnlp/CrossSum en + es](https://huggingface.co/datasets/csebuetnlp/CrossSum)
|
50 |
+
- [Iker/Document-Translation-en-es](https://huggingface.co/datasets/Iker/Document-Translation-en-es)
|
51 |
+
- [somosnlp/es-inclusive-language-it](https://huggingface.co/datasets/somosnlp/es-inclusive-language-it)
|
52 |
+
- [glaiveai/glaive-code-assistant-v3](https://huggingface.co/datasets/glaiveai/glaive-code-assistant-v3)
|
53 |
+
- [glaiveai/glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2)
|
54 |
+
- [Iker/InstructTranslation-EN-ES](https://huggingface.co/datasets/Iker/InstructTranslation-EN-ES)
|
55 |
+
- [somosnlp/lenguaje-claro-dataset](https://huggingface.co/datasets/somosnlp/lenguaje-claro-dataset)
|
56 |
+
- [somosnlp/LingComp_QA](https://huggingface.co/datasets/somosnlp/LingComp_QA)
|
57 |
+
- [Iker/NoticIA](https://huggingface.co/datasets/Iker/NoticIA)
|
58 |
+
- [teknium/OpenHermes-2.5](https://huggingface.co/datasets/teknium/OpenHermes-2.5)
|
59 |
+
- [Iker/OpenHermes-2.5-Spanish](https://huggingface.co/datasets/Iker/OpenHermes-2.5-Spanish)
|
60 |
+
- [Helsinki-NLP/opus-100 en es](https://huggingface.co/datasets/Helsinki-NLP/opus-100)
|
61 |
+
- [projecte-aina/RAG_Multilingual](https://huggingface.co/datasets/projecte-aina/RAG_Multilingual)
|
62 |
+
- [HiTZ/This-is-not-a-dataset](https://huggingface.co/datasets/HiTZ/This-is-not-a-dataset)
|
63 |
+
- [wikipedia es](https://huggingface.co/datasets/wikipedia)
|
64 |
+
- [Iker/Reddit-Post-Translation](https://huggingface.co/datasets/Iker/Reddit-Post-Translation)
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
+
|
69 |
+
Esta mezcla de datasets en Inglés y Español, permite al modelo adquirir diferentes capacidades, como RAG, function calling, code assistant, question answering, summarization... tanto en Inglés como en Español.
|
70 |
+
|
71 |
+
# Entrenamiento
|
72 |
+
|
73 |
+
Este modelo se ha entrado usando 4xNvidia A100 80Gb y axolotl
|
74 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
75 |
+
|
76 |
+
Esta es la configuración usada
|
77 |
+
|
78 |
+
```yaml
|
79 |
+
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
80 |
+
model_type: AutoModelForCausalLM
|
81 |
+
tokenizer_type: AutoTokenizer
|
82 |
+
is_falcon_derived_model:
|
83 |
+
is_llama_derived_model:
|
84 |
+
is_qwen_derived_model:
|
85 |
+
is_mistral_derived_model:
|
86 |
+
|
87 |
+
load_in_8bit: false
|
88 |
+
load_in_4bit: false
|
89 |
+
strict: false
|
90 |
+
|
91 |
+
device_map: null
|
92 |
+
|
93 |
+
datasets:
|
94 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/Barcenas-Economia.jsonl
|
95 |
+
type: sharegpt
|
96 |
+
conversation: llama3
|
97 |
+
field: conversations
|
98 |
+
roles:
|
99 |
+
input:
|
100 |
+
- system
|
101 |
+
- gpt
|
102 |
+
output:
|
103 |
+
- human
|
104 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/casimedicos.jsonl
|
105 |
+
type: sharegpt
|
106 |
+
conversation: llama3
|
107 |
+
field: conversations
|
108 |
+
roles:
|
109 |
+
input:
|
110 |
+
- system
|
111 |
+
- gpt
|
112 |
+
output:
|
113 |
+
- human
|
114 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/coser_resumene.jsonl
|
115 |
+
type: sharegpt
|
116 |
+
conversation: llama3
|
117 |
+
field: conversations
|
118 |
+
roles:
|
119 |
+
input:
|
120 |
+
- system
|
121 |
+
- gpt
|
122 |
+
output:
|
123 |
+
- human
|
124 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/CrossSum_en.jsonl
|
125 |
+
type: sharegpt
|
126 |
+
conversation: llama3
|
127 |
+
field: conversations
|
128 |
+
roles:
|
129 |
+
input:
|
130 |
+
- system
|
131 |
+
- gpt
|
132 |
+
output:
|
133 |
+
- human
|
134 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/CrossSum_es.jsonl
|
135 |
+
type: sharegpt
|
136 |
+
conversation: llama3
|
137 |
+
field: conversations
|
138 |
+
roles:
|
139 |
+
input:
|
140 |
+
- system
|
141 |
+
- gpt
|
142 |
+
output:
|
143 |
+
- human
|
144 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/Document-Translation-en-es.jsonl
|
145 |
+
type: sharegpt
|
146 |
+
conversation: llama3
|
147 |
+
field: conversations
|
148 |
+
roles:
|
149 |
+
input:
|
150 |
+
- system
|
151 |
+
- gpt
|
152 |
+
output:
|
153 |
+
- human
|
154 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/es-inclusive-language.jsonl
|
155 |
+
type: sharegpt
|
156 |
+
conversation: llama3
|
157 |
+
field: conversations
|
158 |
+
roles:
|
159 |
+
input:
|
160 |
+
- system
|
161 |
+
- gpt
|
162 |
+
output:
|
163 |
+
- human
|
164 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/glaive-code-assistant-v3-small.jsonl
|
165 |
+
type: sharegpt
|
166 |
+
conversation: llama3
|
167 |
+
field: conversations
|
168 |
+
roles:
|
169 |
+
input:
|
170 |
+
- system
|
171 |
+
- gpt
|
172 |
+
output:
|
173 |
+
- human
|
174 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/glaive-function-calling-v2.jsonl
|
175 |
+
type: sharegpt
|
176 |
+
conversation: llama3
|
177 |
+
field: conversations
|
178 |
+
roles:
|
179 |
+
input:
|
180 |
+
- system
|
181 |
+
- gpt
|
182 |
+
- tool
|
183 |
+
output:
|
184 |
+
- human
|
185 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/InstructTranslation-EN-ES.jsonl
|
186 |
+
type: sharegpt
|
187 |
+
conversation: llama3
|
188 |
+
field: conversations
|
189 |
+
roles:
|
190 |
+
input:
|
191 |
+
- system
|
192 |
+
- gpt
|
193 |
+
output:
|
194 |
+
- human
|
195 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/lenguaje-claro-dataset.jsonl
|
196 |
+
type: sharegpt
|
197 |
+
conversation: llama3
|
198 |
+
field: conversations
|
199 |
+
roles:
|
200 |
+
input:
|
201 |
+
- system
|
202 |
+
- gpt
|
203 |
+
output:
|
204 |
+
- human
|
205 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/LingComp_QA.jsonl
|
206 |
+
type: sharegpt
|
207 |
+
conversation: llama3
|
208 |
+
field: conversations
|
209 |
+
roles:
|
210 |
+
input:
|
211 |
+
- system
|
212 |
+
- gpt
|
213 |
+
output:
|
214 |
+
- human
|
215 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/NoticIA.jsonl
|
216 |
+
type: sharegpt
|
217 |
+
conversation: llama3
|
218 |
+
field: conversations
|
219 |
+
roles:
|
220 |
+
input:
|
221 |
+
- system
|
222 |
+
- gpt
|
223 |
+
output:
|
224 |
+
- human
|
225 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/NoticIA-large.jsonl
|
226 |
+
type: sharegpt
|
227 |
+
conversation: llama3
|
228 |
+
field: conversations
|
229 |
+
roles:
|
230 |
+
input:
|
231 |
+
- system
|
232 |
+
- gpt
|
233 |
+
output:
|
234 |
+
- human
|
235 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/NoticIA-summary.jsonl
|
236 |
+
type: sharegpt
|
237 |
+
conversation: llama3
|
238 |
+
field: conversations
|
239 |
+
roles:
|
240 |
+
input:
|
241 |
+
- system
|
242 |
+
- gpt
|
243 |
+
output:
|
244 |
+
- human
|
245 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/OpenHermes-2.5-English.jsonl
|
246 |
+
type: sharegpt
|
247 |
+
conversation: llama3
|
248 |
+
field: conversations
|
249 |
+
roles:
|
250 |
+
input:
|
251 |
+
- system
|
252 |
+
- gpt
|
253 |
+
output:
|
254 |
+
- human
|
255 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/OpenHermes-2.5-Spanish.jsonl
|
256 |
+
type: sharegpt
|
257 |
+
conversation: llama3
|
258 |
+
field: conversations
|
259 |
+
roles:
|
260 |
+
input:
|
261 |
+
- system
|
262 |
+
- gpt
|
263 |
+
output:
|
264 |
+
- human
|
265 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/opus-100-en-es.jsonl
|
266 |
+
type: sharegpt
|
267 |
+
conversation: llama3
|
268 |
+
field: conversations
|
269 |
+
roles:
|
270 |
+
input:
|
271 |
+
- system
|
272 |
+
- gpt
|
273 |
+
output:
|
274 |
+
- human
|
275 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/RAG_Multilingual-es.jsonl
|
276 |
+
type: sharegpt
|
277 |
+
conversation: llama3
|
278 |
+
field: conversations
|
279 |
+
roles:
|
280 |
+
input:
|
281 |
+
- system
|
282 |
+
- gpt
|
283 |
+
output:
|
284 |
+
- human
|
285 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/This-is-not-a-dataset.jsonl
|
286 |
+
type: sharegpt
|
287 |
+
conversation: llama3
|
288 |
+
field: conversations
|
289 |
+
roles:
|
290 |
+
input:
|
291 |
+
- system
|
292 |
+
- gpt
|
293 |
+
output:
|
294 |
+
- human
|
295 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/wikipedia-es.jsonl
|
296 |
+
type: sharegpt
|
297 |
+
conversation: llama3
|
298 |
+
field: conversations
|
299 |
+
roles:
|
300 |
+
input:
|
301 |
+
- system
|
302 |
+
- gpt
|
303 |
+
output:
|
304 |
+
- human
|
305 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/Reddit-Post-Translation.jsonl
|
306 |
+
type: sharegpt
|
307 |
+
conversation: llama3
|
308 |
+
field: conversations
|
309 |
+
roles:
|
310 |
+
input:
|
311 |
+
- system
|
312 |
+
- gpt
|
313 |
+
output:
|
314 |
+
- human
|
315 |
+
- path: /ikerlariak/igarcia945/InstructDatasets/watermark.jsonl
|
316 |
+
type: sharegpt
|
317 |
+
conversation: llama3
|
318 |
+
field: conversations
|
319 |
+
roles:
|
320 |
+
input:
|
321 |
+
- system
|
322 |
+
- gpt
|
323 |
+
output:
|
324 |
+
- human
|
325 |
+
|
326 |
+
chat_template: llama3
|
327 |
+
|
328 |
+
dataset_prepared_path: /ikerlariak/igarcia945/Mortadelo-Filemon/Meta-Llama-3-8B-Instruct-Spanish-v2/dataset
|
329 |
+
|
330 |
+
shuffle_merged_datasets: true
|
331 |
+
|
332 |
+
val_set_size: 0.005
|
333 |
+
|
334 |
+
output_dir: /ikerlariak/igarcia945/Mortadelo-Filemon/Meta-Llama-3-8B-Instruct-Spanish-v2
|
335 |
+
|
336 |
+
adapter:
|
337 |
+
lora_model_dir:
|
338 |
+
|
339 |
+
sequence_len: 8192
|
340 |
+
sample_packing: true
|
341 |
+
eval_sample_packing: false
|
342 |
+
pad_to_sequence_len: false
|
343 |
+
|
344 |
+
tokens:
|
345 |
+
- "<tool_call>"
|
346 |
+
- "<tool_response>"
|
347 |
+
- "<tools>"
|
348 |
+
- "</tool_call>"
|
349 |
+
- "</tool_response>"
|
350 |
+
- "</tools>"
|
351 |
+
- "<reserved1>"
|
352 |
+
- "<reserved2>"
|
353 |
+
|
354 |
+
special_tokens:
|
355 |
+
pad_token: <|end_of_text|>
|
356 |
+
|
357 |
+
neftune_noise_alpha: 5
|
358 |
+
|
359 |
+
wandb_project: Mortadelo&Filemon
|
360 |
+
wandb_entity: igarciaf
|
361 |
+
wandb_watch:
|
362 |
+
wandb_name: Meta-Llama-3-8B-Instruct-Spanish-v2
|
363 |
+
wandb_log_model:
|
364 |
+
|
365 |
+
gradient_accumulation_steps: 32
|
366 |
+
micro_batch_size: 2
|
367 |
+
eval_batch_size: 2
|
368 |
+
num_epochs: 2
|
369 |
+
optimizer: adamw_torch_fused
|
370 |
+
lr_scheduler: cosine
|
371 |
+
learning_rate: 0.00007
|
372 |
+
|
373 |
+
|
374 |
+
train_on_inputs: false
|
375 |
+
group_by_length: false
|
376 |
+
bf16: true
|
377 |
+
fp16: false
|
378 |
+
tf32: false
|
379 |
+
|
380 |
+
gradient_checkpointing: true
|
381 |
+
early_stopping_patience:
|
382 |
+
resume_from_checkpoint:
|
383 |
+
local_rank:
|
384 |
+
logging_steps: 1
|
385 |
+
xformers_attention:
|
386 |
+
flash_attention: true
|
387 |
+
|
388 |
+
warmup_ratio: 0.03
|
389 |
+
evals_per_epoch: 4
|
390 |
+
eval_table_size:
|
391 |
+
save_strategy: "no"
|
392 |
+
debug:
|
393 |
+
deepspeed: /ikerlariak/igarcia945/Mortadelo-Filemon/train_configs/deepspeed_zero3.json
|
394 |
+
weight_decay: 0.0
|
395 |
+
fsdp:
|
396 |
+
fsdp_config:
|
397 |
+
|
398 |
+
seed: 33
|
399 |
+
```
|