SKILL.md--- name: boltzgen description: > All-atom protein design using BoltzGen diffusion model. Use this skill when: (1) Need side-chain aware design from the start, (2) Designing around small molecules or ligands, (3) Want all-atom diffusion (not just backbone), (4) Require precise binding geometries, (5) Using YAML-based configuration. For backbone-only generation, use rfdiffusion. For sequence-only design, use proteinmpnn. For structure validation, use boltz. license: MIT category: design-tools tags: [structure-design, sequence-design, diffusion, all-atom, binder] proteinbase_slug: boltzgen proteinbase_url: https://proteinbase.com/design-methods/boltzgen biomodals_script: modal_boltzgen.py --- # BoltzGen All-Atom Design ## Prerequisites | Requirement | Minimum | Recommended | |-------------|---------|-------------| | Python | 3.11+ | 3.12 | | CUDA | 12.0+ | 12.1+ | | GPU VRAM | 24GB | 48GB (L40S) | | RAM | 32GB | 64GB | ## How to run > **First time?** See [Getting started](../../docs/getting-started.md) to set up Modal and biomodals. ### Option 1: Modal (recommended) ```bash # Clone biomodals git clone https://github.com/hgbrian/biomodals && cd biomodals # Run BoltzGen (requires YAML config file) modal run modal_boltzgen.py \ --input-yaml binder_config.yaml \ --protocol protein-anything \ --num-designs 50 # With custom GPU GPU=L40S modal run modal_boltzgen.py \ --input-yaml binder_config.yaml \ --protocol protein-anything \ --num-designs 100 ``` **GPU**: L40S (48GB) recommended | **Timeout**: 120min default **Available protocols**: `protein-anything`, `peptide-anything`, `protein-small_molecule`, `nanobody-anything`, `antibody-anything` ### Option 2: Local installation ```bash git clone https://github.com/HannesStark/boltzgen.git cd boltzgen pip install boltzgen # or: pip install -e . # Driven by the boltzgen CLI with a YAML design spec boltzgen run binder_config.yaml \ --output out/ \ --protocol protein-anything \ --num_designs 50 ``` The first run downloads model weights (~6GB) to `~/.cache`. Verify a spec with `boltzgen check binder_config.yaml` before a full run. **GPU**: L40S (48GB) | **Time**: ~30-60s per design ## Key parameters (CLI) | Parameter | Default | Description | |-----------|---------|-------------| | `--input-yaml` | required | Path to YAML design specification | | `--protocol` | `protein-anything` | Design protocol | | `--num-designs` | 10 | Number of designs to generate | | `--steps` | all | Pipeline steps to run (e.g., `design inverse_folding`) | ## YAML configuration BoltzGen uses an **entity-based YAML format** where you specify designed proteins and target structures as entities. **Important notes:** - Residue indices use `label_seq_id` (1-indexed), not author residue numbers - File paths are relative to the YAML file location - Target files should be in CIF format (PDB also works but CIF preferred) - Run `boltzgen check config