Views
No views yet
BERT-style MLM optimized — 8-layer transformer with GQA, RoPE, sliding-window + global attention, RMSNorm, and weight tying. Optimized for speed, memory, and contextual modeling.
1🧠 Core: 8L | 320d | 8H → GQA (2 groups) | RMSNorm | Weight Tied
2🧭 Position: Rotary (RoPE) — extrapolates beyond 1024
3👁️ Attention: Sliding Window (16) + Global Tokens → Vectorized Masks
4⚡ Innovations: 4x smaller KV cache • No learned pos-embeds • Local+Global contextsample_1k_smi_42.csv (sample 1K molecules from combined curated dataset built from COCONUTDB (Sorokina et al., 2021),

This is NOT a production model.
- Built during late-night prototyping sessions 🌙
- Not thoroughly validated or benchmarked due to compute constraint
- Some components are heuristic and unproven
- May crash, overfit, or generate nonsense (especially outside molecular data)
- I’m still learning PyTorch, attention mechanisms, and transformer internals
Use this code to learn and experiment — not to deploy.
1@article{sorokina2021coconut,
2 title={COCONUT online: Collection of Open Natural Products database},
3 author={Sorokina, Maria and Merseburger, Peter and Rajan, Kohulan and Yirik, Mehmet Aziz and Steinbeck, Christoph},
4 journal={Journal of Cheminformatics},
5 volume={13},
6 number={1},
7 pages={2},
8 year={2021},
9 doi={10.1186/s13321-020-00478-9}
10}1@article{zdrazil2023chembl,
2 title={The ChEMBL Database in 2023: a drug discovery platform spanning multiple bioactivity data types and time periods},
3 author={Zdrazil, Barbara and Felix, Eloy and Hunter, Fiona and Manners, Emma J and Blackshaw, James and Corbett, Sybilla and de Veij, Marleen and Ioannidis, Harris and Lopez, David Mendez and Mosquera, Juan F and Magarinos, Maria Paula and Bosc, Nicolas and Arcila, Ricardo and Kizil{\"o}ren, Tevfik and Gaulton, Anna and Bento, A Patr{\'i}cia and Adasme, Melissa F and Monecke, Peter and Landrum, Gregory A and Leach, Andrew R},
4 journal={Nucleic Acids Research},
5 year={2023},
6 volume={gkad1004},
7 doi={10.1093/nar/gkad1004}
8}
9
10@misc{chembl34,
11 title={ChemBL34},
12 year={2023},
13 doi={10.6019/CHEMBL.database.34}
14}1@article{Gallo2023,
2 author = {Gallo, K and Kemmler, E and Goede, A and Becker, F and Dunkel, M and Preissner, R and Banerjee, P},
3 title = {{SuperNatural 3.0-a database of natural products and natural product-based derivatives}},
4 journal = {Nucleic Acids Research},
5 year = {2023},
6 month = jan,
7 day = {6},
8 volume = {51},
9 number = {D1},
10 pages = {D654-D659},
11 doi = {10.1093/nar/gkac1008}
12}1@article{wright2021ranger21,
2 title={Ranger21: a synergistic deep learning optimizer},
3 author={Wright, Less and Demeure, Nestor},
4 year={2021},
5 journal={arXiv preprint arXiv:2106.13731},
6}