Update model card
Browse files
README.md
CHANGED
|
@@ -1,199 +1,101 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
|
| 8 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
-
|
| 10 |
|
|
|
|
| 11 |
|
| 12 |
## Model Details
|
| 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 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
-
|
| 101 |
-
[More Information Needed]
|
| 102 |
-
|
| 103 |
-
## Evaluation
|
| 104 |
-
|
| 105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
-
|
| 107 |
-
### Testing Data, Factors & Metrics
|
| 108 |
-
|
| 109 |
-
#### Testing Data
|
| 110 |
-
|
| 111 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
-
|
| 113 |
-
[More Information Needed]
|
| 114 |
-
|
| 115 |
-
#### Factors
|
| 116 |
-
|
| 117 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
-
|
| 119 |
-
[More Information Needed]
|
| 120 |
-
|
| 121 |
-
#### Metrics
|
| 122 |
-
|
| 123 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
-
|
| 125 |
-
[More Information Needed]
|
| 126 |
-
|
| 127 |
-
### Results
|
| 128 |
-
|
| 129 |
-
[More Information Needed]
|
| 130 |
-
|
| 131 |
-
#### Summary
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
## Model Examination [optional]
|
| 136 |
-
|
| 137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
-
|
| 139 |
-
[More Information Needed]
|
| 140 |
-
|
| 141 |
-
## Environmental Impact
|
| 142 |
-
|
| 143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
-
|
| 145 |
-
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).
|
| 146 |
-
|
| 147 |
-
- **Hardware Type:** [More Information Needed]
|
| 148 |
-
- **Hours used:** [More Information Needed]
|
| 149 |
-
- **Cloud Provider:** [More Information Needed]
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
-
|
| 153 |
-
## Technical Specifications [optional]
|
| 154 |
-
|
| 155 |
-
### Model Architecture and Objective
|
| 156 |
-
|
| 157 |
-
[More Information Needed]
|
| 158 |
-
|
| 159 |
-
### Compute Infrastructure
|
| 160 |
-
|
| 161 |
-
[More Information Needed]
|
| 162 |
-
|
| 163 |
-
#### Hardware
|
| 164 |
-
|
| 165 |
-
[More Information Needed]
|
| 166 |
-
|
| 167 |
-
#### Software
|
| 168 |
-
|
| 169 |
-
[More Information Needed]
|
| 170 |
-
|
| 171 |
-
## Citation [optional]
|
| 172 |
-
|
| 173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
-
|
| 175 |
-
**BibTeX:**
|
| 176 |
-
|
| 177 |
-
[More Information Needed]
|
| 178 |
-
|
| 179 |
-
**APA:**
|
| 180 |
-
|
| 181 |
-
[More Information Needed]
|
| 182 |
-
|
| 183 |
-
## Glossary [optional]
|
| 184 |
-
|
| 185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
-
|
| 187 |
-
[More Information Needed]
|
| 188 |
-
|
| 189 |
-
## More Information [optional]
|
| 190 |
-
|
| 191 |
-
[More Information Needed]
|
| 192 |
-
|
| 193 |
-
## Model Card Authors [optional]
|
| 194 |
-
|
| 195 |
-
[More Information Needed]
|
| 196 |
-
|
| 197 |
-
## Model Card Contact
|
| 198 |
-
|
| 199 |
-
[More Information Needed]
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- gpt2
|
| 6 |
+
- text-generation
|
| 7 |
+
- pytorch
|
| 8 |
+
license: mit
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# SchorbGPT-Medium
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
+
This is a GPT-2 style language model trained on web data. The model uses the GPT-2 architecture and tokenizer.
|
| 14 |
|
| 15 |
## Model Details
|
| 16 |
|
| 17 |
+
- Model Type: GPT-2
|
| 18 |
+
- Training Data: Web text data
|
| 19 |
+
- Number of Parameters: GPT-2 medium scale
|
| 20 |
+
- Context Length: 512 tokens
|
| 21 |
+
- Training Framework: PyTorch
|
| 22 |
+
|
| 23 |
+
## Usage
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 27 |
+
|
| 28 |
+
tokenizer = AutoTokenizer.from_pretrained("iimaginary/schorbGPT-medium")
|
| 29 |
+
model = AutoModelForCausalLM.from_pretrained("iimaginary/schorbGPT-medium")
|
| 30 |
+
|
| 31 |
+
text = "Your prompt here"
|
| 32 |
+
inputs = tokenizer(text, return_tensors="pt")
|
| 33 |
+
outputs = model.generate(**inputs, max_length=100)
|
| 34 |
+
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Performance and Model Analysis
|
| 38 |
+
|
| 39 |
+
### Zero-shot Evaluation Results
|
| 40 |
+
|
| 41 |
+
| Task | Metric | Value | Stderr |
|
| 42 |
+
|------|--------|-------|--------|
|
| 43 |
+
| WikiText | bits_per_byte | 0.9860 | N/A |
|
| 44 |
+
| WikiText | byte_perplexity | 1.9806 | N/A |
|
| 45 |
+
| WikiText | word_perplexity | 38.6497 | N/A |
|
| 46 |
+
| ARC Easy | accuracy | 48.02% | ±1.03% |
|
| 47 |
+
| ARC Easy | accuracy (normalized) | 42.17% | ±1.01% |
|
| 48 |
+
| HellaSwag | accuracy | 29.06% | ±0.45% |
|
| 49 |
+
| HellaSwag | accuracy (normalized) | 31.26% | ±0.46% |
|
| 50 |
+
| LAMBADA | accuracy | 33.90% | ±0.66% |
|
| 51 |
+
| LAMBADA | perplexity | 36.2055 | ±1.4052 |
|
| 52 |
+
| PIQA | accuracy | 61.92% | ±1.13% |
|
| 53 |
+
| PIQA | accuracy (normalized) | 62.46% | ±1.13% |
|
| 54 |
+
| Winogrande | accuracy | 50.59% | ±1.41% |
|
| 55 |
+
|
| 56 |
+
### Analysis and Comparisons
|
| 57 |
+
|
| 58 |
+
#### Language Modeling Performance
|
| 59 |
+
The model achieves a word perplexity of 38.65 on WikiText, which is competitive with similar-sized models. For comparison:
|
| 60 |
+
- Original GPT-2 (small): ~35-40 perplexity
|
| 61 |
+
- GPT-2 medium: ~30-35 perplexity
|
| 62 |
+
- BERT-base: ~40-45 perplexity
|
| 63 |
+
|
| 64 |
+
#### Task-Specific Analysis:
|
| 65 |
+
|
| 66 |
+
1. Physical and Commonsense Reasoning:
|
| 67 |
+
- PIQA: 61.92% (Random baseline: 50%)
|
| 68 |
+
- Comparable to GPT-2 small/medium performance
|
| 69 |
+
- Shows good physical commonsense understanding
|
| 70 |
+
|
| 71 |
+
2. Science Knowledge:
|
| 72 |
+
- ARC Easy: 48.02% (Random baseline: 25%)
|
| 73 |
+
- Above random chance and demonstrates basic scientific knowledge
|
| 74 |
+
- Similar to performance seen in early GPT-2 variants
|
| 75 |
+
|
| 76 |
+
3. Linguistic Understanding:
|
| 77 |
+
- LAMBADA: 33.90% accuracy with perplexity of 36.21
|
| 78 |
+
- HellaSwag: 29.06% (Random baseline: 25%)
|
| 79 |
+
- Performance indicates basic linguistic and contextual understanding
|
| 80 |
+
- Typical range for non-fine-tuned models of this scale
|
| 81 |
+
|
| 82 |
+
4. Reasoning and Logic:
|
| 83 |
+
- Winogrande: 50.59% (Random baseline: 50%)
|
| 84 |
+
- At par with random chance, suggesting room for improvement in complex reasoning tasks
|
| 85 |
+
- Common for base models without specific fine-tuning
|
| 86 |
+
|
| 87 |
+
### Strengths and Limitations
|
| 88 |
+
|
| 89 |
+
**Strengths:**
|
| 90 |
+
- Strong performance on physical commonsense (PIQA)
|
| 91 |
+
- Decent basic science knowledge (ARC Easy)
|
| 92 |
+
- Competitive language modeling metrics
|
| 93 |
+
|
| 94 |
+
**Limitations:**
|
| 95 |
+
- Limited complex reasoning capabilities (Winogrande)
|
| 96 |
+
- Basic linguistic understanding could be improved (LAMBADA, HellaSwag)
|
| 97 |
+
- Performance typical of base models without task-specific fine-tuning
|
| 98 |
+
|
| 99 |
+
## Limitations
|
| 100 |
+
|
| 101 |
+
This is a base model without fine-tuning or alignment. It should be used with appropriate consideration of its capabilities and limitations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|