achandlr commited on
Commit
6ee2be3
1 Parent(s): 6b8280d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +196 -0
README.md CHANGED
@@ -19,3 +19,199 @@ metrics:
19
  - accuracy
20
  pipeline_tag: question-answering
21
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  - accuracy
20
  pipeline_tag: question-answering
21
  ---
22
+
23
+ # Model Card for Model ID
24
+
25
+ This model is a fine-tuned version of Llama-3-8B-Instruct on the BatchPrompting dataset, which spans 13 diverse NLP tasks. The model has been fine-tuned to effectively perform batch prompting - answering multiple questions concatenated into a single prompt in one inference pass.
26
+
27
+ ## Model Details
28
+
29
+ This model is a fine-tuned version of Llama-3-8B-Instruct on the BatchPrompting dataset, which spans 13 diverse NLP tasks. The model has been fine-tuned to effectively perform batch prompting - answering multiple questions concatenated into a single prompt in one inference pass.
30
+
31
+ ### Model Description
32
+ TODO
33
+ <!-- Provide a longer summary of what this model is. -->
34
+
35
+
36
+
37
+ - **Developed by:** Alex Chandler, Sebastian Joseph
38
+ - **Model type:** Large Language Model (Llama-3 variant
39
+ - **Language(s) (NLP):** English
40
+ - **License:** MIT
41
+ - **Finetuned from model [optional]:** Llama-3-8B-Instruct
42
+
43
+ ### Model Sources [optional]
44
+
45
+ <!-- Provide the basic links for the model. -->
46
+
47
+ - **Repository:** Forthcoming
48
+ - **Paper:** Forthcoming
49
+ - **Demo:** Forthcoming
50
+
51
+ ## Uses
52
+
53
+ ### How to Use
54
+ Use with transformers
55
+ See the snippet below for usage with Transformers:
56
+ ```python
57
+ import transformers
58
+ import torch
59
+
60
+ model_id = "achandlr/Llama-3-8B-Instruct-BatchPromptQA"
61
+
62
+ # Load the model pipeline
63
+ pipeline = transformers.pipeline("text-generation", model=model_id)
64
+
65
+ # Generate text using the pipeline
66
+ generated_text = pipeline("Hey how are you doing today?")
67
+ print(generated_text)
68
+ ```
69
+
70
+
71
+ ### Direct Use
72
+
73
+ The model can be used for efficient question-answering on a variety of NLP tasks by concatenating multiple questions into a single prompt. It demonstrates strong generalization to unseen tasks and maintains performance with larger batch sizes compared to the non-fine-tuned model.
74
+
75
+ ### Out-of-Scope Use
76
+
77
+ The model should not be used for tasks that may cause harm or for generating factually incorrect or biased content. Caution should be exercised if using the model for high-stakes decision making.
78
+
79
+ ## Bias, Risks, and Limitations
80
+
81
+ The model may exhibit biases present in its pretraining data or the BatchPrompting dataset. It has not been extensively tested for fairness or potential misuse. Performance may degrade on out-of-distribution examples or tasks very dissimilar to the training data.
82
+
83
+ ### Recommendations
84
+
85
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
86
+
87
+ Users should be made aware of the model's potential limitations and biases. The model's outputs should be carefully monitored, especially when used for sensitive applications. More testing is needed to fully characterize its capabilities and shortcomings.
88
+ ## How to Get Started with the Model
89
+
90
+ Use the code below to get started with the model.
91
+
92
+ [More Information Needed]
93
+
94
+ ## Training Details
95
+
96
+ ### Training Data
97
+
98
+ The model was fine-tuned on our BatchPrompting dataset consisting of 13 NLP tasks:
99
+ - **GLUE Benchmark Tasks**: A collection of datasets used for evaluating the performance of models on a variety of natural language understanding tasks.
100
+ - **Mathematical Reasoning Datasets**:
101
+ - **GSM8K**: Focuses on numerical and logical reasoning challenges.
102
+ - **GSM8K-Hard**: Contains more complex problems from the GSM8K dataset.
103
+ - **CommonsenseQA**: Tests the model's commonsense reasoning ability through multiple-choice question answering.
104
+ - **RACE Reading Comprehension Dataset**: Consists of passages and questions designed to assess reading comprehension, derived from English exams.
105
+
106
+
107
+ ### Training Procedure
108
+
109
+ The model was fine-tuned using the LoRA method.
110
+
111
+
112
+ #### Training Hyperparameters
113
+
114
+ - **Training regime:** Forthcoming <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
115
+
116
+ #### Speeds, Sizes, Times [optional]
117
+
118
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
119
+ Forthcoming
120
+
121
+ [More Information Needed]
122
+
123
+ ## Evaluation
124
+
125
+ <!-- This section describes the evaluation protocols and provides the results. -->
126
+ Testing Data, Factors & Metrics
127
+ Evaluation was performed on tasks that were excluded from the training run. Key metrics included accuracy and BatchPrompt error rate (failure to answer a question or conform to the specified format).
128
+ A table of our results is forthcoming.
129
+
130
+ ### Testing Data, Factors & Metrics
131
+ Forthcoming
132
+
133
+ #### Testing Data
134
+ Forthcoming
135
+ <!-- This should link to a Dataset Card if possible. -->
136
+
137
+ [More Information Needed]
138
+
139
+
140
+ #### Metrics
141
+ Forthcoming
142
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
143
+
144
+ [More Information Needed]
145
+
146
+ ### Results
147
+ Forthcoming
148
+ [More Information Needed]
149
+
150
+ #### Summary
151
+ Forthcoming
152
+
153
+
154
+ ## Model Examination [optional]
155
+ Forthcoming
156
+ <!-- Relevant interpretability work for the model goes here -->
157
+
158
+ [More Information Needed]
159
+
160
+ ## Environmental Impact
161
+ Forthcoming
162
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
163
+
164
+ 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).
165
+
166
+ - **Hardware Type:** [More Information Needed]
167
+ - **Hours used:** [More Information Needed]
168
+ - **Cloud Provider:** [More Information Needed]
169
+ - **Compute Region:** [More Information Needed]
170
+ - **Carbon Emitted:** [More Information Needed]
171
+
172
+ ### Model Architecture and Objective
173
+
174
+ [More Information Needed]
175
+
176
+ ### Compute Infrastructure
177
+
178
+ [More Information Needed]
179
+
180
+ #### Hardware
181
+
182
+ [More Information Needed]
183
+
184
+ #### Software
185
+
186
+ [More Information Needed]
187
+
188
+ ## Citation
189
+
190
+ Forthcoming
191
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
192
+
193
+ **BibTeX:**
194
+
195
+ Forthcoming
196
+
197
+ **APA:**
198
+
199
+ [More Information Needed]
200
+
201
+ ## Glossary [optional]
202
+
203
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
204
+
205
+ [More Information Needed]
206
+
207
+ ## More Information [optional]
208
+
209
+ [More Information Needed]
210
+
211
+ ## Model Card Authors [optional]
212
+
213
+ [More Information Needed]
214
+
215
+ ## Model Card Contact
216
+
217
+ [More Information Needed]