VictorSanh HF staff commited on
Commit
e8c435c
1 Parent(s): 89880f4

update pre-filled examples + make pronunciation more explicit

Browse files
Files changed (1) hide show
  1. README.md +47 -8
README.md CHANGED
@@ -6,32 +6,71 @@ license: apache-2.0
6
  widget:
7
  - text: "A is the son's of B's uncle. What is the family relationship between A and B?"
8
  - text: "Reorder the words in this sentence: justin and name bieber years is my am I 27 old."
9
- - text: "It's rainy today but it will stop in a few hours, when should I go for my run?"
10
- - text: "How many hydrogen atoms are in a water molecule?"
11
  - text: "Task: copy but say the opposite.\n
12
  PSG won its match against Barca."
13
  - text: "Is this review positive or negative? Review: Best cast iron skillet you will every buy."
14
- - text: "Question A:How is air traffic controlled?
15
  \nQuestion B: How do you become an air traffic controller?\nPick one: these questions are duplicates or not duplicates."
16
  - text: "Barack Obama nominated Hilary Clinton as his secretary of state on Monday. He chose her because she had foreign affairs experience as a former First Lady.
17
  \nIn the previous sentence, decide who 'her' is referring to."
18
  - text: "Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app.\n
19
  Select the category for the above sentence from: mobile, website, billing, account access."
20
- - text: "I don't have the proper tool to whisk a bowl of eggs.
21
- \nWhat should I use instead? Choose between a knife, a pen and a pair of chopsticks."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  ---
23
 
24
  # Model Description
25
 
26
- T0* is a series of encoder-decoder models trained on a large set of different tasks specified in natural language prompts. We convert numerous English supervised datasets into prompts, each with multiple templates using varying formulations. These prompted datasets allow for benchmarking the ability of a model to perform completely unseen tasks specified in natural language. To obtain T0*, we fine-tune a pretrained language model on this multitask mixture covering many different NLP tasks.
27
 
28
  # Intended uses
29
 
30
  You can use the models to perform inference on tasks by specifying your query in natural language, and the models will generate a prediction. For instance, you can ask *"Is this review positive or negative? Review: this is the best cast iron skillet you will ever buy"*, and the model will hopefully generate *"Positive"*.
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  # How to use
33
 
