Skip to main content

MolCraftDiffusion

Modular Platform for 3D Molecular Generation, Property Prediction & Evaluation

PyPI JACS Paper Digital Discovery Zenodo DOI HuggingFace Docs Web UI

Open Quickstart in Colab   Open CFG & Inpainting in Colab

Quick Start  ·  Architectures  ·  CLI  ·  Installation  ·  Tutorials  ·  Citation


MolCraftDiffusion brings 35+ 3D generative and predictive architectures spanning 8+ computational chemistry domains behind one Hydra configuration stack and one CLI (MolCraftDiff).

Instead of maintaining a separate repository, data loader, and evaluation script for every paper, models plug into a shared core engine via Hydra _target_ composition—so switching from de novo 3D diffusion to explicit-bond flow matching, pocket-conditioned drug design, conformer ensembles, or transition-state generation is a single config change.

MolCraftDiffusion end-to-end platform architecture


Quick Start

Option A — Generate in 60 seconds with Public MIT Weights (No Token Required)

Try it directly in your browser with our Quickstart Colab Notebook, or run locally using our public MIT checkpoints on Hugging Face (pregH/MolecularDiffusion) (EDM_geom, EDM_qm9, EDM_tlgeom_formed_energyscore, tabasco_geom, adit_geom, shepherd):

# 1. Download a public MIT checkpoint (GEOM-Drugs EDM)
huggingface-cli download pregH/MolecularDiffusion \
    --include "models/EDM_geom/*" --local-dir ./pretrained_hf

# 2. Generate 3D molecules and score structural validity
MolCraftDiff generate docs/cfg_examples/gen_unconditional.yaml \
    chkpt_directory=./pretrained_hf/models/EDM_geom \
    interference.num_generate=20 \
    interference.output_path=generated_molecules

MolCraftDiff analyze metrics generated_molecules/

About MolCraftDiff zoo: MolCraftDiffusion includes a built-in SHA-256 verified Model Zoo CLI (MolCraftDiff zoo list / fetch / config). Public MIT checkpoints for EDM, TABASCO, ADiT, and ShEPhERD are already openly available on pregH/MolecularDiffusion; the expanded multi-architecture zoo will open publicly alongside our upcoming benchmark publication.

Option B — Train, steer, and evaluate on your own dataset

# 1. Prepare raw XYZ structures into an ASE database
MolCraftDiff data prepare compile ./raw_xyz/ my_molecules.db

# 2. Train any architecture from bundled Hydra configs
MolCraftDiff train configs/example_diffusion_config.yaml

# 3. Generate with property guidance (CFG / GG / Bandpass) or 3D structure steering (Inpaint / Outpaint / SILVR)
MolCraftDiff generate docs/cfg_examples/gen_cfg.yaml interference.num_generate=200

# 4. Run 3D validity, PoseBusters, xTB optimization, or docking evaluation
MolCraftDiff analyze metrics generated_molecules/

Supported Domains & Architectures

Real 3D molecular structures across MolCraftDiffusion domains

Domain Highlighted Open-License Architectures (MIT / Apache-2.0 / CC-BY-4.0) Conditioning / Output
De Novo 3D Diffusion & Flow EDM (EGCL / EGT / Equiformer / PaiNN / GFMDiff), GCDM, TABASCO (+ EGNN / Equiformer / GVP), GeoLDM, ADiT Unconditional, CFG, GG, Bandpass CFG, Inpaint, Outpaint, SILVR (.xyz)
Explicit-Bond graph3d MiDi, FlowMol3, JODO, Morph Joint 3D coords + 5-class bond orders + signed formal charges (.sdf)
Structure-Based Drug Design (SBDD) DiffSBDD, KGDiff, IPDiff, DiffDec, DiffInt, DiffPharma, EnsCond Protein pocket (.pdb) → 3D bound ligand + Vina / PoseBusters / bias audits
Ligand-Based & Metal Complexes ShEPhERD, ShEPhERD 2, DiffLinker, LigandDiff, multi-LigandDiff 3D shape, ESP, pharmacophores, linkers, transition-metal complexes
3D Conformers & Transition States LoQI, ET-Flow, React-OT, OA-ReactDiff, GoFlow 2D graph → 3D conformer ensemble; reactant + product → 3D transition state
Spectra-to-3D Elucidation DiffSpectra, ChefNMR IR / Raman / UV-Vis & 1D NMR spectra → 3D molecular structures
Property Prediction & SSL3D EGNN / eSEN / Equiformer / 3DMol Regressors, Time-Aware Guidance, SSL3D (egcl/egt/esen/equiformer) Scalar/multi-task prediction, eval-predict, gradient guidance

