New model from https://wandb.ai/wandb/huggingtweets/runs/3nxbm83r
Browse files- README.md +20 -58
- config.json +4 -0
- merges.txt +1 -1
- pytorch_model.bin +2 -2
- special_tokens_map.json +1 -1
- tokenizer_config.json +1 -1
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
CHANGED
|
@@ -1,28 +1,17 @@
|
|
| 1 |
---
|
| 2 |
language: en
|
| 3 |
-
thumbnail: https://
|
| 4 |
tags:
|
| 5 |
- huggingtweets
|
| 6 |
widget:
|
| 7 |
- text: "My dream is"
|
| 8 |
---
|
| 9 |
|
| 10 |
-
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/typography@0.2.x/dist/typography.min.css">
|
| 11 |
-
|
| 12 |
-
<style>
|
| 13 |
-
@media (prefers-color-scheme: dark) {
|
| 14 |
-
.prose { color: #E2E8F0 !important; }
|
| 15 |
-
.prose h2, .prose h3, .prose a, .prose thead { color: #F7FAFC !important; }
|
| 16 |
-
}
|
| 17 |
-
</style>
|
| 18 |
-
|
| 19 |
-
<section class='prose'>
|
| 20 |
-
|
| 21 |
<div>
|
| 22 |
<div style="width: 132px; height:132px; border-radius: 50%; background-size: cover; background-image: url('https://pbs.twimg.com/profile_images/378800000836981162/b683f7509ec792c3e481ead332940cdc_400x400.jpeg')">
|
| 23 |
</div>
|
| 24 |
<div style="margin-top: 8px; font-size: 19px; font-weight: 800">Stephen King 🤖 AI Bot </div>
|
| 25 |
-
<div style="font-size: 15px
|
| 26 |
</div>
|
| 27 |
|
| 28 |
I was made with [huggingtweets](https://github.com/borisdayma/huggingtweets).
|
|
@@ -41,56 +30,35 @@ To understand how the model was developed, check the [W&B report](https://app.wa
|
|
| 41 |
|
| 42 |
The model was trained on [@stephenking's tweets](https://twitter.com/stephenking).
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
<tr style='border-width:0 0 1px 0; border-color: #E2E8F0'>
|
| 53 |
-
<td style='border-width:0'>Tweets downloaded</td>
|
| 54 |
-
<td style='border-width:0'>3194</td>
|
| 55 |
-
</tr>
|
| 56 |
-
<tr style='border-width:0 0 1px 0; border-color: #E2E8F0'>
|
| 57 |
-
<td style='border-width:0'>Retweets</td>
|
| 58 |
-
<td style='border-width:0'>747</td>
|
| 59 |
-
</tr>
|
| 60 |
-
<tr style='border-width:0 0 1px 0; border-color: #E2E8F0'>
|
| 61 |
-
<td style='border-width:0'>Short tweets</td>
|
| 62 |
-
<td style='border-width:0'>178</td>
|
| 63 |
-
</tr>
|
| 64 |
-
<tr style='border-width:0'>
|
| 65 |
-
<td style='border-width:0'>Tweets kept</td>
|
| 66 |
-
<td style='border-width:0'>2269</td>
|
| 67 |
-
</tr>
|
| 68 |
-
</tbody>
|
| 69 |
-
</table>
|
| 70 |
-
|
| 71 |
-
[Explore the data](https://app.wandb.ai/wandb/huggingtweets/runs/ey1pt4eu/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.
|
| 72 |
|
| 73 |
## Training procedure
|
| 74 |
|
| 75 |
The model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on @stephenking's tweets.
|
| 76 |
|
| 77 |
-
Hyperparameters and metrics are recorded in the [W&B training run](https://
|
| 78 |
|
| 79 |
-
At the end of training, [the final model](https://
|
| 80 |
|
| 81 |
-
##
|
| 82 |
-
|
| 83 |
-
### How to use
|
| 84 |
|
| 85 |
You can use this model directly with a pipeline for text generation:
|
| 86 |
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
|
|
|
| 92 |
|
| 93 |
-
|
| 94 |
|
| 95 |
The model suffers from [the same limitations and bias as GPT-2](https://huggingface.co/gpt2#limitations-and-bias).
|
| 96 |
|
|
@@ -100,14 +68,8 @@ In addition, the data present in the user's tweets further affects the text gene
|
|
| 100 |
|
| 101 |
*Built by Boris Dayma*
|
| 102 |
|
| 103 |
-
</section>
|
| 104 |
-
|
| 105 |
[](https://twitter.com/intent/follow?screen_name=borisdayma)
|
| 106 |
|
| 107 |
-
<section class='prose'>
|
| 108 |
For more details, visit the project repository.
|
| 109 |
-
</section>
|
| 110 |
|
| 111 |
[](https://github.com/borisdayma/huggingtweets)
|
| 112 |
-
|
| 113 |
-
<!--- random size file -->
|
|
|
|
| 1 |
---
|
| 2 |
language: en
|
| 3 |
+
thumbnail: https://github.com/borisdayma/huggingtweets/blob/master/img/logo.png?raw=true
|
| 4 |
tags:
|
| 5 |
- huggingtweets
|
| 6 |
widget:
|
| 7 |
- text: "My dream is"
|
| 8 |
---
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
<div>
|
| 11 |
<div style="width: 132px; height:132px; border-radius: 50%; background-size: cover; background-image: url('https://pbs.twimg.com/profile_images/378800000836981162/b683f7509ec792c3e481ead332940cdc_400x400.jpeg')">
|
| 12 |
</div>
|
| 13 |
<div style="margin-top: 8px; font-size: 19px; font-weight: 800">Stephen King 🤖 AI Bot </div>
|
| 14 |
+
<div style="font-size: 15px">@stephenking bot</div>
|
| 15 |
</div>
|
| 16 |
|
| 17 |
I was made with [huggingtweets](https://github.com/borisdayma/huggingtweets).
|
|
|
|
| 30 |
|
| 31 |
The model was trained on [@stephenking's tweets](https://twitter.com/stephenking).
|
| 32 |
|
| 33 |
+
| Data | Quantity |
|
| 34 |
+
| --- | --- |
|
| 35 |
+
| Tweets downloaded | 3182 |
|
| 36 |
+
| Retweets | 721 |
|
| 37 |
+
| Short tweets | 189 |
|
| 38 |
+
| Tweets kept | 2272 |
|
| 39 |
+
|
| 40 |
+
[Explore the data](https://wandb.ai/wandb/huggingtweets/runs/26bv6b2f/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
## Training procedure
|
| 43 |
|
| 44 |
The model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on @stephenking's tweets.
|
| 45 |
|
| 46 |
+
Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/wandb/huggingtweets/runs/3nxbm83r) for full transparency and reproducibility.
|
| 47 |
|
| 48 |
+
At the end of training, [the final model](https://wandb.ai/wandb/huggingtweets/runs/3nxbm83r/artifacts) is logged and versioned.
|
| 49 |
|
| 50 |
+
## How to use
|
|
|
|
|
|
|
| 51 |
|
| 52 |
You can use this model directly with a pipeline for text generation:
|
| 53 |
|
| 54 |
+
```python
|
| 55 |
+
from transformers import pipeline
|
| 56 |
+
generator = pipeline('text-generation',
|
| 57 |
+
model='huggingtweets/stephenking')
|
| 58 |
+
generator("My dream is", num_return_sequences=5)
|
| 59 |
+
```
|
| 60 |
|
| 61 |
+
## Limitations and bias
|
| 62 |
|
| 63 |
The model suffers from [the same limitations and bias as GPT-2](https://huggingface.co/gpt2#limitations-and-bias).
|
| 64 |
|
|
|
|
| 68 |
|
| 69 |
*Built by Boris Dayma*
|
| 70 |
|
|
|
|
|
|
|
| 71 |
[](https://twitter.com/intent/follow?screen_name=borisdayma)
|
| 72 |
|
|
|
|
| 73 |
For more details, visit the project repository.
|
|
|
|
| 74 |
|
| 75 |
[](https://github.com/borisdayma/huggingtweets)
|
|
|
|
|
|
config.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"activation_function": "gelu_new",
|
| 3 |
"architectures": [
|
| 4 |
"GPT2LMHeadModel"
|
|
@@ -7,6 +8,7 @@
|
|
| 7 |
"bos_token_id": 50256,
|
| 8 |
"embd_pdrop": 0.1,
|
| 9 |
"eos_token_id": 50256,
|
|
|
|
| 10 |
"initializer_range": 0.02,
|
| 11 |
"layer_norm_epsilon": 1e-05,
|
| 12 |
"model_type": "gpt2",
|
|
@@ -32,5 +34,7 @@
|
|
| 32 |
"top_p": 0.95
|
| 33 |
}
|
| 34 |
},
|
|
|
|
|
|
|
| 35 |
"vocab_size": 50257
|
| 36 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "gpt2",
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
|
|
|
| 8 |
"bos_token_id": 50256,
|
| 9 |
"embd_pdrop": 0.1,
|
| 10 |
"eos_token_id": 50256,
|
| 11 |
+
"gradient_checkpointing": false,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"layer_norm_epsilon": 1e-05,
|
| 14 |
"model_type": "gpt2",
|
|
|
|
| 34 |
"top_p": 0.95
|
| 35 |
}
|
| 36 |
},
|
| 37 |
+
"transformers_version": "4.3.2",
|
| 38 |
+
"use_cache": true,
|
| 39 |
"vocab_size": 50257
|
| 40 |
}
|
merges.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
#version: 0.2
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
|
|
|
| 1 |
+
#version: 0.2 - Trained by `huggingface/tokenizers`
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c9e0218fc5efaae08967fb1e6c46ee4f76a6af8f029484ada436ab91e93d2b26
|
| 3 |
+
size 510406805
|
special_tokens_map.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"bos_token":
|
|
|
|
| 1 |
+
{"bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "unk_token": "<|endoftext|>"}
|
tokenizer_config.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"model_max_length": 1024}
|
|
|
|
| 1 |
+
{"unk_token": "<|endoftext|>", "bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "add_prefix_space": false, "model_max_length": 1024, "name_or_path": "gpt2"}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5896b42542cb6da662ceb0cd729be2ffc5ad0aaa3d804007756df6e5d79ffe3a
|
| 3 |
+
size 2159
|
vocab.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|