34
- We make available the models presented in our [paper](https://arxiv.org/abs/2110.08207) along with the ablation models. We recommend using the [T0pp](https://huggingface.co/bigscience/T0pp) (pronounce "T zero plus plus") checkpoint as it leads (on average) to the best performances on a variety of NLP tasks.
35
 
36
  |Model|Number of parameters|
37
  |-|-|
@@ -256,7 +295,7 @@ To measure the extent to which our model reproduces gender biases, we evaluate o
256
 
257
  ```bibtex
258
  @misc{sanh2021multitask,
259
- title={Multitask Prompted Training Enables Zero-Shot Task Generalization},
260
  author={Victor Sanh and Albert Webson and Colin Raffel and Stephen H. Bach and Lintang Sutawika and Zaid Alyafeai and Antoine Chaffin and Arnaud Stiegler and Teven Le Scao 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 Stella Biderman and Leo Gao and Tali Bers and Thomas Wolf and Alexander M. Rush},
261
  year={2021},
262
  eprint={2110.08207},
6
  widget:
7
  - text: "A is the son's of B's uncle. What is the family relationship between A and B?"
8
  - text: "Reorder the words in this sentence: justin and name bieber years is my am I 27 old."
 
 
9
  - text: "Task: copy but say the opposite.\n
10
  PSG won its match against Barca."
11
  - text: "Is this review positive or negative? Review: Best cast iron skillet you will every buy."
12
+ - text: "Question A: How is air traffic controlled?
13
  \nQuestion B: How do you become an air traffic controller?\nPick one: these questions are duplicates or not duplicates."
14
  - text: "Barack Obama nominated Hilary Clinton as his secretary of state on Monday. He chose her because she had foreign affairs experience as a former First Lady.
15
  \nIn the previous sentence, decide who 'her' is referring to."
16
  - text: "Last week I upgraded my iOS version and ever since then my phone has been overheating whenever I use your app.\n
17
  Select the category for the above sentence from: mobile, website, billing, account access."
18
+ - text: "Sentence 1: Gyorgy Heizler, head of the local disaster unit, said the coach was carrying 38 passengers.\n
19
+ Sentence 2: The head of the local disaster unit, Gyorgy Heizler, said the bus was full except for 38 empty seats.\n\n
20
+ Do sentences 1 and 2 have the same meaning?"
21
+ - text: "Here's the beginning of an article, choose a tag that best describes the topic of the article: business, cinema, politics, health, travel, sports.\n\n
22
+ The best and worst fo 007 as 'No time to die' marks Daniel Craig's exit.\n
23
+ (CNN) Some 007 math: 60 years, 25 movies (with a small asterisk) and six James Bonds. For a Cold War creation, Ian Fleming's suave spy has certainly gotten around, but despite different guises in the tuxedo and occasional scuba gear, when it comes to Bond ratings, there really shouldn't be much argument about who wore it best."
24
+ - text: "Max: Know any good websites to buy clothes from?\n
25
+ Payton: Sure :) LINK 1, LINK 2, LINK 3\n
26
+ Max: That's a lot of them!\n
27
+ Payton: Yeah, but they have different things so I usually buy things from 2 or 3 of them.\n
28
+ Max: I'll check them out. Thanks.\n\n
29
+ Who or what are Payton and Max referring to when they say 'them'?"
30
+ - text: "Is the word 'table' used in the same meaning in the two previous sentences?\n\n
31
+ Sentence A: you can leave the books on the table over there.\n
32
+ Sentence B: the tables in this book are very hard to read."
33
+ - text: "On a shelf, there are five books: a gray book, a red book, a purple book, a blue book, and a black book.\n
34
+ The red book is to the right of the gray book. The black book is to the left of the blue book. The blue book is to the left of the gray book. The purple book is the second from the right.\n\n
35
+ Which book is the leftmost book?"
36
+ - text: "The word 'binne' means any animal that is furry and has four legs, and the word 'bam' means a simple sort of dwelling.\n\n
37
+ Which of the following best characterizes binne bams?\n
38
+ - Sentence 1: Binne bams are for pets.\n
39
+ - Sentence 2: Binne bams are typically furnished with sofas and televisions.\n
40
+ - Sentence 3: Binne bams are luxurious apartments.\n
41
+ - Sentence 4: Binne bams are places where people live."
42
  ---
43
 
44
  # Model Description
45
 
46
+ T0* (pronounce "T Zero") is a series of encoder-decoder models trained on a large set of different tasks specified in natural language prompts. We convert numerous English supervised datasets into prompts, each with multiple templates using varying formulations. These prompted datasets allow for benchmarking the ability of a model to perform completely unseen tasks specified in natural language. To obtain T0*, we fine-tune a pretrained language model on this multitask mixture covering many different NLP tasks.
47
 
48
  # Intended uses
49
 
50
  You can use the models to perform inference on tasks by specifying your query in natural language, and the models will generate a prediction. For instance, you can ask *"Is this review positive or negative? Review: this is the best cast iron skillet you will ever buy"*, and the model will hopefully generate *"Positive"*.
51
 
52
+ A few other examples that you can try:
53
+ - *A is the son's of B's uncle. What is the family relationship between A and B?*
54
+ - *Question A: How is air traffic controlled?<br>
55
+ Question B: How do you become an air traffic controller?<br>
56
+ Pick one: these questions are duplicates or not duplicates.*
57
+ - *Is the word 'table' used in the same meaning in the two previous sentences?<br><br>
58
+ Sentence A: you can leave the books on the table over there.<br>
59
+ Sentence B: the tables in this book are very hard to read.*
60
+ - *Max: Know any good websites to buy clothes from?<br>
61
+ Payton: Sure :) LINK 1, LINK 2, LINK 3<br>
62
+ Max: That's a lot of them!<br>
63
+ Payton: Yeah, but they have different things so I usually buy things from 2 or 3 of them.<br>
64
+ Max: I'll check them out. Thanks.<br><br>
65
+ Who or what are Payton and Max referring to when they say 'them'?*
66
+ - *On a shelf, there are five books: a gray book, a red book, a purple book, a blue book, and a black book.<br>
67
+ The red book is to the right of the gray book. The black book is to the left of the blue book. The blue book is to the left of the gray book. The purple book is the second from the right.<br><br>
68
+ Which book is the leftmost book?*
69
+ - *Reorder the words in this sentence: justin and name bieber years is my am I 27 old.*
70
+
71
  # How to use
72
 
73
+ We make available the models presented in our [paper](https://arxiv.org/abs/2110.08207) along with the ablation models. We recommend using the [T0pp](https://huggingface.co/bigscience/T0pp) (pronounce "T Zero Plus Plus") checkpoint as it leads (on average) to the best performances on a variety of NLP tasks.
74
 
75
  |Model|Number of parameters|
76
  |-|-|
295
 
296
  ```bibtex
297
  @misc{sanh2021multitask,
298
+ title={Multitask Prompted Training Enables Zero-Shot Task Generalization},
299
  author={Victor Sanh and Albert Webson and Colin Raffel and Stephen H. Bach and Lintang Sutawika and Zaid Alyafeai and Antoine Chaffin and Arnaud Stiegler and Teven Le Scao 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 Stella Biderman and Leo Gao and Tali Bers and Thomas Wolf and Alexander M. Rush},
300
  year={2021},
301
  eprint={2110.08207},