Views
No views yet
1import torch
2from huggingface_hub import snapshot_download
3import sys
4
5# Download the repository to access custom model code
6repo_dir = snapshot_download(repo_id="glacier-hf/GLACIER-100k-MiniMol")
7sys.path.append(repo_dir)
8
9from data.dataloader import SmilesMoleculeDataset, build_dataloader
10from glacier_student import Glacier
11
12# Load the pretrained GLACIER model
13model = Glacier.from_pretrained("glacier-hf/GLACIER-100k-MiniMol")
14
15# Prepare input data
16dataset = SmilesMoleculeDataset(smiles=["Cn1c(=O)c2c(ncn2C)n(C)c1=O"])
17dataloader = build_dataloader(dataset, batch_size=1)
18
19model.eval()
20batch = next(iter(dataloader))
21with torch.no_grad():
22 embedding = model(batch)
23print(embedding)dataloader: customized dataloader for multimodal learningencoders: graph, text, and tabular encodersfusion: Finsler geometry-aware fusion methodglacier_student: GLACIER model backbone and contrastive lossutils: miscellaneous helper functions1@inproceedings{nguyen2026glacier,
2 title={GLACIER: A Multimodal Student-Teacher Foundation Model for Molecular Property Prediction},
3 author={Emily Nguyen and Yongchan Hong and Harsh Toshniwal and Yan Liu and Andreas Luttens},
4 booktitle={Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2 (KDD ’26)},
5 year={2026},
6 publisher={ACM},
7 doi={10.1145/3770855.3819032}
8}