LLMsPracticalGuide README

README проекта с github.com/Mooler0410/LLMsPracticalGuide. Одним файлом markdown: README.md.

The Practical Guides for Large Language Models

Awesome

A curated (still actively updated) list of practical guide resources of LLMs. It's based on our survey paper: Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond and efforts from @xinyadu. The survey is partially based on the second half of this Blog. We also build an evolutionary tree of modern Large Language Models (LLMs) to trace the development of language models in recent years and highlights some of the most well-known models.

These sources aim to help practitioners navigate the vast landscape of large language models (LLMs) and their applications in natural language processing (NLP) applications. We also include their usage restrictions based on the model and data licensing information. If you find any resources in our repository helpful, please feel free to use them (don't forget to cite our paper! 😃). We welcome pull requests to refine this figure!

    @article{yang2023harnessing,
        title={Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond}, 
        author={Jingfeng Yang and Hongye Jin and Ruixiang Tang and Xiaotian Han and Qizhang Feng and Haoming Jiang and Bing Yin and Xia Hu},
        year={2023},
        eprint={2304.13712},
        archivePrefix={arXiv},
        primaryClass={cs.CL}
    }

Latest News💥

Other Practical Guides for LLMs

Catalog

Practical Guide for Models

BERT-style Language Models: Encoder-Decoder or Encoder-only

GPT-style Language Models: Decoder-only

Practical Guide for Data

Pretraining data

Finetuning data

Test data/user data

Practical Guide for NLP Tasks

We build a decision flow for choosing LLMs or fine-tuned models~\protect\footnotemark for user's NLP applications. The decision flow helps users assess whether their downstream NLP applications at hand meet specific conditions and, based on that evaluation, determine whether LLMs or fine-tuned models are the most suitable choice for their applications.

Traditional NLU tasks

Generation tasks

Knowledge-intensive tasks

Abilities with Scaling

Specific tasks

Real-World ''Tasks''

Efficiency

  1. Cost
  1. Latency
  1. Parameter-Efficient Fine-Tuning
  1. Pretraining System

Trustworthiness

  1. Robustness and Calibration
  1. Spurious biases
  1. Safety issues

Benchmark Instruction Tuning

Alignment

Safety Alignment (Harmless)

Truthfulness Alignment (Honest)

Practical Guides for Prompting (Helpful)

Alignment Efforts of Open-source Communtity

Usage and Restrictions

We build a table summarizing the LLMs usage restrictions (e.g. for commercial and research purposes). In particular, we provide the information from the models and their pretraining data's perspective. We urge the users in the community to refer to the licensing information for public models and data and use them in a responsible manner. We urge the developers to pay special attention to licensing, make them transparent and comprehensive, to prevent any unwanted and unforeseen usage.

LLMs Model Data
License Commercial Use Other noteable restrictions License Corpus
Encoder-only
BERT series of models (general domain) Apache 2.0 ✅ Public BooksCorpus, English Wikipedia
RoBERTa MIT license ✅ Public BookCorpus, CC-News, OpenWebText, STORIES
ERNIE Apache 2.0 ✅ Public English Wikipedia
SciBERT Apache 2.0 ✅ Public BERT corpus, 1.14M papers from Semantic Scholar
LegalBERT CC BY-SA 4.0 ❌ Public (except data from the Case Law Access Project) EU legislation, US court cases, etc.
BioBERT Apache 2.0 ✅ PubMed PubMed, PMC
Encoder-Decoder
T5 Apache 2.0 ✅ Public C4
Flan-T5 Apache 2.0 ✅ Public C4, Mixture of tasks (Fig 2 in paper)
BART Apache 2.0 ✅ Public RoBERTa corpus
GLM Apache 2.0 ✅ Public BooksCorpus and English Wikipedia
ChatGLM ChatGLM License ❌ No use for illegal purposes or military research, no harm the public interest of society N/A 1T tokens of Chinese and English corpus
Decoder-only
GPT2 Modified MIT License ✅ Use GPT-2 responsibly and clearly indicate your content was created using GPT-2. Public WebText
GPT-Neo MIT license ✅ Public Pile
GPT-J Apache 2.0 ✅ Public Pile
---> Dolly CC BY NC 4.0 ❌ CC BY NC 4.0, Subject to terms of Use of the data generated by OpenAI Pile, Self-Instruct
---> GPT4ALL-J Apache 2.0 ✅ Public GPT4All-J dataset
Pythia Apache 2.0 ✅ Public Pile
---> Dolly v2 MIT license ✅ Public Pile, databricks-dolly-15k
OPT OPT-175B LICENSE AGREEMENT ❌ No development relating to surveillance research and military, no harm the public interest of society Public RoBERTa corpus, the Pile, PushShift.io Reddit
---> OPT-IML OPT-175B LICENSE AGREEMENT ❌ same to OPT Public OPT corpus, Extended version of Super-NaturalInstructions
YaLM Apache 2.0 ✅ Unspecified Pile, Teams collected Texts in Russian
BLOOM The BigScience RAIL License ✅ No use of generating verifiably false information with the purpose of harming others;
content without expressly disclaiming that the text is machine generated
Public ROOTS corpus (Lauren¸con et al., 2022)
---> BLOOMZ The BigScience RAIL License ✅ same to BLOOM Public ROOTS corpus, xP3
Galactica CC BY-NC 4.0 ❌ N/A The Galactica Corpus
LLaMA Non-commercial bespoke license ❌ No development relating to surveillance research and military, no harm the public interest of society Public CommonCrawl, C4, Github, Wikipedia, etc.
---> Alpaca CC BY NC 4.0 ❌ CC BY NC 4.0, Subject to terms of Use of the data generated by OpenAI LLaMA corpus, Self-Instruct
---> Vicuna CC BY NC 4.0 ❌ Subject to terms of Use of the data generated by OpenAI;
Privacy Practices of ShareGPT
LLaMA corpus, 70K conversations from ShareGPT.com
---> GPT4ALL GPL Licensed LLaMa ❌ Public GPT4All dataset
OpenLLaMA Apache 2.0 ✅ Public RedPajama
CodeGeeX The CodeGeeX License ❌ No use for illegal purposes or military research Public Pile, CodeParrot, etc.
StarCoder BigCode OpenRAIL-M v1 license ✅ No use of generating verifiably false information with the purpose of harming others;
content without expressly disclaiming that the text is machine generated
Public The Stack
MPT-7B Apache 2.0 ✅ Public mC4 (english), The Stack, RedPajama, S2ORC
falcon TII Falcon LLM License ✅/❌ Available under a license allowing commercial use Public RefinedWeb

Star History

Star History Chart

LLMsPracticalGuide (Mooler0410/LLMsPracticalGuide)

Ищем в базе…

Что это?Курируемый, активно обновляемый список практических руководств по большим языковым моделям (LLM), охватывающий модели, данные, NLP-задачи и ограничения использования. Он основан на обзорной статье 'Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond'.
Это статья, список или инструмент?Это репозиторий в стиле GitHub awesome-list: каталог статей и ссылок, организованный по темам, плюс диаграмма эволюционного дерева LLM, без какого-либо исполняемого кода или ПО.
Как организован список?Он разбит на разделы: Practical Guide for Models (BERT-стиль против GPT-стиля), Practical Guide for Data (предобучение, дообучение, тестовые данные), Practical Guide for NLP Tasks (традиционный NLU, генерация, наукоёмкие задачи, масштабирование способностей, конкретные задачи), Efficiency, Trustworthiness, Benchmark Instruction Tuning и Alignment.
С чего начать новичку?Начните с раздела 'Practical Guide for Models', который делит LLM на энкодерные модели в стиле BERT (BERT, RoBERTa, T5, GLM) и декодерные модели в стиле GPT (GPT-3, LLaMA, PaLM, GPT-4), затем переходите к дереву решений NLP Tasks для выбора между LLM и дообученными моделями.
Проверяются ли записи и поддерживаются ли в актуальном состоянии?Репозиторий описывается как всё ещё активно обновляемый, с датированными записями в changelog (например, добавление AlexaTM, UniLM и раздела об ограничениях использования в апреле/мае 2023), но он поддерживается сообществом через пул-реквесты и отражает состояние исследований LLM на 2023 год.
Охватывает ли он ограничения использования и лицензирование моделей?Да, есть отдельный раздел 'Usage and Restrictions' об ограничениях коммерческого и исследовательского использования моделей и наборов данных, любезно предоставленный доктором Du.
Что за рисунок эволюционного дерева?Это диаграмма, прослеживающая развитие современных LLM по годам и выделяющая известные модели; исходные файлы PowerPoint как анимированной (GIF), так и статичной версий включены в репозиторий.
Связан ли он с опубликованной статьёй?Да, список основан на обзоре 'Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond' авторов репозитория и их соавтора Xinya Du.
Какие темы охватывает раздел Trustworthiness?Он охватывает устойчивость и калибровку, ложные смещения (например, обучение по «обходным путям», гендерные предубеждения) и проблемы безопасности вроде обнаружения сгенерированного LLM текста и распространения стереотипов.
Автор
Mooler0410
Размер
25.9 MB
Звёзды
10.2K
Обновлён
КоммитAug 06
Возраст
3 г
Коммиты · 90 дней