MrBananaHuman
commited on
Commit
ยท
38c5c23
1
Parent(s):
815bda9
Update README.md
Browse files
README.md
CHANGED
@@ -20,11 +20,13 @@ model.to('cuda')
|
|
20 |
tokenizer = AutoTokenizer.from_pretrained('MrBananaHuman/kogpt_6b_fp16')
|
21 |
|
22 |
input_text = '์ด์์ ์'
|
23 |
-
input_ids = tokenizer(input_text, return_tensors='pt').to('cuda')
|
24 |
|
25 |
-
output = model.generate(
|
26 |
print(tokenizer.decode(output[0]))
|
27 |
|
|
|
|
|
28 |
```
|
29 |
|
30 |
### ์ฐธ๊ณ ๋งํฌ
|
|
|
20 |
tokenizer = AutoTokenizer.from_pretrained('MrBananaHuman/kogpt_6b_fp16')
|
21 |
|
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. ๋จธ๋ฆฌ๋ง ์ด๊ธ์ ์์ง์๋ ๋น์ ์ด์์ธ์ด ๋ณด์ฌ์ค
|
29 |
+
|
30 |
```
|
31 |
|
32 |
### ์ฐธ๊ณ ๋งํฌ
|