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
- 2
Inference Providers
NEW
This model is not currently available via any of the supported third-party Inference Providers, and
HF Inference API does not yet support model repos that contain custom code.