SkywalkerLu commited on
Commit
6d3c2ea
·
verified ·
1 Parent(s): 3330148

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -28,6 +28,9 @@ pip install torch transformers peft
28
  ```
29
  ## Usage (Transformers)
30
  ```python
 
 
 
31
  model_id = "SkywalkerLu/TransHLA2.0-IM"
32
  model = AutoModel.from_pretrained(model_id, trust_remote_code=True).to(device).eval()
33
  ```
 
28
  ```
29
  ## Usage (Transformers)
30
  ```python
31
+ import torch
32
+ import torch.nn.functional as F
33
+ from transformers import AutoModel, AutoTokenizer
34
  model_id = "SkywalkerLu/TransHLA2.0-IM"
35
  model = AutoModel.from_pretrained(model_id, trust_remote_code=True).to(device).eval()
36
  ```