/atomistic-skills:ml-generative-aditfrom Atomistic Skills
Generates novel crystal structures (CIF) and molecules (XYZ) using Meta FAIR's ADiT latent diffusion model. Requires CUDA GPU.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate novel crystal structures and molecules using ADiT (All-atom Diffusion Transformers, ICML 2025), a unified latent diffusion framework from Meta FAIR Chemistry that jointly generates both periodic materials and non-periodic molecular systems from a shared latent space.
[!IMPORTANT] GPU Required: ADiT requires a CUDA-compatible GPU. CPU inference is extremely slow.
Runs as the adit MCP server and its scripts run in the adit environment: on x86_64 a uv environment created on first use (CUDA 12.6 or 13 by driver), on aarch64 the generative container image.
The AADT repository cloned next to this project as ../adit, or anywhere with ADIT_REPO pointing to it, at the verified commit. venv/run mounts it into the container on aarch64.
git clone https://github.com/facebookresearch/all-atom-diffusion-transformer ${CLAUDE_SKILL_DIR}/../../../adit
git -C ${CLAUDE_SKILL_DIR}/../../../adit checkout b9ce505f170597a7c8ca50d13ce8e15df21cf8c9
Pre-trained weights are automatically downloaded from HuggingFace on first use.
ADiT provides a joint pre-trained model trained on:
The single checkpoint handles both crystal and molecule generation, selected via the generation_type parameter.
Generate novel periodic crystal structures (saved as CIF files):
adit.generate_structures(
generation_type="crystals", # Generate periodic crystals
num_structures=10, # Number of structures to generate
batch_size=100, # Batch size for GPU efficiency
cfg_scale=2.0, # Classifier-free guidance scale
output_dir="research/my_project/crystals"
)
Generate novel non-periodic molecules (saved as XYZ files):
adit.generate_structures(
generation_type="molecules", # Generate molecules
num_structures=10,
batch_size=100,
cfg_scale=2.0,
output_dir="research/my_project/molecules"
)
| Parameter | Default | Description |
|---|---|---|
generation_type | "crystals" | "crystals" for periodic structures (CIF), "molecules" for non-periodic (XYZ) |
num_structures | 10 | Total number of structures to generate |
batch_size | 100 | Batch size (larger = faster on GPU) |
cfg_scale | 2.0 | Classifier-free guidance scale. Higher = more typical but less diverse |
device | "auto" | Device: "auto", "cpu", or "cuda" |
output_dir | auto | Output directory. Auto-creates under research dir |
crystal_XXXX.cif: Generated crystal structure files (pymatgen CIF format)generation_metadata.json: Generation parameters and statisticsmolecule_XXXX.xyz: Generated molecule files (ASE XYZ format)generation_metadata.json: Generation parameters and statistics[!WARNING] No Conditional Generation: The public checkpoint is unconditional only — you cannot condition on specific compositions, space groups, or properties. To get specific compositions: generate many structures and filter.
[!WARNING] No Fine-Tuning via MCP: Fine-tuning requires the full AADT training pipeline with multi-GPU setup and wandb logging. Use the raw codebase for training.
[!NOTE] Atom Count Distribution: The number of atoms per generated structure is sampled from the training dataset distribution. For crystals (MP20), this peaks around 8-20 atoms. For molecules (QM9), this peaks around 18 atoms including hydrogens.
[!TIP]
- Start with crystals: Crystal generation on MP20 tends to produce more valid structures
- Guidance scale: Use 2.0 (default) for balanced diversity/quality. Increase to 3.0-4.0 for more "typical" structures
- Validate outputs: Always validate generated structures via relaxation and stability analysis
- Batch size: Use batch_size=100 for best GPU throughput
ADiT works well in combination with:
ADiT uses a two-stage latent diffusion approach:
This unified framework handles both periodic (crystals) and non-periodic (molecules) systems.
Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/molecules/README.md (opens in a new tab)examples/molecules/generation_metadata.json (opens in a new tab)examples/molecules/molecule_0000.xyz (opens in a new tab)examples/molecules/molecule_0001.xyz (opens in a new tab)examples/molecules/molecule_0002.xyz (opens in a new tab)examples/molecules/molecule_0003.xyz (opens in a new tab)examples/molecules/molecule_0004.xyz (opens in a new tab)examples/molecules/molecule_0005.xyz (opens in a new tab)examples/molecules/molecule_0006.xyz (opens in a new tab)examples/molecules/molecule_0007.xyz (opens in a new tab)examples/molecules/molecule_0008.xyz (opens in a new tab)examples/molecules/molecule_0009.xyz (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters./chem-db-qmofQuery the Quantum MOF (QMOF) database via Materials Project's MPContribs platform for DFT-computed properties (bandgap) and optimized crystal structures of Metal-Organic Frameworks./chem-db-spectraSearch and download experimental InfraRed (IR), Mass spectra, and UV-Vis spectra data (JCAMP-DX format) for molecules./chem-dft-orca-advanced-calculationWrite and run custom ORCA input files for advanced electronic structure methods or settings not available through the SCINE wrapper, including multi-reference methods, excited states, relativistic effects, advanced SCF, NMR/EPR, and more.Other plugins' skills for the same job