t-zero

Reproduce results and replicate training fo T0 (Multitask Prompted Training Enables Zero-Shot Task Generalization)

https://github.com/bigscience-workshop/t-zero

Science Score: 38.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary

Keywords from Contributors

dataset-hub speech jax audio transformer
Last synced: 10 months ago · JSON representation ·

Repository

Reproduce results and replicate training fo T0 (Multitask Prompted Training Enables Zero-Shot Task Generalization)

Basic Info
  • Host: GitHub
  • Owner: bigscience-workshop
  • License: apache-2.0
  • Language: Python
  • Default Branch: master
  • Size: 158 KB
Statistics
  • Stars: 462
  • Watchers: 24
  • Forks: 53
  • Open Issues: 10
  • Releases: 0
Created over 4 years ago · Last pushed over 3 years ago
Metadata Files
Readme License Citation

README.md

T-Zero

This repository serves primarily as codebase and instructions for training, evaluation and inference of T0.

T0 is the model developed in Multitask Prompted Training Enables Zero-Shot Task Generalization. In this paper, we demonstrate that massive multitask prompted fine-tuning is extremely effective to obtain task zero-shot generalization. T0 outperforms or matches GPT-3 while being 16x smaller.

While the codebase in this repository mainly reproduces and replicates the training and evaluation of T0, it will be useful for future research on massively multitask fine-tuning.

Setup

  1. Download the repo
  2. Navigate to root directory of the repo
  3. Run pip install -e . to install the t0 module. Depending on your application you can run multiple flavors:
    1. seqio_tasks: Provide original seqio tasks used for the massively multitask fine-tuning. You can run pip install -e .[seqio_tasks] to install the extra requirements.

Contents

  • Training: reproducing (or replicating) the massively multitask fine-tuning
  • Evaluation: reproducing the main results reported in the paper
  • Inference: running inference with T0
  • Examples: fine-tuning T0 with additional datasets or prompts.

Released checkpoints

Below are the links to the models reported in our paper. We recommend using the T0++ checkpoint as it yields the best performance on the most tasks. Meanwhile, the T0 and T0+ checkpoints are intended for zero-shot evaluations on held-out tasks. See Sections 3 and 5 of our paper for more details.

If you don’t have enough resources to run T0, a smaller version with 3 billion parameters (T0 3B) is also available. Note that it is trained with the same mixture of datasets as T0 (not T0++).

Lastly, if you want to study the effect of multitask prompted training (a.k.a. instruction tuning) itself, the checkpoints from our ablation studies may be helpful. T0 Single Prompt trains on one prompt per dataset, while T0 Original Task Only trains on an average of 5.7 prompts per datasets (cf. T0 vanilla trains on 8.03 prompts per dataset). Using this series of checkpoints allows you to measure, for example, as you increase the number of prompts per dataset, how the performance on some held-out X increases/decreases or behavior on a linguistic diagnostic set changes. See Section 6.2 of our paper for more details.

  • T-Zero: https://huggingface.co/bigscience/T0
  • T-Zero +: https://huggingface.co/bigscience/T0p
  • T-Zero ++: https://huggingface.co/bigscience/T0pp
  • T-Zero Single Prompt: https://huggingface.co/bigscience/T0singleprompt
  • T-Zero Original Task Only: https://huggingface.co/bigscience/T0originaltask_only
  • T-Zero 3B: https://huggingface.co/bigscience/T0_3B

Citation

If you find this resource useful, please cite the paper introducing T0:

