LysandreJik commited on
Commit
5813d1e
1 Parent(s): ef4a5f2

Add model card

Browse files
Files changed (1) hide show
  1. README.md +36 -0
README.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ datasets:
4
+ - The Pile
5
+ ---
6
+
7
+ # GPT Neo 2.7B
8
+
9
+ The GPT Neo model is pretrained on the [The Pile](https://github.com/EleutherAI/the-pile) dataset: an 825GiB English text corpus targeted at training large-scale language models.
10
+ It is an open source replication of OpenAI's GPT-3 model and is released in several checkpoints: the 1.3B and 2.7B variants.
11
+
12
+ It was released on EleutherAI's [GitHub page](https://github.com/EleutherAI/gpt-neo) the 21st of March 2021.
13
+
14
+ ## Model Description
15
+
16
+ GPT Neo is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was trained to guess the next word in sentences.
17
+
18
+ More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence, shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the predictions for the token i only uses the inputs from 1 to i but not the future tokens.
19
+
20
+ This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a prompt.
21
+
22
+ It obtains a 5.646 perplexity on The Pile, and a 11.39 perplexity on Wikitext
23
+
24
+ It uses a mix of global and local attention across its layers. It was trained for 400000 steps.
25
+
26
+ ## How to use
27
+
28
+ You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run:
29
+
30
+ ```py
31
+ >>> from transformers import pipeline
32
+ >>> generator = pipeline('text-generation', model='EleutherAI/gpt-neo-2.7B')
33
+ >>> generator("EleutherAI has", do_sample=True, min_length=50)
34
+
35
+ [{'generated_text': 'EleutherAI has made a commitment to create new software packages for each of its major clients and has'}]
36
+ ```