Update README.md
Browse files
README.md
CHANGED
@@ -16,7 +16,9 @@ pipeline_tag: text-generation
|
|
16 |
from transformers import AutoModelForCausalLM
|
17 |
from transformers import PreTrainedTokenizerFast
|
18 |
|
19 |
-
tokenizer = PreTrainedTokenizerFast.from_pretrained("hyunjae/skt-kogpt2-kullm-v2",
|
|
|
|
|
20 |
model = AutoModelForCausalLM.from_pretrained('hyunjae/skt-kogpt2-kullm-v2').to('cuda')
|
21 |
|
22 |
PROMPT= "### system:μ¬μ©μμ μ§λ¬Έμ λ§λ μ μ ν μλ΅μ μμ±νμΈμ.\n### μ¬μ©μ:{instruction}\n### μλ΅:"
|
|
|
16 |
from transformers import AutoModelForCausalLM
|
17 |
from transformers import PreTrainedTokenizerFast
|
18 |
|
19 |
+
tokenizer = PreTrainedTokenizerFast.from_pretrained("hyunjae/skt-kogpt2-kullm-v2",
|
20 |
+
bos_token='</s>', eos_token='</s>', unk_token='<unk>',
|
21 |
+
pad_token='<pad>', mask_token='<mask>', padding_side="right", model_max_length=512)
|
22 |
model = AutoModelForCausalLM.from_pretrained('hyunjae/skt-kogpt2-kullm-v2').to('cuda')
|
23 |
|
24 |
PROMPT= "### system:μ¬μ©μμ μ§λ¬Έμ λ§λ μ μ ν μλ΅μ μμ±νμΈμ.\n### μ¬μ©μ:{instruction}\n### μλ΅:"
|