1from huggingface_hub import hf_hub_download
2import torch, torch.nn.functional as F
3
4ckpt_path = hf_hub_download("SFM-BIIE-ETHZ/eSFM_VC-SFM", "model.pth")
5
6# Load with the Vibe-Coding-SFMs codebase
7# (https://github.com/SFM-BIIE-ETHZ/Vibe-Coding-SFMs)
8from calm.encoder.model import CALMEncoder
9model = CALMEncoder.from_pretrained(ckpt_path)
10model.eval()
11
12agent_emb = model.encode_query("MKALLIVLGLVSSVSQASST...") # enzyme protein
13target_emb = model.encode_target("OC(=O)c1ccccc1") # substrate SMILES
14
15score = F.cosine_similarity(agent_emb, target_emb, dim=-1)
1@article{reddy2026vcsfm,
2 title = {Vibe Coding Specificity Foundation Models},
3 author = {Reddy, Sai T.},
4 journal = {bioRxiv},
5 year = {2026},
6 doi = {10.64898/2026.06.04.730134}
7}
Released under the
SFM Research Preview License v1.0-preview (see
LICENSE.md).
Free for research use — academic, non-profit, government, and industry research. The specific
molecules disclosed in the accompanying preprints are dedicated to the public. Commercial-use
and patent-licensing terms are deferred and being arranged with ETH Zürich / BIIE; the SFM
architectures and training methods are the subject of pending patent applications.
For commercial enquiries:
sai.reddy@ethz.ch