/ Модель

Характеристики

Контекст
4 096 токенов
Параметры
6,6 млрд
Размер весов
13,5 ГБ
Лицензия
Llama 2
Архитектура
llama · dense
Базовая модель
snakmodel-7b-base
Библиотека
transformers
Опубликована
17 окт 2024

snakmodel-7b-instruct

Генерация текстаТекст → текст3 профессии

Инструкционная модель Llama 2 на 6,6 млрд параметров для диалогов и выполнения текстовых инструкций на датском языке.

41скачиваний за 30 дней6лайковвеса обновлены17 июл 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

SnakModel-7B-Instruct — датская языковая модель NLPnorth research unit при IT University of Copenhagen. Это плотная авторегрессионная модель-трансформер семейства Llama 2 с 6,6 млрд параметров и контекстом 4096 токенов. Её дообучили следовать инструкциям на 3,7 млн датских пар «инструкция — ответ» после непрерывного предобучения на датских текстовых корпусах. Модель принимает текст в шаблоне [INST] {инструкция} [/INST] и генерирует текст; предназначена для диалогового помощника на датском языке.

Модель рассчитана прежде всего на датский язык, а использование на других языках выходит за рамки заявленного назначения. В README отмечено, что ответы могут содержать фактические ошибки и требуют проверки перед применением. Обучающие данные ограничены срезом до января 2024 года. Модель распространяется по исходной лицензии Llama 2.

Сценарии применения

  • ответы датским пользователям в чате-помощнике
  • выполнение текстовых инструкций на датском языке
  • подготовка черновиков датских текстов
  • суммаризация датских материалов
  • ответы на вопросы по датским текстам

Ограничения

Модель может генерировать фактически неверные ответы, поэтому их следует проверять. Она настроена на датский язык; применение на других языках выходит за рамки заявленного назначения, а обучающие данные имеют срез до января 2024 года.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

SnakModel Instruct Logo

Model Details

SnakModel is a 7B-parameter model specifically designed for the Danish language. This is the instruction-tuned variant: SnakModel-7B (instruct). Our models build upon Llama 2, which we continuously pre-train on a diverse collection of Danish corpora comprising 350M documents and 13.6B words, before tuning it on 3.7M Danish instruction-answer pairs.

Model Developers

NLPnorth research unit at the IT University of Copenhagen, Denmark.

Variations

SnakModel comes as an instruction-tuned, and a base version. In addition, each model includes intermediate checkpoints (under model revisions).

For running the model locally, we also provide a 4-bit quantized version optimized for Apple Silicon under NLPnorth/snakmodel-7b-instruct-mlx-4bit/.

Input

Text only, with instructions following the [INST] {instruction} [/INST] template.

Quickstart:

Here is a code snippet with apply_chat_template to show you how to load the tokenizer and model and how to generate contents.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "NLPnorth/snakmodel-7b-instruct"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = "Hvor ligger IT Universitet?"
messages = [
    {"role": "system", "content": "Du er Snakmodel, skabt af IT-Universitetet i København. Du er en hjælpsom assistent."},
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=20
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)

Output

Text only.

Model Architecture

SnakModel is an auto-regressive, transformer-based language model. The instruct version uses supervised fine-tuning (SFT) to enable instruction following in Danish.

Model Dates

SnakModel was trained between January 2024 and September 2024.

License

This model follows the original Llama 2 license agreement.

Research Paper

[Released in Q1 2025]

Intended Use & Limitations

Intended Use Cases

SnakModel is intended for use in Danish. The instruction-tuned variant is intended for assistant-like chat.

The instruct variant follows the Llama 2 (chat) instruction template, in which instructions are encapsulated in special tokens, i.e., [INST] {instruction} [/INST].

Limitations

SnakModel variants are fine-tuned on Danish data. As such, the use in other languages falls out-of-scope. While we found SnakModel to be more proficient in Danish, than other Llama 2-based models, it still frequently generates factually incorrect output. Make sure to carefully evaluate and weigh these factors before deploying the model. In addition, make sure to adhere to the original Llama 2 license agreement.

Hardware and Software

Training Factors

SnakModel is trained on private infrastructure with one node, containing four NVIDIA A100-PCIe 40GB GPUs. The node has an AMD Epyc 7662 128 Core Processor and 1TB of RAM.

Carbon Footprint

Total training time accounted to 8,928 GPU hours, with an average carbon efficiency at 0.122kg CO2eq / kWh. This is equivalent to 272.3kg CO2eq emitted, based on the Machine Learning Impact calculator.

Training Data

Overview

SnakModel was continuously pre-train on a diverse collection of Danish corpora comprising 350M documents and 13.6B words. The instruct version is further tuned on 3.7M Danish instruction-answer pairs.

Data Freshness

The pre-training data has a cutoff of January 2024.

Evaluation Results

ModelLA (mF1)NER (μF1)Senti (mF1)Summ (BERTScore)CSR (Acc.)QA (F1)TM (Acc.)CT (Acc.)AVG
LLaMA2-7B_base33.4322.3161.5465.5029.7663.5438.6957.0546.48
LLaMA2-7B_chat47.4224.6362.3566.1532.2461.3446.6755.1849.50
LLaMA2-7B_base + INST₍d₎ₐ36.1028.4862.8666.4329.0464.4049.1058.4649.35
LLaMA2-7B_chat + INST₍d₎ₐ43.4029.7065.9265.8130.9562.4657.2655.5951.39
Viking-7B33.6717.1849.4861.9625.1156.2923.9734.9037.82
SnakModel-7B_base56.2819.9157.4258.9530.4718.5269.1460.9346.45
SnakModel-7B_inst52.9129.7666.7066.6129.4664.6671.0571.8856.63

Citation

@inproceedings{zhang-etal-2025-snakmodel,
    title = "{SnakModel}: {Lessons} Learned from Training an Open {Danish} Large Language Model",
    author = {Zhang, Mike  and
      M{\"u}ller-Eberstein, Max  and
      Bassignana, Elisa  and
      Goot, Rob van der},
    editor = "Johansson, Richard  and
      Stymne, Sara",
    booktitle = "Proceedings of the Joint 25th Nordic Conference on Computational Linguistics and 11th Baltic Conference on Human Language Technologies (NoDaLiDa/Baltic-HLT 2025)",
    month = mar,
    year = "2025",
    address = "Tallinn, Estonia",
    publisher = "University of Tartu Library",
    url = "https://aclanthology.org/2025.nodalida-1.80/",
    pages = "812--825",
    ISBN = "978-9908-53-109-0",
    abstract = "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."
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
5bd2902

0 моделей