Bo1015 commited on
Commit
1674a28
·
verified ·
1 Parent(s): 2422094

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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.from_config(config, trust_remote_code=True, torch_dtype=torch.bfloat16)
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()