bibtex @inproceedings{sanh2022multitask, title={Multitask Prompted Training Enables Zero-Shot Task Generalization}, author={Victor Sanh and Albert Webson and Colin Raffel and Stephen Bach and Lintang Sutawika and Zaid Alyafeai and Antoine Chaffin and Arnaud Stiegler and Arun Raja and Manan Dey and M Saiful Bari and Canwen Xu and Urmish Thakker and Shanya Sharma Sharma and Eliza Szczechla and Taewoon Kim and Gunjan Chhablani and Nihal Nayak and Debajyoti Datta and Jonathan Chang and Mike Tian-Jian Jiang and Han Wang and Matteo Manica and Sheng Shen and Zheng Xin Yong and Harshit Pandey and Rachel Bawden and Thomas Wang and Trishala Neeraj and Jos Rozen and Abheesht Sharma and Andrea Santilli and Thibault Fevry and Jason Alan Fries and Ryan Teehan and Teven Le Scao and Stella Biderman and Leo Gao and Thomas Wolf and Alexander M Rush}, booktitle={International Conference on Learning Representations}, year={2022}, url={https://openreview.net/forum?id=9Vrb9D0WI4} }

Owner

  • Name: BigScience Workshop
  • Login: bigscience-workshop
  • Kind: organization
  • Email: bigscience-contact@googlegroups.com

Research workshop on large language models - The Summer of Language Models 21

Citation (CITATION.bib)

@inproceedings{sanh2022multitask,
    title={Multitask Prompted Training Enables Zero-Shot Task Generalization},
    author={Victor Sanh and Albert Webson and Colin Raffel and Stephen Bach and Lintang Sutawika and Zaid Alyafeai and Antoine Chaffin and Arnaud Stiegler and Arun Raja and Manan Dey and M Saiful Bari and Canwen Xu and Urmish Thakker and Shanya Sharma Sharma and Eliza Szczechla and Taewoon Kim and Gunjan Chhablani and Nihal Nayak and Debajyoti Datta and Jonathan Chang and Mike Tian-Jian Jiang and Han Wang and Matteo Manica and Sheng Shen and Zheng Xin Yong and Harshit Pandey and Rachel Bawden and Thomas Wang and Trishala Neeraj and Jos Rozen and Abheesht Sharma and Andrea Santilli and Thibault Fevry and Jason Alan Fries and Ryan Teehan and Teven Le Scao and Stella Biderman and Leo Gao and Thomas Wolf and Alexander M Rush},
    booktitle={International Conference on Learning Representations},
    year={2022},
    url={https://openreview.net/forum?id=9Vrb9D0WI4}
}

GitHub Events

Total
  • Issues event: 1
  • Watch event: 10
  • Fork event: 1
Last Year
  • Issues event: 1
  • Watch event: 10
  • Fork event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 30
  • Total Committers: 6
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.367
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
VictorSanh v****h@g****m 19
Thomas Wang 2****1 6
Albert Webson a****n@c****u 2
kkawamu1 5****1 1
Vlad Lialin G****t@g****m 1
Colin Raffel c****l@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 40
  • Total pull requests: 32
  • Average time to close issues: 12 days
  • Average time to close pull requests: 25 days
  • Total issue authors: 20
  • Total pull request authors: 10
  • Average comments per issue: 1.93
  • Average comments per pull request: 1.41
  • Merged pull requests: 22
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • flyingwaters (3)
  • tuhinjubcse (1)
  • StevenTang1998 (1)
  • AADeLucia (1)
  • richardbaihe (1)
  • VictorSanh (1)
  • yuchenlin (1)
  • thesofakillers (1)
  • yitongshang2021 (1)
  • ShiJiawenwen (1)
  • louis030195 (1)
  • NtaylorOX (1)
  • hamishivi (1)
  • kevinpl07 (1)
  • fepegar (1)
Pull Request Authors
  • thomasw21 (7)
  • VictorSanh (3)
  • awebson (2)
  • lintangsutawika (2)
  • Muennighoff (1)
  • ijonglin (1)
  • zheng-yanan (1)
  • Guitaricet (1)
  • kkawamu1 (1)
  • craffel (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

setup.py pypi
  • accelerate *
  • datasets *
  • jinja2 *
  • promptsource ==0.1.0
  • protobuf *
  • scikit-learn *
  • sentencepiece *
  • torch *
  • transformers *