system HF Staff commited on
Commit
1b567f6
·
1 Parent(s): f85e27e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +79 -0
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ thumbnail: https://github.com/borisdayma/huggingtweets/blob/master/img/logo.png?raw=true
4
+ tags:
5
+ - exbert
6
+ - huggingtweets
7
+ widget:
8
+ - text: "My dream is"
9
+ ---
10
+
11
+ <div>
12
+ <div style="width: 132px; height:132px; border-radius: 50%; background-size: cover; background-image: url('https://pbs.twimg.com/profile_images/573383872/img_0621_400x400.jpg')">
13
+ </div>
14
+ <div style="margin-top: 8px; font-size: 19px; font-weight: 800">Lukas Biewald 🤖 AI Bot </div>
15
+ <div style="font-size: 15px; color: #657786">@l2k bot</div>
16
+ </div>
17
+
18
+ I was made with [huggingtweets](https://github.com/borisdayma/huggingtweets).
19
+
20
+ 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)!
21
+
22
+ ## Intended uses & limitations
23
+
24
+ #### How to use
25
+
26
+ You can use this model directly with a pipeline for text generation:
27
+
28
+ ```python
29
+ >>> from transformers import pipeline
30
+ >>> generator = pipeline('text-generation', model='huggingtweets/l2k')
31
+ >>> generator("My dream is", max_length=50, num_return_sequences=5)
32
+ ```
33
+
34
+ #### Limitations and bias
35
+
36
+ The model suffers from [the same limitations and bias as GPT-2](https://huggingface.co/gpt2#limitations-and-bias).
37
+
38
+ In addition, the data present in the user's tweets further affects the text generated by the model.
39
+
40
+ ## How does it work?
41
+
42
+ The model uses the following pipeline.
43
+
44
+ ![pipeline](https://github.com/borisdayma/huggingtweets/blob/master/img/pipeline.png?raw=true)
45
+
46
+ To understand how the model was developed, check the [W&B report](https://bit.ly/2TGXMZf).
47
+
48
+ ## Training data
49
+
50
+ The model was trained on [@l2k's tweets](https://twitter.com/l2k).
51
+
52
+ | Data | Quantity |
53
+ |-------------------|--------------|
54
+ | Tweets downloaded | 2501 |
55
+ | Retweets | 554 |
56
+ | Short tweets | 61 |
57
+ | Tweets kept | 1886 |
58
+
59
+ [Explore the data](https://app.wandb.ai/borisd13/huggingtweets/runs/39nfohbk/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.
60
+
61
+ ## Training procedure
62
+
63
+ The model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on @l2k's tweets for 4 epochs.
64
+
65
+ Hyperparameters and metrics are recorded in the [W&B training run](https://app.wandb.ai/borisd13/huggingtweets/runs/3g2jsj0b).
66
+
67
+ ## About
68
+
69
+ *Built by Boris Dayma*
70
+
71
+ [![Follow](https://img.shields.io/twitter/follow/borisdayma?style=social)](https://twitter.com/borisdayma)
72
+
73
+ For more details, visit the project repository.
74
+
75
+ [![GitHub stars](https://img.shields.io/github/stars/borisdayma/huggingtweets?style=social)](https://github.com/borisdayma/huggingtweets)
76
+
77
+ <a href="https://huggingface.co/exbert/?model=huggingtweets/l2k&modelKind=autoregressive&sentence=I%20love%20huggingtweets!&layer=11">
78
+ <img width="300px" src="https://hf-dinosaur.huggingface.co/exbert/button.png">
79
+ </a>