/ Модель

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

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

Llama-3-Alpha-Ko-8B-Evo

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

Корейско-английская модель на базе Llama 3 для генерации текста и дальнейшей настройки под специализированные задачи.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Ограничения

README рекомендует для обычного диалога модель Alpha-Instruct, а эту модель описывает как основу для дальнейшей настройки. Указана лицензия other без конкретных условий использования; результаты бенчмарков представлены авторами.

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

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

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

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

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

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

Открыть на Hugging Face

Alpha-Instruct

This is the "Evo" model, which serves as a base(kind of) for fine-tuning to various tasks. For general chat purposes, use the Alpha-Instruct model.

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.60. 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 categorized under revision='evo'. The following models were used for merging:

To refine and enhance Alpha-Instruct, we utilized a specialized dataset aimed at 'healing' the model's output, significantly boosting its human preference scores. 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. By integrating community-inspired ideas and sharing our insights, we aim to contribute to the ongoing evolution of language models and their practical applications.

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.0486.600
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(main)
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
  • 'Merged' models are chosen for reference

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
Ревизия весов
fcfac10

0 моделей