File size: 5,240 Bytes
5b0388c
fd3a60d
 
 
 
 
 
0f35a20
5b0388c
9d51b51
5b0388c
 
3c81723
63d9f33
fd3a60d
63d9f33
fd3a60d
63d9f33
fd3a60d
63d9f33
fd3a60d
63d9f33
fd3a60d
63d9f33
60168e2
63d9f33
fd3a60d
63d9f33
fd3a60d
63d9f33
fd3a60d
63d9f33
 
 
 
fd3a60d
12f02fa
63d9f33
 
 
 
fd3a60d
 
 
 
 
 
 
 
a7c07bf
fd3a60d
 
a7c07bf
fd3a60d
a7c07bf
 
 
 
 
 
fd3a60d
a7c07bf
fd3a60d
a7c07bf
 
 
 
 
 
fd3a60d
 
 
a7c07bf
 
fd3a60d
 
875dac1
fd3a60d
4ca242d
875dac1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4ca242d
2e854e0
 
 
 
 
 
 
5423534
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
language:
- en
tags:
- text generation
- pytorch
- causal-lm
license: mit
datasets:
- EleutherAI/pile
---

# GPT-Neo 1.3B

## Model Description

GPT-Neo 1.3B is a transformer model designed using EleutherAI's replication of the GPT-3 architecture. GPT-Neo refers to the class of models, while 1.3B represents the number of parameters of this particular pre-trained model.

## Training data

GPT-Neo 1.3B was trained on the Pile, a large scale curated dataset created by EleutherAI for the purpose of training this model.

## Training procedure

This model was trained on the Pile for 380 billion tokens over 362,000 steps. It was trained as a masked autoregressive language model, using cross-entropy loss.

## Intended Use and Limitations

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.

### How to use

You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run:

```py
>>> from transformers import pipeline
>>> generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
>>> generator("EleutherAI has", do_sample=True, min_length=50)

[{'generated_text': 'EleutherAI has made a commitment to create new software packages for each of its major clients and has'}]
```

### Limitations and Biases

GPT-Neo was trained as an autoregressive language model. This means that its core functionality is taking a string of text and predicting the next token. While language models are widely used for tasks other than this, there are a lot of unknowns with this work.

GPT-Neo was trained on the Pile, a dataset known to contain profanity, lewd, and otherwise abrasive language. Depending on your usecase GPT-Neo may produce socially unacceptable text. See Sections 5 and 6 of the Pile paper for a more detailed analysis of the biases in the Pile.

As with all language models, it is hard to predict in advance how GPT-Neo will respond to particular prompts and offensive content may occur without warning. We recommend having a human curate or filter the outputs before releasing them, both to censor undesirable content and to improve the quality of the results. 

## Eval results

### Linguistic Reasoning

| Model and Size   | Pile BPB   | Pile PPL   | Wikitext PPL  | Lambada PPL | Lambada Acc | Winogrande | Hellaswag   |
| ---------------- | ---------- | ---------- | ------------- | ----------- | ----------- | ---------- | ----------- |
| **GPT-Neo 1.3B** | **0.7527** | **6.159**  | **13.10**     | **7.498**   | **57.23%**  | **55.01%** | **38.66%**  |
| GPT-2 1.5B       | 1.0468     | -----      | 17.48         | 10.634      | 51.21%      | 59.40%     | 40.03%      |
| GPT-Neo 2.7B     | 0.7165     | 5.646      | 11.39         | 5.626       | 62.22%      | 56.50%     | 42.73%      |
| GPT-3 Ada        | 0.9631     | -----      | -----         | 9.954       | 51.60%      | 52.90%     | 35.93%      |

### Physical and Scientific Reasoning

| Model and Size   | MathQA     | PubMedQA   | Piqa        |
| ---------------- | ---------- | ---------- | ----------- |
| **GPT-Neo 1.3B** | **24.05%** | **54.40%** | **71.11%**  |
| GPT-2 1.5B       | 23.64%     | 58.33%     | 70.78%      |
| GPT-Neo 2.7B     | 24.72%     | 57.54%     | 72.14%      |
| GPT-3 Ada        | 24.29%     | 52.80%     | 68.88%      |

### Down-Stream Applications

TBD

### BibTeX entry and citation info

To cite this model, please use
```bibtex
@software{gpt-neo,
  author       = {Black, Sid and
                  Leo, Gao and
                  Wang, Phil and
                  Leahy, Connor and
                  Biderman, Stella},
  title        = {{GPT-Neo: Large Scale Autoregressive Language 
                   Modeling with Mesh-Tensorflow}},
  month        = mar,
  year         = 2021,
  note         = {{If you use this software, please cite it using 
                   these metadata.}},
  publisher    = {Zenodo},
  version      = {1.0},
  doi          = {10.5281/zenodo.5297715},
  url          = {https://doi.org/10.5281/zenodo.5297715}
}

@article{gao2020pile,
  title={The Pile: An 800GB Dataset of Diverse Text for Language Modeling},
  author={Gao, Leo and Biderman, Stella and Black, Sid and Golding, Laurence and Hoppe, Travis and Foster, Charles and Phang, Jason and He, Horace and Thite, Anish and Nabeshima, Noa and others},
  journal={arXiv preprint arXiv:2101.00027},
  year={2020}
}
```
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_EleutherAI__gpt-neo-1.3B)

| Metric                | Value                     |
|-----------------------|---------------------------|
| Avg.                  | 29.44   |
| ARC (25-shot)         | 31.23          |
| HellaSwag (10-shot)   | 48.47    |
| MMLU (5-shot)         | 24.82         |
| TruthfulQA (0-shot)   | 39.63   |
| Winogrande (5-shot)   | 56.91   |
| GSM8K (5-shot)        | 0.45        |
| DROP (3-shot)         | 4.6         |