File size: 6,558 Bytes
8fa11a3 b01930f 8fa11a3 b01930f 978c16f 6ee2be3 8b7b1b8 6ee2be3 5785bd3 6ee2be3 5785bd3 6ee2be3 5785bd3 6ee2be3 |
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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
---
language:
- en
license: mit
library_name: transformers
tags:
- batch prompting
- batch
- BatchPrompt
- BatchPrompting
- GLUE
- Llama
- fine-tuned
- Llama3
- Llama-3-8B-Instruct
datasets:
- achandlr/BatchPrompting
metrics:
- accuracy
pipeline_tag: question-answering
---
# Model Card for Model ID
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.
## Model Details
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.
### Model Description
<!-- Provide a longer summary of what this model is. TODO-->
- **Developed by:** Alex Chandler, Sebastian Joseph
- **Model type:** Large Language Model (Llama-3 variant
- **Language(s) (NLP):** English
- **License:** MIT
- **Finetuned from model [optional]:** Llama-3-8B-Instruct
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** Forthcoming
- **Paper:** Forthcoming
- **Demo:** Forthcoming
## Uses
### How to Use
Use with transformers
See the snippet below for usage with Transformers:
```python
import transformers
import torch
model_id = "achandlr/Llama-3-8B-Instruct-BatchPromptQA"
# Load the model pipeline
pipeline = transformers.pipeline("text-generation", model=model_id)
# Generate text using the pipeline
generated_text = pipeline("Hey how are you doing today?")
print(generated_text)
```
### Direct Use
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.
### Out-of-Scope Use
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.
## Bias, Risks, and Limitations
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.
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
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.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
The model was fine-tuned on our BatchPrompting dataset consisting of 13 NLP tasks:
- **GLUE Benchmark Tasks**: A collection of datasets used for evaluating the performance of models on a variety of natural language understanding tasks.
- **Mathematical Reasoning Datasets**:
- **GSM8K**: Focuses on numerical and logical reasoning challenges.
- **GSM8K-Hard**: Contains more complex problems from the GSM8K dataset.
- **CommonsenseQA**: Tests the model's commonsense reasoning ability through multiple-choice question answering.
- **RACE Reading Comprehension Dataset**: Consists of passages and questions designed to assess reading comprehension, derived from English exams.
### Training Procedure
The model was fine-tuned using the LoRA method.
#### Training Hyperparameters
- **Training regime:** Forthcoming <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
Forthcoming
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
Testing Data, Factors & Metrics
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).
A table of our results is forthcoming.
### Testing Data, Factors & Metrics
Forthcoming
#### Testing Data
Forthcoming
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Metrics
Forthcoming
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
Forthcoming
[More Information Needed]
#### Summary
Forthcoming
## Model Examination [optional]
Forthcoming
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly
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).
## Environmental Impact
- **Hardware Type:** [More Information Needed]
- **Hours used:** [More Information Needed]
- **Cloud Provider:** [More Information Needed]
- **Compute Region:** [More Information Needed]
- **Carbon Emitted:** [More Information Needed]
-->
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation
Forthcoming
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
Forthcoming
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed] |