taisazero nazneen commited on
Commit
1c2c539
1 Parent(s): dcaced2

model documentation (#3)

Browse files

- model documentation (4900d12c0dc2c6ae95b224c76840432181688375)


Co-authored-by: Nazneen Rajani <nazneen@users.noreply.huggingface.co>

Files changed (1) hide show
  1. README.md +169 -0
README.md ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - flax
4
+ ---
5
+ # Model Card for gpt-neo-125M-code-clippy-dedup-2048
6
+
7
+
8
+ # Model Details
9
+
10
+ ## Model Description
11
+ More information needed
12
+
13
+ - **Developed by:** Flax Community
14
+ - **Shared by [Optional]:** Hugging Face
15
+ - **Model type:** Text Generation
16
+ - **Language(s) (NLP):** More information needed
17
+ - **License:** More information needed
18
+ - **Related Models:**
19
+ - **Parent Model:** GPT-Neo
20
+ - **Resources for more information:**
21
+ - [GitHub Repo](https://github.com/CodedotAl/gpt-code-clippy)
22
+
23
+ # Uses
24
+
25
+
26
+ ## Direct Use
27
+
28
+ This model can be used for the task of Text Generation
29
+
30
+ ## Downstream Use [Optional]
31
+
32
+ More information needed
33
+
34
+ ## Out-of-Scope Use
35
+
36
+
37
+ The model should not be used to intentionally create hostile or alienating environments for people.
38
+
39
+
40
+ # Bias, Risks, and Limitations
41
+
42
+ Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
43
+
44
+
45
+ ## Recommendations
46
+ The model creators note in the GitHub Repo](https://github.com/CodedotAl/gpt-code-clippy):
47
+ > **ISSUE : Wrong Filenames in the Dataset**
48
+ We recently came to know about a bug which happened during the scraping of the dataset. We found out that the file names are obsolete/misleading.[Refer this [issue](https://github.com/CodedotAl/gpt-code-clippy/issues/71)] We thank Naman for pointing out the issue.
49
+ This might have two implications
50
+ - Since the filtering for the training dataset is done using the file extension, we might have had wrong datapoints in the dataset while training and we might have missed a lot of right datapoints that belong to the languages of choice.
51
+
52
+ # Training Details
53
+
54
+ ## Training Data
55
+ The model creators note in the GitHub Repo](https://github.com/CodedotAl/gpt-code-clippy):
56
+ > For fine-tuning GPTNeo-125M on CodeClippy dataset we used AdamW optimizer (beta1=0.9, beta2=0.95) with GPT3-like learning rate schedule (4k warmup steps from 0 to 5e-5 followed by 50k cosine decay steps to 5e-6), weight decay 0.1 and batch size 1024, sequence length 2048.
57
+
58
+ ## Training Procedure
59
+
60
+
61
+ ### Preprocessing
62
+
63
+ More information needed
64
+
65
+ ### Speeds, Sizes, Times
66
+ The model creators note in the GitHub Repo](https://github.com/CodedotAl/gpt-code-clippy):
67
+ > For fine-tuning GPTNeo-125M on CodeClippy dataset we used AdamW optimizer (beta1=0.9, beta2=0.95) with GPT3-like learning rate schedule (4k warmup steps from 0 to 5e-5 followed by 50k cosine decay steps to 5e-6), weight decay 0.1 and batch size 1024, sequence length 2048. The choice of relatively large batch size and low LR with long warmup are made to avoid agressive updates and preserve the knowledge contained in pretrained GPTNeo weights.
68
+
69
+ # Evaluation
70
+
71
+
72
+ ## Testing Data, Factors & Metrics
73
+
74
+ ### Testing Data
75
+
76
+
77
+ The model creators note in the GitHub Repo](https://github.com/CodedotAl/gpt-code-clippy):
78
+ > The models are also evaluated on the [APPS](https://github.com/hendrycks/apps) and [HumanEval](https://github.com/openai/human-eval) datasets.
79
+
80
+
81
+
82
+
83
+
84
+ ### Factors
85
+
86
+ More information needed
87
+
88
+ ### Metrics
89
+
90
+ More information needed
91
+
92
+ ## Results
93
+
94
+ | Model | pass@1 | pass@2 | pass@5 | pass@10 |
95
+ | --------------------------------- | :---------: | :---------: | :---------: | :---------: |
96
+ | gpt-neo-125M-apps | 0.06% | 0.12% | 0.30% | 0.61% |
97
+
98
+ # Model Examination
99
+
100
+ More information needed
101
+
102
+ # Environmental Impact
103
+
104
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
105
+
106
+ - **Hardware Type:** More information needed
107
+ - **Hours used:** More information needed
108
+ - **Cloud Provider:** More information needed
109
+ - **Compute Region:** More information needed
110
+ - **Carbon Emitted:** More information needed
111
+
112
+ # Technical Specifications [optional]
113
+
114
+ ## Model Architecture and Objective
115
+
116
+ GPTNeoForCausalLM
117
+
118
+ ## Compute Infrastructure
119
+
120
+ More information needed
121
+
122
+ ### Hardware
123
+
124
+ More information needed
125
+
126
+ ### Software
127
+ More information needed
128
+
129
+ # Citation
130
+
131
+ **BibTeX:**
132
+ More information needed
133
+
134
+ **APA:**
135
+ More information needed
136
+
137
+ # Glossary [optional]
138
+
139
+
140
+ More information needed
141
+
142
+ # More Information [optional]
143
+
144
+ More information needed
145
+
146
+ # Model Card Authors [optional]
147
+ Flax Community in collaboration with Ezi Ozoani and the Hugging Face team
148
+
149
+ # Model Card Contact
150
+
151
+ More information needed
152
+
153
+ # How to Get Started with the Model
154
+
155
+ Use the code below to get started with the model.
156
+
157
+ <details>
158
+ <summary> Click to expand </summary>
159
+
160
+ ```python
161
+ from transformers import AutoTokenizer, AutoModelForCausalLM
162
+
163
+ tokenizer = AutoTokenizer.from_pretrained("flax-community/gpt-neo-125M-code-clippy-dedup-2048")
164
+
165
+ model = AutoModelForCausalLM.from_pretrained("flax-community/gpt-neo-125M-code-clippy-dedup-2048")
166
+
167
+ ```
168
+ </details>
169
+