Update README.md
Browse files
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
|
| 23 |
-
model=RobertaModel.from_pretrained(
|
| 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():
|