/ Модель

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

Контекст
8 192 токена
Параметры
7,5 млрд
Размер весов
16,1 ГБ
Лицензия
Своя лицензия
Архитектура
llama · dense
Опубликована
23 мая 2024

Llama-3-Alpha-Ko-8B-Instruct

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

Диалоговая модель Allganize на базе Llama 3 для генерации ответов на корейском и английском языках, созданная слиянием моделей и последующей настройкой ORPO.

71скачиваний за 30 дней52лайкавеса обновлены24 мая 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Llama-3-Alpha-Ko-8B-Instruct — диалоговая языковая модель Allganize на архитектуре Llama 3 с 7,5 млрд параметров и контекстом 8192 токена. Она создана методом эволюционного слияния Meta-Llama-3-8B, Meta-Llama-3-8B-Instruct и Llama-3-Open-Ko-8B, а затем доработана с помощью ORPO на наборах для улучшения качества ответов и предпочтений пользователей.

Модель предназначена для генерации ответов и диалога на корейском и английском языках, включая задачи рассуждения и понимания текста. В README приведены результаты на корейских тестах LogicKor и KoBEST; карточка заявляет конкурентные показатели на LogicKor, однако результаты представлены авторами и не гарантируют качество на других задачах.

Репозиторий содержит веса в формате safetensors. Лицензия указана как other, поэтому условия использования следует уточнить у разработчика перед применением.

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

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

Ограничения

Показатели бенчмарков приведены авторами и не описывают качество на всех сценариях. Лицензия указана как other, поэтому условия использования нужно уточнить у разработчика.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Alpha-Instruct We are thrilled to introduce Alpha-Instruct, our latest language model, which demonstrates exceptional capabilities in both Korean and English. Alpha-Instruct is developed using the Evolutionary Model Merging technique, enabling it to excel in complex language tasks and logical reasoning.

A key aspect of Alpha-Instruct's development is our community-based approach. We draw inspiration and ideas from various communities, shaping our datasets, methodologies, and the model itself. In return, we are committed to sharing our insights with the community, providing detailed information on the data, methods, and models used in Alpha-Instruct's creation.

Alpha-Instruct has achieved outstanding performance on the LogicKor, scoring an impressive 6.62. Remarkably, this performance rivals that of 70B models, showcasing the efficiency and power of our 8B model. This achievement highlights Alpha-Instruct's advanced computational and reasoning skills, making it a leading choice for diverse and demanding language tasks.

For more information and technical details about Alpha-Instruct, stay tuned to our updates and visit our website (Soon).


Overview

Alpha-Instruct is our latest language model, developed using 'Evolutionary Model Merging' technique. This method employs a 1:1 ratio of task-specific datasets from KoBEST and Haerae, resulting in a model with named 'Alpha-Ko-8B-Evo'. The following models were used for merging:

To refine and enhance Alpha-Instruct, we utilized a carefully curated high-quality datasets aimed at 'healing' the model's output, significantly boosting its human preference scores. We use ORPO specifically for this "healing" (RLHF) phase. The datasets* used include:

*Some of these datasets were partially used and translated for training, and we ensured there was no contamination during the evaluation process.

This approach effectively balances human preferences with the model's capabilities, making Alpha-Instruct well-suited for real-life scenarios where user satisfaction and performance are equally important.

Benchmark Results

Results in LogicKor* are as follows:

ModelSingle turn*Multi turn*Overall*
MLP-KTLim/llama-3-Korean-Bllossom-8B4.2383.4043.821
Alpha-Ko-Evo5.1435.2385.190
Alpha-Ko-Instruct (alt)7.0956.5716.833
Alpha-Ko-Instruct7.1436.0656.620
Alpha-Ko-Instruct-marlin (4bit)6.8575.7386.298

*Self report(Default settings with 'alpha' template, mean of 3).

Result in KoBEST(acc, num_shot=5) are as follows:

Taskbeomi/Llama-3-Open-Ko-8B-Instructmaywell/Llama-3-Ko-8B-InstructAlpha-Ko-EvoAlpha-Ko-Instruct
kobest overall0.62200.68520.72290.7055
kobest_boolq0.62540.72080.85470.8369
kobest_copa0.71100.76500.74200.7420
kobest_hellaswag0.38400.44400.42200.4240
kobest_sentineg0.83880.91940.94710.9244
kobest_wic0.57380.60400.60950.5730

*For reference, 'merged' models are chosen.

How to use

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "allganize/Llama-3-Alpha-Ko-Instruct"

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

messages = [
    {"role": "system", "content": "당신은 인공지능 어시스턴트입니다. 묻는 말에 친절하고 정확하게 답변하세요."},
    {"role": "user", "content": "피보나치 수열이 뭐야? 그리고 피보나치 수열에 대해 파이썬 코드를 짜줘볼래?"},
]

input_ids = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt"
).to(model.device)

terminators = [
    tokenizer.eos_token_id,
    tokenizer.convert_tokens_to_ids("<|eot_id|>")
]

outputs = model.generate(
    input_ids,
    max_new_tokens=512,
    eos_token_id=terminators,
    do_sample=False,
    repetition_penalty=1.05,
)
response = outputs[0][input_ids.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))

Correspondence to

Special Thanks

  • @beomi for providing us with a great model!

License

The use of this model is governed by the META LLAMA 3 COMMUNITY LICENSE AGREEMENT

Citation

If you use this model in your research, please cite it as follows:

@misc{alpha-instruct,
  author       = {Ji soo Kim},
  title        = {Alpha-Instruct: Allganize Bilingual Model},
  year         = {2024},
  publisher = {Hugging Face},
  journal = {Hugging Face repository},
  url          = {https://huggingface.co/allganize/Llama-3-Alpha-Ko-8B-Instruct},
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей