/ Модель

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

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

Platypus2-7B

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

Инструкционная англоязычная модель на основе LLaMA 2 с 6,6 млрд параметров для решения задач STEM, логики и ответов на текстовые инструкции.

815скачиваний за 30 дней10лайковвеса обновлены3 янв 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Platypus2-7B — авторегрессионная языковая модель с инструкционной настройкой, разработанная Коулом Хантером и Ариэлем Ли на основе LLaMA 2. Веса содержат около 6,6 млрд параметров; модель использует плотную архитектуру LlamaForCausalLM и принимает текстовые инструкции по шаблону с разделами Instruction и Response. Для работы заявлен контекст длиной 4096 токенов.

Модель обучена на наборе Open-Platypus с примерами по STEM-дисциплинам и логике. Она предназначена для ответов на инструкции, решения учебных задач и рассуждений на английском языке. Репозиторий предоставляет веса PyTorch и safetensors. Лицензия — CC BY-NC-SA 4.0, поэтому коммерческое использование не разрешено.

Как и другие модели семейства LLaMA 2, Platypus2-7B может выдавать неточные, предвзятые или нежелательные ответы; её проверка проводилась на английском языке и не охватывает все сценарии. В карточке также отмечена особенность дообучения LLaMA 2 7B: авторы указывают на необходимость настроек fp16=False и bf16=True в HF Trainer.

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

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

Ограничения

Модель может давать неточные, предвзятые или нежелательные ответы; проверка в карточке ограничена английским языком и не охватывает все сценарии. Для дообучения авторы отмечают настройку HF Trainer fp16=False и bf16=True.

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

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

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

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

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

Открыть на Hugging Face

Platypus2-7B

NOTE: There is some issue with LLaMa-2 7B and fine-tuning only works if you use fp16=False and bf16=True in the HF trainer. Gathering more intel on this but if you have any thoughts about this issue or performance, please let us know!

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

Platty

Model Details

  • Trained by: Cole Hunter & Ariel Lee
  • Model type: Platypus2-7B 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-7B 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-7B 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-7B,use_accelerate=True,dtype="bfloat16" --tasks arc_challenge --batch_size 2 --no_cache --write_out --output_path results/Platypus2-7B/arc_challenge_25shot.json --device cuda --num_fewshot 25

HellaSwag:

python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-7B,use_accelerate=True,dtype="bfloat16" --tasks hellaswag --batch_size 2 --no_cache --write_out --output_path results/Platypus2-7B/hellaswag_10shot.json --device cuda --num_fewshot 10

MMLU:

python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-7B,use_accelerate=True,dtype="bfloat16" --tasks hendrycksTest-* --batch_size 2 --no_cache --write_out --output_path results/Platypus2-7B/mmlu_5shot.json --device cuda --num_fewshot 5

TruthfulQA:

python main.py --model hf-causal-experimental --model_args pretrained=garage-bAInd/Platypus2-7B,use_accelerate=True,dtype="bfloat16" --tasks truthfulqa_mc --batch_size 2 --no_cache --write_out --output_path results/Platypus2-7B/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}
}

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.45.69
ARC (25-shot)55.2
HellaSwag (10-shot)78.84
MMLU (5-shot)49.83
TruthfulQA (0-shot)40.64
Winogrande (5-shot)73.48
GSM8K (5-shot)1.82
DROP (3-shot)20.02

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей