Update README.md
Browse files
README.md
CHANGED
@@ -18,7 +18,7 @@ inference:
|
|
18 |
max_length: 120
|
19 |
do_sample: True
|
20 |
temperature: 0.8
|
21 |
-
|
22 |
|
23 |
# GPT-3 small
|
24 |
|
@@ -28,8 +28,8 @@ Pretrained GPT-3 small, continuing the development of GPT NEO, with architecture
|
|
28 |
~~~~
|
29 |
from transformers import GPT2Tokenizer, GPTNeoForCausalLM
|
30 |
|
31 |
-
tokenizer = GPT2Tokenizer.from_pretrained('gpt3-small-finetune-cnndaily-news')
|
32 |
-
model = GPTNeoForCausalLM.from_pretrained('gpt3-small-finetune-cnndaily-news')
|
33 |
|
34 |
text = "Ever noticed how plane seats appear to be getting smaller and smaller? "
|
35 |
input_ids = tokenizer.encode(text, return_tensors='pt')
|
|
|
18 |
max_length: 120
|
19 |
do_sample: True
|
20 |
temperature: 0.8
|
21 |
+
--\
|
22 |
|
23 |
# GPT-3 small
|
24 |
|
|
|
28 |
~~~~
|
29 |
from transformers import GPT2Tokenizer, GPTNeoForCausalLM
|
30 |
|
31 |
+
tokenizer = GPT2Tokenizer.from_pretrained('minhtoan/gpt3-small-finetune-cnndaily-news')
|
32 |
+
model = GPTNeoForCausalLM.from_pretrained('minhtoan/gpt3-small-finetune-cnndaily-news')
|
33 |
|
34 |
text = "Ever noticed how plane seats appear to be getting smaller and smaller? "
|
35 |
input_ids = tokenizer.encode(text, return_tensors='pt')
|