Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anniewesterlund authored Feb 15, 2024
1 parent fbc8f3f commit dbb60fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The pre-trained model was tested on downstream tasks such as reaction prediction
The public models and datasets available [here](https://az.box.com/s/7eci3nd9vy0xplqniitpk02rbg9q2zcq). To run these models with the new version, you first need to update the checkpoint, e.g.:
```
model = torch.load("model.ckpt")
model["hyper_parameters"]["vocabulary_size"] = model.pop("vocab_size")
model["hyper_parameters"]["vocabulary_size"] = model["hyper_parameters"].pop("vocab_size")
torch.save(model, "model_v2.ckpt")
```

Expand Down

0 comments on commit dbb60fd

Please sign in to comment.