Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -162,9 +162,10 @@ def compute_plddt_iptm(protein_seq, binder_seq):
|
|
| 162 |
|
| 163 |
# based on https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/protein_folding.ipynb
|
| 164 |
model = EsmForProteinFolding.from_pretrained("facebook/esmfold_v1", low_cpu_mem_usage=True)
|
| 165 |
-
model = model.cuda()
|
| 166 |
model.esm = model.esm.half() # Uncomment to switch the stem to float16
|
| 167 |
-
torch.backends.cuda.matmul.allow_tf32 = True
|
|
|
|
| 168 |
|
| 169 |
sequence = protein_seq + binder_seq
|
| 170 |
inputs = tokenizer(sequence, return_tensors='pt', add_special_tokens=False)
|
|
|
|
| 162 |
|
| 163 |
# based on https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/protein_folding.ipynb
|
| 164 |
model = EsmForProteinFolding.from_pretrained("facebook/esmfold_v1", low_cpu_mem_usage=True)
|
| 165 |
+
#model = model.cuda()
|
| 166 |
model.esm = model.esm.half() # Uncomment to switch the stem to float16
|
| 167 |
+
#torch.backends.cuda.matmul.allow_tf32 = True
|
| 168 |
+
print("168:model.device in compute_plddt_iptm",model.device)
|
| 169 |
|
| 170 |
sequence = protein_seq + binder_seq
|
| 171 |
inputs = tokenizer(sequence, return_tensors='pt', add_special_tokens=False)
|