MrBananaHuman
commited on
Commit
·
270b2e1
1
Parent(s):
32c6067
Update README.md
Browse files
README.md
CHANGED
@@ -15,7 +15,7 @@ model = GPTJForCausalLM.from_pretrained('kakaobrain/kogpt', cache_dir='./my_dir'
|
|
15 |
import torch
|
16 |
from transformers import GPTJForCausalLM, AutoTokenizer
|
17 |
|
18 |
-
model = GPTJForCausalLM.from_pretrained('MrBananaHuman/kogpt_6b_fp16')
|
19 |
model.to('cuda')
|
20 |
tokenizer = AutoTokenizer.from_pretrained('MrBananaHuman/kogpt_6b_fp16')
|
21 |
|
|
|
15 |
import torch
|
16 |
from transformers import GPTJForCausalLM, AutoTokenizer
|
17 |
|
18 |
+
model = GPTJForCausalLM.from_pretrained('MrBananaHuman/kogpt_6b_fp16', low_cpu_mem_usage=True))
|
19 |
model.to('cuda')
|
20 |
tokenizer = AutoTokenizer.from_pretrained('MrBananaHuman/kogpt_6b_fp16')
|
21 |
|