matsuo-lab
commited on
Commit
•
96db70d
1
Parent(s):
865ea56
Update README.md
Browse files
README.md
CHANGED
@@ -68,7 +68,7 @@ import torch
|
|
68 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
69 |
|
70 |
tokenizer = AutoTokenizer.from_pretrained("matsuo-lab/weblab-10b-instruction-sft")
|
71 |
-
model = AutoModelForCausalLM.from_pretrained("matsuo-lab/weblab-10b-instruction-sft")
|
72 |
|
73 |
if torch.cuda.is_available():
|
74 |
model = model.to("cuda")
|
|
|
68 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
69 |
|
70 |
tokenizer = AutoTokenizer.from_pretrained("matsuo-lab/weblab-10b-instruction-sft")
|
71 |
+
model = AutoModelForCausalLM.from_pretrained("matsuo-lab/weblab-10b-instruction-sft", torch_dtype=torch.float16)
|
72 |
|
73 |
if torch.cuda.is_available():
|
74 |
model = model.to("cuda")
|