MrBananaHuman
commited on
Commit
โข
0c456d4
1
Parent(s):
a2cec42
Update README.md
Browse files
README.md
CHANGED
@@ -22,7 +22,7 @@ tokenizer = AutoTokenizer.from_pretrained('MrBananaHuman/kogpt_6b_fp16')
|
|
22 |
input_text = '์ด์์ ์'
|
23 |
input_ids = tokenizer(input_text, return_tensors='pt').input_ids.to('cuda')
|
24 |
|
25 |
-
output = model.generate(input_ids)
|
26 |
print(tokenizer.decode(output[0]))
|
27 |
|
28 |
>>> ์ด์์ ์ ์ฐ๋ฆฌ์๊ฒ ๋ฌด์์ธ๊ฐ? 1. ๋จธ๋ฆฌ๋ง ์ด๊ธ์ ์์ง์๋ ๋น์ ์ด์์ธ์ด ๋ณด์ฌ์ค
|
|
|
22 |
input_text = '์ด์์ ์'
|
23 |
input_ids = tokenizer(input_text, return_tensors='pt').input_ids.to('cuda')
|
24 |
|
25 |
+
output = model.generate(input_ids, max_length=64)
|
26 |
print(tokenizer.decode(output[0]))
|
27 |
|
28 |
>>> ์ด์์ ์ ์ฐ๋ฆฌ์๊ฒ ๋ฌด์์ธ๊ฐ? 1. ๋จธ๋ฆฌ๋ง ์ด๊ธ์ ์์ง์๋ ๋น์ ์ด์์ธ์ด ๋ณด์ฌ์ค
|