/ Модель

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

Контекст
2 048 токенов
Параметры
6,7 млрд
Размер весов
27,4 ГБ
Лицензия
CC BY-NC-SA 4.0
Архитектура
llama · dense
Библиотека
transformers
Опубликована
31 авг 2023

KO-Platypus2-7B-ex

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

Корейская дообученная LLaMA 2 на 7B для генерации текста и выполнения корейскоязычных языковых задач.

47скачиваний за 30 дней23лайкавеса обновлены11 янв 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

KO-Platypus2-7B-ex — корейская языковая модель, разработанная Кюджин Ханом (Kyujin Han) в исследовательском консорциуме Media Group Saramin Forest и Marker. Это авторегрессионная плотная модель на архитектуре LLaMA 2 с 6,7 млрд параметров, дообученная на корейском переводном наборе KOpen-platypus и расширенным словарём SentencePiece BPE на 46 336 токенов. Модель принимает текст и генерирует текст; заявленная базовая модель — Llama-2-ko-7b. Контекст составляет 2048 токенов.

Модель подходит для генерации корейского текста, ответов на вопросы и экспериментов с корейскоязычными задачами понимания и классификации. Карточка приводит результаты отдельных оценок на COPA, HellaSwag, BoolQ и SentiNeg, но не даёт оснований считать их гарантией качества для прикладных сценариев. Репозиторий распространяется в форматах PyTorch и Safetensors по лицензии CC BY-NC-SA 4.0, которая ограничивает коммерческое использование.

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

  • генерация корейских ответов на вопросы
  • создание и продолжение корейских текстов
  • эксперименты с корейским пониманием естественного языка
  • оценка корейских моделей на задачах BoolQ и COPA

Ограничения

Модель унаследовала типичные для LLM риски: может выдавать неточные, предвзятые или нежелательные ответы. Контекст ограничен 2048 токенами; лицензия запрещает коммерческое использование.

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

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

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

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

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

Открыть на Hugging Face

(주)미디어그룹사람과숲과 (주)마커의 LLM 연구 컨소시엄에서 개발된 모델입니다
The license is cc-by-nc-sa-4.0.

Ko-Platypus2-7B-EX

More detail repo(Github): KO-Platypus KO-Platypus2-13B

Model Details

Model Developers Kyujin Han (kyujinpy)

Input Models input text only.

Output Models generate text only.

Model Architecture

KO-Platypus2-7B-ex is an auto-regressive language model based on the LLaMA2 transformer architecture.

Base Model Llama-2-ko-7b

Training Dataset

I use KOpen-platypus.
It is high-quality korean translation dataset about open-platypus.

I use A100 GPU 40GB and COLAB, when trianing.

Vocab Expansion

Model NameVocabulary SizeDescription
Original Platypus232000Sentencepiece BPE
Expanded KO-Platypus-ex46336Sentencepiece BPE. Added Korean vocab and merges

Tokenizing "안녕하세요, 오늘은 날씨가 좋네요."

ModelTokens
Platypus2-7b['▁', '안', '<0xEB>', '<0x85>', '<0x95>', '하', '세', '요', ',', '▁', '오', '<0xEB>', '<0x8A>', '<0x98>', '은', '▁', '<0xEB>', '<0x82>', '<0xA0>', '씨', '가', '▁', '<0xEC>', '<0xA2>', '<0x8B>', '<0xEB>', '<0x84>', '<0xA4>', '요', '.']
KO-Platypus2-7b-ex['▁안녕', '하세요', ',', '▁오늘은', '▁날', '씨가', '▁좋네요', '.']

Tokenizing "Platypus: Quick, Cheap, and Powerful Refinement of LLMs"

