Views
No views yet
huggingface_hub:1from huggingface_hub import hf_hub_download
2
3checkpoint = hf_hub_download(
4 repo_id="supanthadey1/affinose-interaction-model",
5 filename="checkpoints/affinose_interaction_model.pt",
6)
7vocab = hf_hub_download(
8 repo_id="supanthadey1/affinose-interaction-model",
9 filename="vocab/bpe_vocabulary.json",
10)checkpoints/affinose_interaction_model.pt - AFFINose interaction checkpoint.vocab/bpe_vocabulary.json - WURCS BPE vocabulary for glycan tokenization.src/affinose_model.py - AFFINose architecture.src/affinose_inference.py - standalone inference helper.src/affinose_dataset.py - tokenizer and data utility helpers.src/bertose_model.py - BERTose model definition used for glycan encoding.src/bertose_layers.py - Transformer layers used by BERTose.src/wurcs_bpe_tokenizer.py - WURCS BPE tokenizer.sample_id,protein_id,protein_sequence,glycan_wurcs. Free-text glycan names, common names, SNFG drawings, and IUPAC-condensed strings are not parsed directly by AFFINose. Convert those inputs to WURCS first, then score the protein-glycan pair.[L, 960]. Do not mean-pool the protein before passing it into AFFINose.esm package and let it download ESM-C 300M into their own runtime cache.1from esm.models.esmc import ESMC
2from esm.sdk.api import ESMProtein, LogitsConfig
3
4esmc = ESMC.from_pretrained("esmc_300m").to("cuda") # or "cpu"
5protein = ESMProtein(sequence="MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQ")
6protein_tensor = esmc.encode(protein)
7output = esmc.logits(
8 protein_tensor,
9 LogitsConfig(sequence=True, return_embeddings=True),
10)
11protein_embeddings = output.embeddings # per-residue ESM-C 300M embeddingsLICENSE.