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