ModelTokens
Platypus2-7b['▁Plat', 'yp', 'us', ':', '▁Quick', ',', '▁Che', 'ap', ',', '▁and', '▁Power', 'ful', '▁Re', 'fin', 'ement', '▁of', '▁L', 'LM', 's']
KO-Platypus2-7b-ex[▁Plat', 'yp', 'us', ':', '▁Quick', ',', '▁Che', 'ap', ',', '▁and', '▁Power', 'ful', '▁Re', 'fin', 'ement', '▁of', '▁L', 'LM', 's']

Model Benchmark

LM Eval Harness - Korean (polyglot branch)

Question Answering (QA)

COPA (F1)

jpg

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.71960.71930.72040.7206
Polyglot-ko-3.8b0.75950.76080.76380.7788
Polyglot-ko-5.8b0.77450.76760.77750.7887
Polyglot-ko-12.8b0.79370.81080.80370.8369
Llama-2-Ko-7b 20B0.73880.76260.78080.7979
Llama-2-Ko-7b 40B0.74360.79270.80370.8259
*Platypus2-7B0.55940.59130.58630.5916
KO-platypus2-7B-EX(ours)0.75090.78990.80290.8290
*Platypus2-7B Original used https://huggingface.co/garage-bAInd/Platypus2-7B

Natural Language Inference (NLI; 자연어 추론 평가)

HellaSwag (F1)

jpg

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.52470.52600.52780.5427
Polyglot-ko-3.8b0.57070.58300.56700.5787
Polyglot-ko-5.8b0.59760.59980.59790.6208
Polyglot-ko-12.8b0.59540.63060.60980.6118
Llama-2-Ko-7b 20B0.45180.46680.47260.4828
Llama-2-Ko-7b 40B0.45620.46570.46980.4774
*Platypus2-7B0.40970.42580.43580.4271
KO-platypus2-7B-EX(ours)0.45710.44610.43710.4525
*Platypus2-7B Original used https://huggingface.co/garage-bAInd/Platypus2-7B

Question Answering (QA)

BoolQ (F1)

jpg

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.35520.47510.41090.4038
Polyglot-ko-3.8b0.43200.52630.49300.4038
Polyglot-ko-5.8b0.43560.56980.51870.5236
Polyglot-ko-12.8b0.48180.60410.62890.6448
Llama-2-Ko-7b 20B0.36070.67970.68010.6622
Llama-2-Ko-7b 40B0.57860.69770.70840.7144
*Platypus2-7B0.34190.60240.56300.5461
KO-platypus2-7B-EX(ours)0.60280.69790.70160.6988
*Platypus2-7B Original used https://huggingface.co/garage-bAInd/Platypus2-7B

Classification

SentiNeg (F1)

jpg

Model0-shot5-shot10-shot50-shot
Polyglot-ko-1.3b0.67900.62570.55140.7851
Polyglot-ko-3.8b0.48580.79500.73200.7851
Polyglot-ko-5.8b0.33940.88410.88080.9521
Polyglot-ko-12.8b0.91170.90150.93450.9723
Llama-2-Ko-7b 20B0.48550.82950.87110.8513
Llama-2-Ko-7b 40B0.45940.76110.72760.9370
*Platypus2-7B0.40980.73880.75580.8129
KO-platypus2-7B-EX(ours)0.58210.76530.79910.8643
*Platypus2-7B Original used https://huggingface.co/garage-bAInd/Platypus2-7B

Implementation Code

### KO-Platypus
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

repo = "kyujinpy/KO-Platypus2-7B-ex"
ko_platypus = AutoModelForCausalLM.from_pretrained(
        repo,
        return_dict=True,
        torch_dtype=torch.float16,
        device_map='auto'
)
ko_platypus_tokenizer = AutoTokenizer.from_pretrained(repo)

Readme format: beomi/llama-2-ko-7b


Below is the original model card of the Platypus2-13B model.

Platypus2-13B

Platypus-13B is an instruction fine-tuned model based on the LLaMA2-13B transformer architecture.

Platty

Benchmark Metrics

MetricValue
MMLU (5-shot)56.70
ARC (25-shot)61.26
HellaSwag (10-shot)82.56
TruthfulQA (0-shot)44.86
Avg.61.35

We use state-of-the-art Language Model Evaluation Harness to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard. Please see below for detailed instructions on reproducing benchmark results.

Model Details

  • Trained by: Cole Hunter & Ariel Lee
  • Model type: Platypus2-13B is an auto-regressive language model based on the LLaMA2 transformer architecture.
  • Language(s): English
  • License for base weights: Non-Commercial Creative Commons license (CC BY-NC-4.0)

Prompt Template

### Instruction:

<prompt> (without the <>)

### Response:

Training Dataset

garage-bAInd/Platypus2-13B trained using STEM and logic based dataset garage-bAInd/Open-Platypus.

Please see our paper and project webpage for additional information.

Training Procedure

garage-bAInd/Platypus2-13B was instruction fine-tuned using LoRA on 1 A100 80GB. For training details and inference instructions please see the Platypus2 GitHub repo.

Reproducing Evaluation Results

Install LM Evaluation Harness:

# clone repository
git clone https://github.com/EleutherAI/lm-evaluation-harness.git
# check out the correct commit
git checkout b281b0921b636bc36ad05c0b0b0763bd6dd43463
# change to repo directory
cd lm-evaluation-harness
# install
pip install -e .

Each task was evaluated on 1 A100 80GB GPU.

ARC:

python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-13B --tasks arc_challenge --batch_size 1 --no_cache --write_out --output_path results/Platypus2-13B/arc_challenge_25shot.json --device cuda --num_fewshot 25

HellaSwag:

python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-13B --tasks hellaswag --batch_size 1 --no_cache --write_out --output_path results/Platypus2-13B/hellaswag_10shot.json --device cuda --num_fewshot 10

MMLU:

python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-13B --tasks hendrycksTest-* --batch_size 1 --no_cache --write_out --output_path results/Platypus2-13B/mmlu_5shot.json --device cuda --num_fewshot 5

TruthfulQA:

python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-13B --tasks truthfulqa_mc --batch_size 1 --no_cache --write_out --output_path results/Platypus2-13B/truthfulqa_0shot.json --device cuda

Limitations and bias

Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2 variants, developers should perform safety testing and tuning tailored to their specific applications of the model.

Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/

Citations

@article{platypus2023,
    title={Platypus: Quick, Cheap, and Powerful Refinement of LLMs}, 
    author={Ariel N. Lee and Cole J. Hunter and Nataniel Ruiz},
    booktitle={arXiv preprint arxiv:2308.07317},
    year={2023}
}
@misc{touvron2023llama,
    title={Llama 2: Open Foundation and Fine-Tuned Chat Models}, 
    author={Hugo Touvron and Louis Martin and Kevin Stone and Peter Albert and Amjad Almahairi and Yasmine Babaei and Nikolay Bashlykov       year={2023},
    eprint={2307.09288},
    archivePrefix={arXiv},
}
@inproceedings{
    hu2022lora,
    title={Lo{RA}: Low-Rank Adaptation of Large Language Models},
    author={Edward J Hu and Yelong Shen and Phillip Wallis and Zeyuan Allen-Zhu and Yuanzhi Li and Shean Wang and Lu Wang and Weizhu Chen},
    booktitle={International Conference on Learning Representations},
    year={2022},
    url={https://openreview.net/forum?id=nZeVKeeFYf9}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей