Update README.md
Browse files
README.md
CHANGED
@@ -26,8 +26,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
|
|
26 |
import torch
|
27 |
|
28 |
tokenizer = AutoTokenizer.from_pretrained("biomap-research/xtrimopglm-3b-clm", trust_remote_code=True, use_fast=True)
|
29 |
-
|
30 |
-
model = AutoModelForCausalLM.from_pretrained(config, trust_remote_code=True, torch_dtype=torch.bfloat16)
|
31 |
if torch.cuda.is_available():
|
32 |
model = model.cuda()
|
33 |
model.eval()
|
|
|
26 |
import torch
|
27 |
|
28 |
tokenizer = AutoTokenizer.from_pretrained("biomap-research/xtrimopglm-3b-clm", trust_remote_code=True, use_fast=True)
|
29 |
+
model = AutoModelForCausalLM.from_pretrained("biomap-research/xtrimopglm-3b-clm", trust_remote_code=True, torch_dtype=torch.bfloat16)
|
|
|
30 |
if torch.cuda.is_available():
|
31 |
model = model.cuda()
|
32 |
model.eval()
|