Upload README.md with huggingface_hub
Browse files9 unmodified lines10111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182839 unmodified lines- bioinformaticspipeline_tag: text-generationdatasets:- wanglab/cafa5---# GO-GPT: Gene Ontology Prediction from Protein SequencesGO-GPT is a decoder-only transformer model for predicting Gene Ontology (GO) terms from protein sequences. It combines ESM2 protein language model embeddings with an autoregressive decoder to generate GO term annotations across all three ontology aspects: Molecular Function (MF), Biological Process (BP), and Cellular Component (CC).## Quick Start1. Clone the repository:```bashgit clone https://github.com/bowang-lab/BioReason-Procd BioReason-Pro/gogpt```2. Run the inference notebook or use Python directly:```pythonimport syssys.path.insert(0, "src")from gogpt import GOGPTPredictor# Load from HuggingFace (downloads ~4GB on first run)predictor = GOGPTPredictor.from_pretrained("wanglab/gogpt")# Predict GO termspredictions = predictor.predict(sequence="MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQAPILSRVGDGTQDNLSGAEKAVQVKVKALPDAQFEVVHSLAKWKRQQIAAALEHHHHHH",organism="Homo sapiens")print(predictions)# {"MF": ["GO:0003674", "GO:0005488", ...],# "BP": ["GO:0008150", "GO:0008152", ...],# "CC": ["GO:0005575", "GO:0110165", ...]}```## Model Architecture| Component | Description ||-----------|-------------|| Protein Encoder | ESM2-3B (`facebook/esm2_t36_3B_UR50D`) || Decoder | 12-layer GPT with prefix causal attention || Embedding Dim | 900 || Attention Heads | 12 || Total Parameters | ~3.2B (3B ESM2 + 200M decoder) |## Supported OrganismsGO-GPT supports organism-conditioned prediction for 200 organisms plus an `<UNKNOWN>` category (201 total). See `organism_list.txt` for the full list.Common organisms include:- Homo sapiens- Mus musculus- Escherichia coli (various strains)- Saccharomyces cerevisiae- Arabidopsis thaliana- Drosophila melanogasterFor organisms not in the training set, predictions will use the `<UNKNOWN>` embedding.## Files in This Repository| File | Description ||------|-------------|| `model.ckpt` | Model weights (PyTorch Lightning checkpoint) || `config.yaml` | Model architecture configuration || `tokenizer_info.json` | Token vocabulary metadata || `go_tokenizer.json` | GO term to token ID mapping || `organism_mapper.json` | Organism name to ID mapping || `organism_list.txt` | Human-readable list of 201 supported organisms |9 unmodified lines1011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071729 unmodified lines- bioinformaticspipeline_tag: text-generationdatasets:- wanglab/gogpt-training-data---<h1 align="center">🧬 BioReason-Pro<br>Advancing Protein Function Prediction with<br>Multimodal Biological Reasoning</h1><p align="center"><a href="https://www.biorxiv.org/content/10.64898/2026.03.19.712954v1" target="_blank"><img src="https://img.shields.io/badge/bioRxiv-2026.03.19.712954-FF6B6B?style=for-the-badge&logo=arxiv&logoColor=white" alt="bioRxiv"></a><a href="https://github.com/bowang-lab/BioReason-Pro"><img src="https://img.shields.io/badge/GitHub-Code-4A90E2?style=for-the-badge&logo=github&logoColor=white" alt="GitHub"></a><a href="https://bioreason.net"><img src="https://img.shields.io/badge/Website-Online-00B89E?style=for-the-badge&logo=internet-explorer&logoColor=white" alt="Website"></a><a href="https://huggingface.co/collections/wanglab/bioreason-pro"><img src="https://img.shields.io/badge/HuggingFace-Models & Data-FFBF00?style=for-the-badge&logo=huggingface&logoColor=white" alt="HuggingFace"></a></p><br>## GO-GPTGO-GPT is a decoder-only transformer model for predicting Gene Ontology (GO) terms from protein sequences. It combines ESM2 protein language model embeddings with an autoregressive decoder to generate GO term annotations across all three ontology aspects: Molecular Function (MF), Biological Process (BP), and Cellular Component (CC).Unlike discriminative methods, GO-GPT treats GO prediction as a sequence generation task, capturing hierarchical and cross-aspect dependencies to achieve state-of-the-art weighted F_max of 0.65–0.70.| Component | Description ||-----------|-------------|| Protein Encoder | ESM2-3B (`facebook/esm2_t36_3B_UR50D`) || Decoder | 12-layer GPT with prefix causal attention || Total Parameters | ~3.2B (3B ESM2 + 200M decoder) |**Training data:** 120,143 proteins, available at [wanglab/gogpt-training-data](https://huggingface.co/datasets/wanglab/gogpt-training-data).**Code:** [github.com/bowang-lab/BioReason-Pro/gogpt](https://github.com/bowang-lab/BioReason-Pro/tree/main/gogpt)## CitationIf you find this work useful, please cite our papers:```bibtex@article {Fallahpour2026.03.19.712954,author = {Fallahpour, Adibvafa and Seyed-Ahmadi, Arman and Idehpour, Parsa and Ibrahim, Omar and Gupta, Purav and Naimer, Jack and Zhu, Kevin and Shah, Arnav and Ma, Shihao and Adduri, Abhinav and G{\"u}loglu, Talu and Liu, Nuo and Cui, Haotian and Jain, Arihant and de Castro, Max and Fallahpour, Amirfaham and Cembellin-Prieto, Antonio and Stiles, John S. and Nem{\v c}ko, Filip and Nevue, Alexander A. and Moon, Hyungseok C. and Sosnick, Lucas and Markham, Olivia and Duan, Haonan and Lee, Michelle Y. Y. and Salvador, Andrea F. M. and Maddison, Chris J. and Thaiss, Christoph A. and Ricci-Tam, Chiara and Plosky, Brian S. and Burke, Dave P. and Hsu, Patrick D. and Goodarzi, Hani and Wang, Bo},title = {BioReason-Pro: Advancing Protein Function Prediction with Multimodal Biological Reasoning},elocation-id = {2026.03.19.712954},year = {2026},doi = {10.64898/2026.03.19.712954},publisher = {Cold Spring Harbor Laboratory},URL = {https://www.biorxiv.org/content/early/2026/03/20/2026.03.19.712954},eprint = {https://www.biorxiv.org/content/early/2026/03/20/2026.03.19.712954.full.pdf},journal = {bioRxiv}}@misc{fallahpour2025bioreasonincentivizingmultimodalbiological,title={BioReason: Incentivizing Multimodal Biological Reasoning within a DNA-LLM Model},author={Adibvafa Fallahpour and Andrew Magnuson and Purav Gupta and Shihao Ma and Jack Naimer and Arnav Shah and Haonan Duan and Omar Ibrahim and Hani Goodarzi and Chris J. Maddison and Bo Wang},year={2025},eprint={2505.23579},archivePrefix={arXiv},primaryClass={cs.LG},url={https://arxiv.org/abs/2505.23579},}```
README.md+46-57