Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
tags:
|
| 5 |
+
- protein
|
| 6 |
+
- structure
|
| 7 |
+
- encoder
|
| 8 |
+
- pretrained
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# K-Fold Structure Encoder (35M)
|
| 12 |
+
|
| 13 |
+
ELECTRA-style structure-aware protein encoder, 35M parameters.
|
| 14 |
+
Part of [k-fold-structure](https://github.com/<TODO-github-org>/k-fold-structure-release) release.
|
| 15 |
+
|
| 16 |
+
## Files
|
| 17 |
+
|
| 18 |
+
- `35M.ckpt` — full Lightning checkpoint (for re-training)
|
| 19 |
+
- `config.yaml` — model config
|
| 20 |
+
- `backbone_tokenizer.pt` — backbone (bb) token VQ-VAE
|
| 21 |
+
- `fullatom_tokenizer.pt` — full-atom (fa) token VQ-VAE
|
| 22 |
+
|
| 23 |
+
## Quickstart
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
import sys
|
| 27 |
+
sys.path.insert(0, "code/triprorep")
|
| 28 |
+
from inference import load_encoder, encode
|
| 29 |
+
|
| 30 |
+
encoder = load_encoder("35M", hf_repo="k-fold-structure/triprorep-35M")
|
| 31 |
+
# encode tokens -> [L, D] fp16 features (see release README for full BYO example)
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
License: MIT
|