MolGen
Chemistry at the speed of AI
The problem MolGen solves
Drug discovery is broken.
Finding one approved drug costs $2.6 billion and takes 12 years.
90% of candidates fail at the very first step — designing the molecule.
Not in clinical trials. Not in patients. At step one.
The reason is simple: medicinal chemists are guessing. One molecular
structure at a time. From a chemical universe containing more possible
drug-like molecules than atoms in the observable universe (10^60 structures).
787,000 people die every year from antibiotic-resistant infections.
The last new antibiotic class was discovered in 1987 — 38 years ago.
Not because scientists stopped trying. Because finding the right molecule
costs too much, takes too long, and fails too often.
The 40,000 medicinal chemists globally who could solve this problem
cannot access the tools that exist — Schrödinger charges $1,000/month,
Insilico Medicine is valued at $2 billion, both are closed source and
inaccessible to academic researchers in developing countries.
We built the open-source solution.

Challenges we ran into
The first major wall hit us before training even started — RDKit was compiled against NumPy 1.x but our system had NumPy 2.0.2, causing an immediate _ARRAY_API not found crash that required careful dependency downgrading without breaking the entire environment. Once past that, Apple's MPS backend on the M4 presented its own challenges — not all PyTorch operations are supported, requiring careful tensor placement and memory management completely different from standard CUDA workflows. Training itself delivered the biggest shock: MolT5 epoch 1 took 7 hours 48 minutes instead of the expected 1.5 hours because HuggingFace was simultaneously downloading the 308MB model weights during training — a brutal discovery at hour 8 of a 48-hour hackathon. We adapted by pre-downloading all weights and setting TRANSFORMERS_OFFLINE=1, cutting subsequent epochs to 1.5 hours each. Midway through the project, an external AI agent modified our generate.py and broke the generation pipeline entirely — the model started outputting English words like "These", "Thanks", "Our" instead of SMILES strings, a textbook hallucination failure we had to debug under time pressure by restoring correct beam search parameters. The same agent introduced GEN_BEAMS=1 in our config, silently disabling beam search and causing severe output repetition — the same molecule generated every run. We identified this as the root cause of the diversity problem and fixed it to GEN_BEAMS=5, which combined with our Morgan fingerprint Tanimoto filter and GNN subgraph scoring gave us mathematically guaranteed diverse outputs. Checkpoint format mismatches between finetune.py and generate.py required writing format-agnostic loading logic. Graph construction edge cases in ZINC250k — disconnected fragments, atoms with no bonds — required defensive guards throughout the GNN pipeline. And overarching everything was the fundamental time constraint: full MolT5 training would require 78+ hours we didn't have. The strategic decision to ship 5 epochs achieving val=0.5931 over waiting for a perfect model was the right call — 86-94% validity beating published benchmarks proved the architecture works even undertrained.
Tracks Applied (4)
Electrothon 8.0 Winners
Electrothon 8.0 Honors Track
IQ AI
IQ AI
Best Use of Gemini 3 [Google Deepmind]
Google Deepmind
Technologies used