akore commited on
Commit
d583be4
1 Parent(s): 1164eae

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -2
README.md CHANGED
@@ -40,9 +40,12 @@ Here is how to use the model to extract features from the pre-trained backbone:
40
  ```python
41
  import torch
42
  from transformers import AutoModel
43
- model = AutoModel.from_pretrained("vector-institute/atomformer-base", trust_remote_code=True)
 
44
 
45
- input_ids, coords, attn_mask = torch.randint(0, 100, (1, 10)), torch.randn(1, 10, 3), torch.ones(1, 10)
 
 
46
 
47
  output = model(input_ids, coords=coords, attention_mask=attention_mask)
48
  output[0].shape # (torch.Size([1, 10, 768])
 
40
  ```python
41
  import torch
42
  from transformers import AutoModel
43
+ model = AutoModel.from_pretrained("vector-institute/atomformer-base",
44
+ trust_remote_code=True)
45
 
46
+ input_ids = torch.randint(0, 50, (1, 10))
47
+ coords = torch.randn(1, 10, 3)
48
+ attn_mask = torch.ones(1, 10)
49
 
50
  output = model(input_ids, coords=coords, attention_mask=attention_mask)
51
  output[0].shape # (torch.Size([1, 10, 768])