File size: 1,708 Bytes
18495f1
a5d5aa7
743277e
18495f1
743277e
18495f1
 
743277e
18495f1
743277e
18495f1
743277e
 
 
421a613
743277e
18495f1
743277e
 
 
 
 
 
 
18495f1
743277e
18495f1
743277e
18495f1
15937a5
 
 
 
 
 
 
 
 
 
 
 
 
237a164
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
license: cc-by-nc-4.0
base_model: tattabio/gLM2_650M
library_name: transformers
pipeline_tag: fill-mask
---

# gLM2 650M BGC Decoder

A 650M-parameter masked discrete diffusion model for conditional generation and redesign of biosynthetic gene clusters. The model supports antiSMASH domain conditioning and sequences up to 16,384 tokens.

```python
import torch
from transformers import AutoModelForMaskedLM, AutoTokenizer

model_id = "tattabio/gLM2_650M_bgc_decoder"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForMaskedLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    trust_remote_code=True,
).cuda()
```

Inference code: https://github.com/TattaBio/gLM2_decoder

## Citation

```
@article {Lanclos2026.09.11.750945,
	author = {Lanclos, Nathan and Ibrahim, Kyrellos and Cornman, Andre and Huang, Marco and Gill, Vikram and Jain, Aalini and Abraham, Jonathan and Gin, Jennifer and Chen, Yan and Petzold, Christopher and Baerwald, Justin and Kortemme, Tanja and Keasling, Jay and Hwang, Yunha},
	title = {Generative Design of New-to-nature Biosynthetic Assembly Lines with Genomic Language Modeling},
	elocation-id = {2026.09.11.750945},
	year = {2026},
	doi = {10.64898/2026.09.11.750945},
	publisher = {Cold Spring Harbor Laboratory},
	URL = {https://www.biorxiv.org/content/early/2026/09/21/2026.09.11.750945},
	eprint = {https://www.biorxiv.org/content/early/2026/09/21/2026.09.11.750945.full.pdf},
	journal = {bioRxiv}
}
```

## License

Model weights are released under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license. The weights are freely available for academic and research purposes.