DarwinAnim8or
commited on
Commit
·
3c8cc2d
1
Parent(s):
d008326
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,57 @@
|
|
1 |
---
|
2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
datasets:
|
4 |
+
- DarwinAnim8or/grug
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
tags:
|
9 |
+
- grug
|
10 |
+
- caveman
|
11 |
+
- fun
|
12 |
---
|
13 |
+
|
14 |
+
# GPT-Grug-355m
|
15 |
+
A finetuned version of [GPT2-Medium](https://huggingface.co/EleutherAI/gpt-neo-125M) on the 'grug' dataset.
|
16 |
+
A demo is available [here](https://huggingface.co/gpt2-medium)
|
17 |
+
|
18 |
+
If you're interested, there's a smaller model available here: [GPT-Grug-125m](https://huggingface.co/DarwinAnim8or/gpt-grug-125m)
|
19 |
+
Do note however that it is very limited by comparison.
|
20 |
+
|
21 |
+
# Training Procedure
|
22 |
+
This was trained on the 'grug' dataset, using the "HappyTransformers" library on Google Colab.
|
23 |
+
This model was trained for 4 epochs with learning rate 1e-2.
|
24 |
+
The notebook used to train has been included in this repo.
|
25 |
+
|
26 |
+
# Biases & Limitations
|
27 |
+
This likely contains the same biases and limitations as the original GPT2 that it is based on, and additionally heavy biases from the grug datasets.
|
28 |
+
|
29 |
+
# Intended Use
|
30 |
+
This model is meant for fun, please do not take anything this caveman says seriously.
|
31 |
+
|
32 |
+
# Sample Use
|
33 |
+
```python
|
34 |
+
#Import model:
|
35 |
+
from happytransformer import HappyGeneration
|
36 |
+
happy_gen = HappyGeneration("GPT2", "DarwinAnim8or/gpt-grug-355m")
|
37 |
+
|
38 |
+
#Set generation settings:
|
39 |
+
from happytransformer import GENSettings
|
40 |
+
args_top_k = GENSettings(no_repeat_ngram_size=2, do_sample=True,top_k=50, temperature=0.7, max_length=50, early_stopping=False)
|
41 |
+
|
42 |
+
#Generate a response:
|
43 |
+
result = happy_gen.generate_text("""Person: "Hello grug"
|
44 |
+
Grug: "hello person"
|
45 |
+
###
|
46 |
+
Person: "how are you grug"
|
47 |
+
Grug: "grug doing ok. grug find many berry. good for tribe."
|
48 |
+
###
|
49 |
+
Person: "what does grug think of new spear weapon?"
|
50 |
+
Grug: "grug no like new spear weapon. grug stick bigger. spear too small, break easy"
|
51 |
+
###
|
52 |
+
Person: "what does grug think of football?"
|
53 |
+
Grug: \"""", args=args_top_k)
|
54 |
+
|
55 |
+
print(result)
|
56 |
+
print(result.text)
|
57 |
+
```
|