matsuo-lab
commited on
Commit
•
043ea3b
1
Parent(s):
f72f467
Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,7 @@ import torch
|
|
58 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
59 |
|
60 |
tokenizer = AutoTokenizer.from_pretrained("matsuo-lab/weblab-10b")
|
61 |
-
model = AutoModelForCausalLM.from_pretrained("matsuo-lab/weblab-10b")
|
62 |
|
63 |
if torch.cuda.is_available():
|
64 |
model = model.to("cuda")
|
|
|
58 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
59 |
|
60 |
tokenizer = AutoTokenizer.from_pretrained("matsuo-lab/weblab-10b")
|
61 |
+
model = AutoModelForCausalLM.from_pretrained("matsuo-lab/weblab-10b", torch_dtype=torch.float16)
|
62 |
|
63 |
if torch.cuda.is_available():
|
64 |
model = model.to("cuda")
|