hyunjae commited on
Commit
acab117
β€’
1 Parent(s): 961fc7e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
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", padding_side="right", model_max_length=512)
 
 
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### 응닡:"