File size: 444 Bytes
1f10bd5
 
 
 
6315387
5278fae
1f10bd5
 
 
 
 
 
fc95063
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
language: en
tags:
- exbert
- danielTheBest
- TensorFlow
license: apache-2.0
datasets:
- bookcorpus
- wikipedia
---

Some cool text

and in TensorFlow:

```python
from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
model = TFGPT2Model.from_pretrained('gpt2')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)
```