SnakModel: Lessons Learned from Training an Open Danish Large Language Model

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhang, Mike, Müller-Eberstein, Max, Bassignana, Elisa, van der Goot, Rob
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912159897747456
author Zhang, Mike
Müller-Eberstein, Max
Bassignana, Elisa
van der Goot, Rob
author_facet Zhang, Mike
Müller-Eberstein, Max
Bassignana, Elisa
van der Goot, Rob
contents We present SnakModel, a Danish large language model (LLM) based on Llama2-7B, which we continuously pre-train on 13.6B Danish words, and further tune on 3.7M Danish instructions. As best practices for creating LLMs for smaller language communities have yet to be established, we examine the effects of early modeling and training decisions on downstream performance throughout the entire training pipeline, including (1) the creation of a strictly curated corpus of Danish text from diverse sources; (2) the language modeling and instruction-tuning training process itself, including the analysis of intermediate training dynamics, and ablations across different hyperparameters; (3) an evaluation on eight language and culturally-specific tasks. Across these experiments SnakModel achieves the highest overall performance, outperforming multiple contemporary Llama2-7B-based models. By making SnakModel, the majority of our pre-training corpus, and the associated code available under open licenses, we hope to foster further research and development in Danish Natural Language Processing, and establish training guidelines for languages with similar resource constraints.
format Preprint
id arxiv_https___arxiv_org_abs_2412_12956
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SnakModel: Lessons Learned from Training an Open Danish Large Language Model
Zhang, Mike
Müller-Eberstein, Max
Bassignana, Elisa
van der Goot, Rob
Computation and Language
We present SnakModel, a Danish large language model (LLM) based on Llama2-7B, which we continuously pre-train on 13.6B Danish words, and further tune on 3.7M Danish instructions. As best practices for creating LLMs for smaller language communities have yet to be established, we examine the effects of early modeling and training decisions on downstream performance throughout the entire training pipeline, including (1) the creation of a strictly curated corpus of Danish text from diverse sources; (2) the language modeling and instruction-tuning training process itself, including the analysis of intermediate training dynamics, and ablations across different hyperparameters; (3) an evaluation on eight language and culturally-specific tasks. Across these experiments SnakModel achieves the highest overall performance, outperforming multiple contemporary Llama2-7B-based models. By making SnakModel, the majority of our pre-training corpus, and the associated code available under open licenses, we hope to foster further research and development in Danish Natural Language Processing, and establish training guidelines for languages with similar resource constraints.
title SnakModel: Lessons Learned from Training an Open Danish Large Language Model
topic Computation and Language
url https://arxiv.org/abs/2412.12956