File size: 482 Bytes
7874c27
 
 
 
 
 
 
 
 
 
 
 
1f0c4c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
license: mit
datasets:
- lisn519010/QM9
language:
- en
metrics:
- mae
- accuracy
- mse
- r_squared
pipeline_tag: graph-ml
---


```
pip install torch_scatter rdkit

pip install torch_geometric

```

### example


```python
from transformers import AutoModel

device = 'cpu'
smiles = ['CCCC', 'C#C/C(C)=C(/[CH2])C', 'NNNNN']

model = AutoModel.from_pretrained("Huhujingjing/custom-gcn", trust_remote_code=True).to(device)

output = model.predict_smiles(smiles)

print(output)
```