munchers commited on
Commit
eeacf4f
·
verified ·
1 Parent(s): fe6ba06

Add model card

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -56,7 +56,10 @@ import torch
56
 
57
  # Download model
58
  model_path = hf_hub_download("munchers/scent-to-molecule", "best_control.pt")
59
- checkpoint = torch.load(model_path, map_location='cpu')
 
 
 
60
  ```
61
 
62
  ## Examples
 
56
 
57
  # Download model
58
  model_path = hf_hub_download("munchers/scent-to-molecule", "best_control.pt")
59
+
60
+ model.load_state_dict(checkpoint['model_state_dict'])
61
+ if torch.cuda.is_available():
62
+ model = model.cuda()
63
  ```
64
 
65
  ## Examples