lgaalves commited on
Commit
b49cb54
1 Parent(s): 745c186

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +73 -0
README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ datasets:
4
+ - garage-bAInd/Open-Platypus
5
+ language:
6
+ - en
7
+ pipeline_tag: text-generation
8
+ ---
9
+
10
+
11
+
12
+ # GPT-2 Open Platypus
13
+
14
+ **gpt2_open-platypus** is an instruction fine-tuned model based on the GPT-2 transformer architecture.
15
+
16
+
17
+ ### Benchmark Metrics
18
+
19
+ | Metric | GPT-2-Open-Platypus | GPT-2 (base) |
20
+ |-----------------------|-------|-------|
21
+ | Avg. | - | 29.9 |
22
+ | ARC (25-shot) | - | 21.84 |
23
+ | HellaSwag (10-shot) | - | 31.6 |
24
+ | MMLU (5-shot) | - | 25.86 |
25
+ | TruthfulQA (0-shot) | - | 40.67 |
26
+
27
+
28
+
29
+ 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.
30
+
31
+ ### Model Details
32
+
33
+ * **Trained by**: Luiz G A Alves
34
+ * **Model type:** **gpt2_open-platypus** is an auto-regressive language model based on the GPT-2 transformer architecture.
35
+ * **Language(s)**: English
36
+
37
+ ### How to use:
38
+
39
+ ```python
40
+ # Use a pipeline as a high-level helper
41
+ >>> from transformers import pipeline
42
+ >>> pipe = pipeline("text-generation", model="lgaalves/gpt2_open-platypus")
43
+ >>> question = "What is a large language model?"
44
+ >>> answer = pipe(question)
45
+ >>> print(answer[0]['generated_text'])
46
+ What is a large language model? The first and most recent papers on language use in the United States are highly readable and readable.
47
+ The work reviewed and analyzed is the only research about the language available in general and the results are widely accepted.
48
+ (If you are interested in analyzing this work, please click here for the study's author's bio and check out the study's conclusion.)
49
+ The results appear in both English and French (see the article that provides an introduction to the topic).
50
+ ```
51
+
52
+ or, you can load the model direclty using:
53
+
54
+ ```python
55
+ # Load model directly
56
+ from transformers import AutoTokenizer, AutoModelForCausalLM
57
+
58
+ tokenizer = AutoTokenizer.from_pretrained("lgaalves/gpt2_open-platypus")
59
+ model = AutoModelForCausalLM.from_pretrained("lgaalves/gpt2_open-platypus")
60
+ ```
61
+
62
+ ### Training Dataset
63
+
64
+ `lgaalves/gpt2_open-platypus` trained using STEM and logic based dataset [garage-bAInd/Open-Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus).
65
+
66
+ ### Training Procedure
67
+
68
+ `lgaalves/gpt2_open-platypus` was instruction fine-tuned using LoRA on 1 T4 GPU on Google Colab. It took about 27 minutes to train it.
69
+
70
+
71
+ # Intended uses, limitations & biases
72
+
73
+ 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.