Commit
·
bef6224
1
Parent(s):
731d54e
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
language: en
|
| 3 |
thumbnail: http://www.huggingtweets.com/slime_machine/1640253262516/predictions.png
|
| 4 |
tags:
|
| 5 |
- huggingtweets
|
| 6 |
-
- customtag-test
|
| 7 |
widget:
|
| 8 |
- text: "My dream is"
|
| 9 |
---
|
|
|
|
| 10 |
<div class="inline-flex flex-col" style="line-height: 1.5;">
|
| 11 |
<div class="flex">
|
| 12 |
<div
|
|
@@ -22,4 +24,64 @@ widget:
|
|
| 22 |
<div style="text-align: center; margin-top: 3px; font-size: 16px; font-weight: 800">🤖 AI BOT 🤖</div>
|
| 23 |
<div style="text-align: center; font-size: 16px; font-weight: 800">rich homie cron</div>
|
| 24 |
<div style="text-align: center; font-size: 14px;">@slime_machine</div>
|
| 25 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Site Reliability Engineering
|
| 3 |
---
|
| 4 |
language: en
|
| 5 |
thumbnail: http://www.huggingtweets.com/slime_machine/1640253262516/predictions.png
|
| 6 |
tags:
|
| 7 |
- huggingtweets
|
|
|
|
| 8 |
widget:
|
| 9 |
- text: "My dream is"
|
| 10 |
---
|
| 11 |
+
|
| 12 |
<div class="inline-flex flex-col" style="line-height: 1.5;">
|
| 13 |
<div class="flex">
|
| 14 |
<div
|
|
|
|
| 24 |
<div style="text-align: center; margin-top: 3px; font-size: 16px; font-weight: 800">🤖 AI BOT 🤖</div>
|
| 25 |
<div style="text-align: center; font-size: 16px; font-weight: 800">rich homie cron</div>
|
| 26 |
<div style="text-align: center; font-size: 14px;">@slime_machine</div>
|
| 27 |
+
</div>
|
| 28 |
+
|
| 29 |
+
I was made with [huggingtweets](https://github.com/borisdayma/huggingtweets).
|
| 30 |
+
|
| 31 |
+
Create your own bot based on your favorite user with [the demo](https://colab.research.google.com/github/borisdayma/huggingtweets/blob/master/huggingtweets-demo.ipynb)!
|
| 32 |
+
|
| 33 |
+
## How does it work?
|
| 34 |
+
|
| 35 |
+
The model uses the following pipeline.
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
|
| 39 |
+
To understand how the model was developed, check the [W&B report](https://wandb.ai/wandb/huggingtweets/reports/HuggingTweets-Train-a-Model-to-Generate-Tweets--VmlldzoxMTY5MjI).
|
| 40 |
+
|
| 41 |
+
## Training data
|
| 42 |
+
|
| 43 |
+
The model was trained on tweets from rich homie cron.
|
| 44 |
+
|
| 45 |
+
| Data | rich homie cron |
|
| 46 |
+
| --- | --- |
|
| 47 |
+
| Tweets downloaded | 3234 |
|
| 48 |
+
| Retweets | 590 |
|
| 49 |
+
| Short tweets | 494 |
|
| 50 |
+
| Tweets kept | 2150 |
|
| 51 |
+
|
| 52 |
+
[Explore the data](https://wandb.ai/wandb/huggingtweets/runs/28uf2bgx/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.
|
| 53 |
+
|
| 54 |
+
## Training procedure
|
| 55 |
+
|
| 56 |
+
The model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on @slime_machine's tweets.
|
| 57 |
+
|
| 58 |
+
Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/wandb/huggingtweets/runs/3h5ua6ik) for full transparency and reproducibility.
|
| 59 |
+
|
| 60 |
+
At the end of training, [the final model](https://wandb.ai/wandb/huggingtweets/runs/3h5ua6ik/artifacts) is logged and versioned.
|
| 61 |
+
|
| 62 |
+
## How to use
|
| 63 |
+
|
| 64 |
+
You can use this model directly with a pipeline for text generation:
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from transformers import pipeline
|
| 68 |
+
generator = pipeline('text-generation',
|
| 69 |
+
model='huggingtweets/slime_machine')
|
| 70 |
+
generator("My dream is", num_return_sequences=5)
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Limitations and bias
|
| 74 |
+
|
| 75 |
+
The model suffers from [the same limitations and bias as GPT-2](https://huggingface.co/gpt2#limitations-and-bias).
|
| 76 |
+
|
| 77 |
+
In addition, the data present in the user's tweets further affects the text generated by the model.
|
| 78 |
+
|
| 79 |
+
## About
|
| 80 |
+
|
| 81 |
+
*Built by Boris Dayma*
|
| 82 |
+
|
| 83 |
+
[](https://twitter.com/intent/follow?screen_name=borisdayma)
|
| 84 |
+
|
| 85 |
+
For more details, visit the project repository.
|
| 86 |
+
|
| 87 |
+
[](https://github.com/borisdayma/huggingtweets)
|