Upload folder using huggingface_hub
Browse files- README.md +62 -0
- config.json +60 -0
- pytorch_model.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: tedbench
|
| 3 |
+
tags:
|
| 4 |
+
- protein
|
| 5 |
+
- structure
|
| 6 |
+
- fold-classification
|
| 7 |
+
- tedbench
|
| 8 |
+
pipeline_tag: feature-extraction
|
| 9 |
+
license: bsd-3-clause
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# TEDBench — Pretrained autoencoder (structure only)
|
| 13 |
+
|
| 14 |
+
**Variant:** `miae_s` | **Parameters:** 29M | **Layers:** 6 | **Hidden dim:** 512 | **Attn heads:** 8
|
| 15 |
+
|
| 16 |
+
This is a **pretrained MiAE** checkpoint. Use it as a feature extractor or as the starting point for fine-tuning.
|
| 17 |
+
|
| 18 |
+
Part of the [TEDBench](https://github.com/BorgwardtLab/TEDBench) benchmark for
|
| 19 |
+
protein fold classification (ICML 2026). MiAE is an SE(3)-invariant masked
|
| 20 |
+
autoencoder that masks up to 90% of backbone frames and reconstructs the full
|
| 21 |
+
structure with a lightweight decoder.
|
| 22 |
+
|
| 23 |
+
## Architecture sizes
|
| 24 |
+
|
| 25 |
+
| Variant | Params | Layers | Hidden dim | Attn heads |
|
| 26 |
+
|---------|-------:|-------:|-----------:|-----------:|
|
| 27 |
+
| `miae_s` | 29 M | 6 | 512 | 8 |
|
| 28 |
+
| `miae_b` | 102 M | 12 | 768 | 12 |
|
| 29 |
+
| `miae_l` | 339 M | 24 | 1 024 | 16 |
|
| 30 |
+
|
| 31 |
+
Append `+model.use_seq_input=true` to `miae_b` for the **+seq** variant.
|
| 32 |
+
|
| 33 |
+
## Usage
|
| 34 |
+
|
| 35 |
+
### Load from the HuggingFace Hub
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from tedbench.utils.io import load_from_hf
|
| 39 |
+
|
| 40 |
+
model = load_from_hf("TEDBench/miae-s")
|
| 41 |
+
model.eval()
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
### From a Lightning checkpoint
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from tedbench.model import MiAE
|
| 48 |
+
|
| 49 |
+
model = MiAE.load_from_checkpoint("model.ckpt", weights_only=False)
|
| 50 |
+
model.eval()
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
## Citation
|
| 54 |
+
|
| 55 |
+
```bibtex
|
| 56 |
+
@inproceedings{chen2026tedbench,
|
| 57 |
+
title={Protein Fold Classification at Scale: Benchmarking and Pretraining},
|
| 58 |
+
author={Chen, Dexiong and Manolache, Andrei and Niepert, Mathias and Borgwardt, Karsten},
|
| 59 |
+
booktitle={Proceedings of the 43rd International Conference on Machine Learning},
|
| 60 |
+
year={2026}
|
| 61 |
+
}
|
| 62 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"seed": 42,
|
| 3 |
+
"debug": false,
|
| 4 |
+
"wandb": true,
|
| 5 |
+
"mask_ratio": 0.9,
|
| 6 |
+
"noise": 0.0,
|
| 7 |
+
"datamodule": {
|
| 8 |
+
"batch_size": 32,
|
| 9 |
+
"pin_memory": true,
|
| 10 |
+
"num_workers": 12,
|
| 11 |
+
"_target_": "tedbench.data.LightningStructureDataset",
|
| 12 |
+
"root": "./datasets/ted",
|
| 13 |
+
"dataset_name": "afdb_stream"
|
| 14 |
+
},
|
| 15 |
+
"trainer": {
|
| 16 |
+
"_target_": "pytorch_lightning.Trainer",
|
| 17 |
+
"accelerator": "auto",
|
| 18 |
+
"max_steps": 100000,
|
| 19 |
+
"strategy": "auto",
|
| 20 |
+
"devices": "auto",
|
| 21 |
+
"default_root_dir": "${logs.path}",
|
| 22 |
+
"num_sanity_val_steps": 0,
|
| 23 |
+
"val_check_interval": 1000,
|
| 24 |
+
"check_val_every_n_epoch": null,
|
| 25 |
+
"accumulate_grad_batches": 4,
|
| 26 |
+
"num_nodes": 4
|
| 27 |
+
},
|
| 28 |
+
"train": {
|
| 29 |
+
"optimizer": {
|
| 30 |
+
"_target_": "torch.optim.AdamW",
|
| 31 |
+
"lr": 0.0024,
|
| 32 |
+
"weight_decay": 0.05,
|
| 33 |
+
"betas": [
|
| 34 |
+
0.9,
|
| 35 |
+
0.95
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
"lr_scheduler": {
|
| 39 |
+
"_target_": "tedbench.lr_schedulers.get_cosine_schedule_with_warmup",
|
| 40 |
+
"warmup_steps": 5000,
|
| 41 |
+
"max_steps": "${eval:0.99 * ${trainer.max_steps}}",
|
| 42 |
+
"min_factor": 0.1
|
| 43 |
+
},
|
| 44 |
+
"ckpt_path": null,
|
| 45 |
+
"compile": false
|
| 46 |
+
},
|
| 47 |
+
"model": {
|
| 48 |
+
"_target_": "tedbench.model.miae_model",
|
| 49 |
+
"name": "miae_s",
|
| 50 |
+
"use_seq_input": false,
|
| 51 |
+
"masking_strategy": "fixed",
|
| 52 |
+
"use_inverse_folding_loss": true
|
| 53 |
+
},
|
| 54 |
+
"logs": {
|
| 55 |
+
"prefix": "logs/pretrain/${datamodule.dataset_name}/${seed}",
|
| 56 |
+
"path": "${logs.prefix}/runs/${now:%Y-%m-%d}_${now:%H-%M-%S}"
|
| 57 |
+
},
|
| 58 |
+
"mode": {},
|
| 59 |
+
"_model_class": "miae"
|
| 60 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13a818554a12572caa8358a2142dc64dfe1876c40306c2569de04b1e111d6f56
|
| 3 |
+
size 142853111
|