Views
No views yet
1import sys
2sys.path.insert(0, "baselines") # from repo root
3
4from pathlib import Path
5import torch
6from models.saprot_classifier import SaProtClassifier
7from omegaconf import OmegaConf
8from huggingface_hub import snapshot_download
9
10local_dir = Path(snapshot_download("TEDBench/saprot-650M-ft"))
11with open(local_dir / "config.json") as f:
12 import json
13 cfg = OmegaConf.create(json.load(f))
14
15model = SaProtClassifier(cfg)
16sd = torch.load(local_dir / "pytorch_model.bin", map_location="cpu", weights_only=False)
17model.load_state_dict(sd)
18model.eval()python baselines/saprot_test_ted.py train.ckpt_path=TEDBench/saprot-650M-ft1@inproceedings{chen2026tedbench,
2 title={Protein Fold Classification at Scale: Benchmarking and Pretraining},
3 author={Chen, Dexiong and Manolache, Andrei and Niepert, Mathias and Borgwardt, Karsten},
4 booktitle={Proceedings of the 43rd International Conference on Machine Learning},
5 year={2026}
6}