Update README.md
Browse files
README.md
CHANGED
@@ -12,8 +12,8 @@ from transformers import GPT2Tokenizer, GPT2LMHeadModel
|
|
12 |
import torch
|
13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
14 |
|
15 |
-
tokenizer = GPT2Tokenizer.from_pretrained('Hollway/
|
16 |
-
model = GPT2LMHeadModel.from_pretrained('Hollway/
|
17 |
```
|
18 |
|
19 |
### Inference
|
|
|
12 |
import torch
|
13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
14 |
|
15 |
+
tokenizer = GPT2Tokenizer.from_pretrained('Hollway/gpt2_finetune')
|
16 |
+
model = GPT2LMHeadModel.from_pretrained('Hollway/gpt2_finetune').to(device)
|
17 |
```
|
18 |
|
19 |
### Inference
|