Update README.md
Browse files
README.md
CHANGED
|
@@ -19,23 +19,9 @@ 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 |
-
|
| 23 |
-
|
| 24 |
-
|
| 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 |
|
|
@@ -56,13 +42,31 @@ The model was trained on [@l2k's tweets](https://twitter.com/l2k).
|
|
| 56 |
| Short tweets | 61 |
|
| 57 |
| Tweets kept | 1886 |
|
| 58 |
|
| 59 |
-
[Explore the data](https://app.wandb.ai/borisd13/huggingtweets/runs/
|
| 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/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
## About
|
| 68 |
|
|
@@ -73,7 +77,3 @@ Hyperparameters and metrics are recorded in the [W&B training run](https://app.w
|
|
| 73 |
For more details, visit the project repository.
|
| 74 |
|
| 75 |
[](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>
|
|
|
|
| 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 |
+
<a href="https://huggingface.co/exbert/?model=huggingtweets/l2k&modelKind=autoregressive&sentence=I%20love%20huggingtweets!&layer=11">
|
| 23 |
+
<img width="300px" src="https://hf-dinosaur.huggingface.co/exbert/button.png">
|
| 24 |
+
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
## How does it work?
|
| 27 |
|
|
|
|
| 42 |
| Short tweets | 61 |
|
| 43 |
| Tweets kept | 1886 |
|
| 44 |
|
| 45 |
+
[Explore the data](https://app.wandb.ai/borisd13/huggingtweets/runs/17gu0rb2/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.
|
| 46 |
|
| 47 |
## Training procedure
|
| 48 |
|
| 49 |
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.
|
| 50 |
|
| 51 |
+
Hyperparameters and metrics are recorded in the [W&B training run](https://app.wandb.ai/borisd13/huggingtweets/runs/3ef1n70z).
|
| 52 |
+
|
| 53 |
+
## Intended uses & limitations
|
| 54 |
+
|
| 55 |
+
#### How to use
|
| 56 |
+
|
| 57 |
+
You can use this model directly with a pipeline for text generation:
|
| 58 |
+
|
| 59 |
+
```python
|
| 60 |
+
from transformers import pipeline
|
| 61 |
+
generator = pipeline('text-generation', model='huggingtweets/l2k')
|
| 62 |
+
generator("My dream is", max_length=50, num_return_sequences=5)
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
#### Limitations and bias
|
| 66 |
+
|
| 67 |
+
The model suffers from [the same limitations and bias as GPT-2](https://huggingface.co/gpt2#limitations-and-bias).
|
| 68 |
+
|
| 69 |
+
In addition, the data present in the user's tweets further affects the text generated by the model.
|
| 70 |
|
| 71 |
## About
|
| 72 |
|
|
|
|
| 77 |
For more details, visit the project repository.
|
| 78 |
|
| 79 |
[](https://github.com/borisdayma/huggingtweets)
|
|
|
|
|
|
|
|
|
|
|
|