LLMsPracticalGuide README

The project's README from github.com/Mooler0410/LLMsPracticalGuide. As one markdown file: 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)

Searching Database…

What is this?A curated, actively updated list of practical guide resources for large language models (LLMs), covering models, data, NLP tasks, and usage restrictions. It is based on a survey paper 'Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond'.
Is this a paper, a list, or a tool?It is a GitHub awesome-list style repository: a catalog of papers and links organized by topic, plus an evolutionary tree diagram of LLMs, not any runnable code or software.
How is the list organized?It is split into Practical Guide for Models (BERT-style vs GPT-style), Practical Guide for Data (pretraining, finetuning, test data), Practical Guide for NLP Tasks (traditional NLU, generation, knowledge-intensive, scaling abilities, specific tasks), Efficiency, Trustworthiness, Benchmark Instruction Tuning, and Alignment sections.
Where should a beginner start?Start with the 'Practical Guide for Models' section, which splits LLMs into BERT-style encoder models (BERT, RoBERTa, T5, GLM) and GPT-style decoder models (GPT-3, LLaMA, PaLM, GPT-4), then move to the NLP Tasks decision flow for choosing between LLMs and fine-tuned models.
Are entries vetted and kept current?The repo is described as still actively updated with dated changelog entries (e.g. adding AlexaTM, UniLM, usage restrictions section in April/May 2023), but it is community-maintained via pull requests and reflects the state of LLM research as of 2023.
Does it cover usage restrictions and licensing of models?Yes, there is a dedicated 'Usage and Restrictions' section covering commercial and research usage limitations for models and datasets, credited to Dr. Du.
What is the evolutionary tree figure?It is a diagram tracing the development of modern LLMs over the years, highlighting well-known models; the source PowerPoint files for both animated (GIF) and still versions are included in the repo.
Is this tied to a published paper?Yes, the list is based on the survey 'Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyond' by the repo authors and collaborator Xinya Du.
What topics does the Trustworthiness section cover?It covers robustness and calibration, spurious biases (e.g. shortcut learning, gender bias), and safety issues like LLM-generated text detection and stereotype propagation.
Creator
Mooler0410
Size
25.9 MB
Stars
10.2K
Updated
CommitAug 06
Age
3y
Commits · 90 Days