Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
datasets:
|
4 |
+
- garage-bAInd/Open-Platypus
|
5 |
+
- lgaalves/camel-physics
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
pipeline_tag: text-generation
|
9 |
+
---
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
# lgaalves/gpt2_camel_physics-platypus
|
14 |
+
|
15 |
+
**lgaalves/gpt2_camel_physics-platypuss** is an instruction fine-tuned model based on the GPT-2 transformer architecture.
|
16 |
+
|
17 |
+
|
18 |
+
### Benchmark Metrics
|
19 |
+
|
20 |
+
| Metric |lgaalves/gpt2_camel_physics-platypus | gpt2 (base) |
|
21 |
+
|-----------------------|-------|-------|
|
22 |
+
| Avg. | - | 29.9 |
|
23 |
+
| ARC (25-shot) | - | 21.84 |
|
24 |
+
| HellaSwag (10-shot) | - | 31.6 |
|
25 |
+
| MMLU (5-shot) | - | 25.86 |
|
26 |
+
| TruthfulQA (0-shot) | - | 40.67 |
|
27 |
+
|
28 |
+
We use state-of-the-art [Language Model Evaluation Harness](https://github.com/EleutherAI/lm-evaluation-harness) to run the benchmark tests above, using the same version as the HuggingFace LLM Leaderboard. Please see below for detailed instructions on reproducing benchmark results.
|
29 |
+
|
30 |
+
### Model Details
|
31 |
+
|
32 |
+
* **Trained by**: Luiz G A Alves
|
33 |
+
* **Model type:** **gpt2_open-platypus** is an auto-regressive language model based on the GPT-2 transformer architecture.
|
34 |
+
* **Language(s)**: English
|
35 |
+
|
36 |
+
### How to use:
|
37 |
+
|
38 |
+
```python
|
39 |
+
# Use a pipeline as a high-level helper
|
40 |
+
>>> from transformers import pipeline
|
41 |
+
>>> pipe = pipeline("text-generation", model="lgaalves/gpt2_camel_physics-platypus")
|
42 |
+
>>> question = "What is a large language model?"
|
43 |
+
>>> answer = pipe(question)
|
44 |
+
>>> print(answer[0]['generated_text'])
|
45 |
+
```
|
46 |
+
|
47 |
+
or, you can load the model direclty using:
|
48 |
+
|
49 |
+
```python
|
50 |
+
# Load model directly
|
51 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
52 |
+
|
53 |
+
tokenizer = AutoTokenizer.from_pretrained("lgaalves/gpt2_camel_physics-platypus")
|
54 |
+
model = AutoModelForCausalLM.from_pretrained("lgaalves/gpt2_camel_physics-platypus")
|
55 |
+
```
|
56 |
+
|
57 |
+
### Training Dataset
|
58 |
+
|
59 |
+
`lgaalves/gpt2_open-platypus` trained using STEM and logic based dataset [garage-bAInd/Open-Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus) and
|
60 |
+
the GPT4 generated dataset [lgaalves/camel-physics](https://huggingface.co/datasets/lgaalves/camel-physics).
|
61 |
+
|
62 |
+
|
63 |
+
### Training Procedure
|
64 |
+
|
65 |
+
`lgaalves/gpt2_camel_physics-platypus` was instruction fine-tuned using LoRA on 1 v100 GPU on Google Colab. It took about 17 minutes to train it.
|
66 |
+
|
67 |
+
|
68 |
+
# Intended uses, limitations & biases
|
69 |
+
|
70 |
+
You can use the raw model for text generation or fine-tune it to a downstream task. The model was not extensively tested and may produce false information. It contains a lot of unfiltered content from the internet, which is far from neutral.
|