Bo1015 commited on
Commit
8504a58
1 Parent(s): 1674a28

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -2
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
- 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()
 
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()