ngwlh commited on
Commit
5ed7604
1 Parent(s): 5e2ca59

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -19,8 +19,8 @@ KBioXLM model can be fintuned on downstream tasks. The downstream tasks here ref
19
  You can follow the prompts below to load our model parameters:
20
 
21
  ```python
22
- from transformers import AutoTokenizer, AutoModelForMaskedLM
23
- model=RobertaModel.from_pretrained(pretrained_model_name_or_path='ngwlh/KBioXLM', config=self.config)
24
  checkpoint = torch.load('ngwlh/KBioXLM'+'/pytorch_model.bin', map_location='cpu')
25
  new_state_dict=OrderedDict()
26
  for k,v in checkpoint.items():
 
19
  You can follow the prompts below to load our model parameters:
20
 
21
  ```python
22
+ from transformers import RobertaModel
23
+ model=RobertaModel.from_pretrained('ngwlh/KBioXLM')
24
  checkpoint = torch.load('ngwlh/KBioXLM'+'/pytorch_model.bin', map_location='cpu')
25
  new_state_dict=OrderedDict()
26
  for k,v in checkpoint.items():