pip install torch_scatter rdkit

pip install torch_geometric

example

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)
Downloads last month
99
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The HF Inference API does not support model that require custom code execution.

Dataset used to train Huhujingjing/custom-gcn