See the complete Architecture Catalogue for all 35+ supported models, task configs, and upstream references.


Modular Platform Stack

MolCraftDiffusion modular platform stack

Three native data representations (data.data_type) cover all molecular tasks without dropping chemical information:

  • pointcloud — padded (B, N, 3) Cartesian coordinates + atom features (EDM, TABASCO, GeoLDM, ADiT).
  • pyg — PyTorch Geometric spatial radius_graph / k-NN neighbor graphs (Regressors, Guidance, SSL3D).
  • graph3d — canonical 5-class explicit bonds (0=none..4=aromatic) + raw signed formal charges (MiDi, FlowMol3, JODO, Morph).

Unified CLI

All workflows share a single entry point: MolCraftDiff <command> ...

Command Description
MolCraftDiff train Train or fine-tune any diffusion, flow-matching, latent, regression, guidance, or SSL3D task (with EMA, LoRA, adapters)
MolCraftDiff generate Sample 3D molecules across all paradigms (unconditional, CFG/GG/Bandpass, inpaint/outpaint/SILVR, SBDD, conformers, TS, spectra)
MolCraftDiff generate-sweep Run, resume, and rank multi-parameter generation + evaluation grids (--dry-run, --retry-failed, Bayesian search)
MolCraftDiff predict Batch 3D property prediction from .xyz, .sdf, or ASE .db inputs
MolCraftDiff eval-predict Evaluate predicted vs. reference properties (MAE, RMSE, $R^2$, parity plots)
MolCraftDiff analyze Post-generation suite: optimize, metrics, dock, bias, xyz2mol, featurize, xtb-electronic
MolCraftDiff data Dataset engineering: prepare, featurize, augment, ase-ops, import-graph3d
MolCraftDiff zoo Manage weights, reference datasets, and runnable examples/*.yaml configs (list, fetch, config, status)

Installation

conda create -n molcraft python=3.11 -y
conda activate molcraft

GPU / CUDA (recommended):

pip install molcraftdiffusion[gpu] \
    --find-links https://data.pyg.org/whl/torch-2.6.0+cu124.html

CPU-only:

pip install molcraftdiffusion[cpu] \
    --extra-index-url https://download.pytorch.org/whl/cpu \
    --find-links https://data.pyg.org/whl/torch-2.6.0+cpu.html

Docker / Apptainer (HPC-friendly, includes xtb + openbabel): see docker/Dockerfile and the Container Setup Guide.

macOS (Apple Silicon, MPS GPU): from a clone, run pip install -e '.[mac]' && pip install ./mac_shims.

Optional extras & chemistry binaries (xTB, OpenBabel, SBDD docking, data tools)
# Chemistry binaries (install from conda-forge, never pip)
conda install -c conda-forge xtb==6.7.1 openbabel -y
conda install xtb-python -y

# Optional Python extras
pip install "molcraftdiffusion[analyze]"   # PoseBusters, xyz2mol, SOAP featurization
pip install "molcraftdiffusion[sbdd]"      # AutoDock Vina, Meeko, Gemmi
pip install "molcraftdiffusion[data]"      # Dataset preparation & augmentation tools

See the full Installation Guide for platform-specific wheels, headless open3d-cpu, and development setup.


Documentation, Tutorials & Contributing

Visit the Online Documentation for guided walkthroughs:

  • Interactive Notebooks: 01 — 3D Generation Quickstart (Colab) · 02 — CFG & Inpainting Controlled Design (Colab)
  • Getting Started: Installation · Architectures · Config Templates · Model Zoo
  • Tutorials (00 → 11):
    • 00–04: Data Preparation (pointcloud/pyg/graph3d) · Training Diffusion & Flow · Regressors & SSL3D · Guidance Models · Fine-Tuning & LoRA
    • 05–07: Generation Overview · Structure-Guided (Inpaint / Outpaint / SILVR) · Property-Directed (CFG / GG / Bandpass)
    • 08–11: Property Prediction (predict/eval-predict) · Analysis & Evaluation (optimize/metrics/dock/xtb-electronic) · Generation Sweeps · Model Zoo & Multi-Architecture Workflows
  • Workflows & Applications: Workflows · Applications
  • Add Your Paper's Model: Because models plug in via Hydra _target_ configs without touching the core engine, contributing a new 3D architecture is a single self-contained PR. See CONTRIBUTING.md.

Citation

If you use MolCraftDiffusion in your research, please cite:

BibTeX citations
@article{worakul_modular_2026,
	title = {Modular {Framework} for {3D} {Molecular} {Generation} in {Computational} {Chemistry} {Applications}},
	url = {https://pubs.acs.org/doi/10.1021/jacs.5c19960},
	doi = {10.1021/jacs.5c19960},
	journal = {Journal of the American Chemical Society},
	author = {Worakul, Thanapat and Azzouzi, Mohammed and Wodrich, Matthew D. and Corminboeuf, Clémence},
	month = jun,
	year = {2026},
	pages = {jacs.5c19960},
}

@article{worakul_diffusion_2026,
	title = {A diffusion framework for geometrically valid and practically viable 3D molecular generation},
	url = {https://doi.org/10.1039/d6dd00456c},
	doi = {10.1039/d6dd00456c},
	journal = {Digital Discovery},
	publisher = {Royal Society of Chemistry (RSC)},
	author = {Worakul, Thanapat and Corminboeuf, Clémence},
	year = {2026},
}

@article{worakul_automaticmolcraft_2026,
	title = {AutomaticMolCraft: A Web Interface for 3D Molecular Generation, Dataset Curation, and Structure--Property Analysis},
	url = {https://chemrxiv.org/doi/abs/10.26434/chemrxiv.15008080/v1},
	doi = {10.26434/chemrxiv.15008080/v1},
	publisher = {ChemRxiv},
	author = {Worakul, Thanapat and Cuellar, Osvaldo Hernandez and Corminboeuf, Clémence},
	month = aug,
	year = {2026},
}

@article{worakul_solitarius_2026,
	title = {Solitarius: An Agentic Architecture for Computer-aided Molecular Inverse Design},
	url = {https://chemrxiv.org/doi/full/10.26434/chemrxiv.15005834/v2},
	doi = {10.26434/chemrxiv.15005834/v2},
	publisher = {ChemRxiv},
	author = {Worakul, Thanapat and Corminboeuf, Clémence},
	month = jul,
	year = {2026},
}

Metadata

Release files for molcraftdiffusion 1.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for molcraftdiffusion 1.13.0
File Size Uploaded Provenance Actions
molcraftdiffusion-1.13.0.tar.gz 13.6 MB Without provenance Details for molcraftdiffusion-1.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for molcraftdiffusion 1.13.0
File Interpreter ABI Platform Actions
molcraftdiffusion-1.13.0-py3-none-any.whl Python 3 none any Details for molcraftdiffusion-1.13.0-py3-none-any.whl

Total release size: 27.7 MB

Release files / molcraftdiffusion-1.13.0.tar.gz

Download URL molcraftdiffusion-1.13.0.tar.gz
Size 13.6 MB
Tags Source
SHA-256 checksum
How to use checksums
cc0daaa5444348f7841eed623d548e92a8520d9924325511086ff237f3e1e7a5
BLAKE2b-256 checksum
How to use checksums
b9751bf04433a274e0ad2e8ac918e7bcf5d09d1ee451c36bd309b90c0be3f845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Release files / molcraftdiffusion-1.13.0-py3-none-any.whl

Download URL molcraftdiffusion-1.13.0-py3-none-any.whl
Size 14.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e051666d5e3cee4562f73da89481270fd4f0c9ffbe5d1f3a8549aa20478fe6c1
BLAKE2b-256 checksum
How to use checksums
41a0f74c80bbfc7000c9e44846e3244229737fcbd1bc235b5c05e9494176aa10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Security for molcraftdiffusion 1.13.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page