ColabFold Settings Explained: Recycles, MSA Mode, Relax

For most single proteins, the ColabFold AlphaFold2 notebook defaults are sound: msa_mode mmseqs2_uniref_env, model_type auto, num_recycles 3. Change four things before docking or MD: set num_relax to 1 so the top model gets Amber relaxation, turn on pdb100 templates for hard targets, raise recycles for complexes or low-confidence loops, and always take the rank_001 relaxed PDB forward.
This guide is written by the StemSkills Lab team, who have spent more than ten years in structural bioinformatics, drug design and molecular modelling. It follows the official ColabFold AlphaFold2 notebook (version 1.6.3 at the time of writing) option by option. If you have never run a prediction before, start with our beginner guide on how to predict a protein structure with AlphaFold, then come back here.
What does ColabFold actually change compared with AlphaFold2?
ColabFold keeps the AlphaFold2 neural network and its trained weights, but replaces the slow homology search with MMseqs2 running on a public server. The ColabFold paper by Mirdita and colleagues in Nature Methods (2022) reports a 40 to 60 fold faster search, which is what makes a free Google Colab GPU usable for structure prediction at all.
That design choice matters for your settings. Most options in the notebook control one of three stages: how the multiple sequence alignment (MSA) is built, how many times the network refines its own prediction, and what happens to the coordinates afterwards. Once you know which stage a setting belongs to, you can predict its effect.
Which ColabFold settings matter, and what are the defaults?
The table below lists every option in the main form of the notebook, its default, and our recommendation for students who will dock into or simulate the model.
| Setting | Default | Options | What it controls | Change it when |
|---|---|---|---|---|
| msa_mode | mmseqs2_uniref_env | mmseqs2_uniref_env, mmseqs2_uniref, single_sequence, custom | Which databases the MSA comes from | You have your own A3M, or you are testing a designed sequence |
| pair_mode | unpaired_paired | unpaired_paired, paired, unpaired | How chains of a complex are aligned together | Rarely; only for complexes |
| template_mode | none | none, pdb100, custom | Whether known PDB structures are used as templates | Low pLDDT, or a close homologue exists in the PDB |
| model_type | auto | auto, alphafold2_ptm, alphafold2_multimer_v1/v2/v3, deepfold_v1, alphafold2 | Which set of network weights runs | Almost never; auto picks correctly |
| num_recycles | 3 | auto, 0, 1, 3, 6, 12, 24, 48 | How many refinement passes the network makes | Loops or interfaces stay low-confidence |
| recycle_early_stop_tolerance | auto | auto, 0.0, 0.5, 1.0 | When recycling stops early | You raised recycles and want them to stop once converged |
| relax_max_iterations | 200 | 0, 200, 2000 | Length of the Amber minimisation | Relaxed model still shows clashes |
| pairing_strategy | greedy | greedy, complete | How strictly species must match when pairing | Rarely |
| max_msa | auto | auto, 512:1024, 256:512, 64:128, 32:64, 16:32 | How many MSA sequences the network sees | You want alternative conformations, not one best model |
| num_seeds | 1 | 1, 2, 4, 8, 16 | How many random starts per model | A difficult target needs more sampling |
| use_dropout | off | on, off | Random noise during inference | Sampling conformations, together with more seeds |
| num_relax | 0 | 0, 1, 5 | How many top models get Amber relaxation | Always set to 1 before docking or MD |
Which msa_mode should I use?
Keep mmseqs2_uniref_env for almost every natural protein. It searches UniRef100 plus environmental (metagenomic) sequences, which gives the deepest alignment. The notebook’s own guidance on the coverage plot is that you want to see “at least 30 sequences per position” (ColabFold notebook), and ideally around 100. If the coverage plot drops well below 30 across a domain, expect low pLDDT there no matter what else you change.
- mmseqs2_uniref drops the environmental sequences. Use it only to compare against the default.
- single_sequence runs with no alignment at all. AlphaFold2 performs poorly this way on most natural proteins, so treat it as a diagnostic, or for de novo designed sequences that have no homologues anyway.
- custom lets you upload your own A3M file, for example from the HHblits server at the MPI Bioinformatics Toolkit. The first entry must be the query sequence without gaps.
pair_mode only matters for complexes, where chains are separated by a colon in the sequence box. The default, unpaired_paired, combines sequences paired by species with a separate unpaired MSA per chain. Leave it alone unless you are comparing approaches for a paper. For complexes in general, read our guide to predicting a protein complex with AlphaFold-Multimer in ColabFold.
Should I turn on templates (template_mode)?
The default is none, and AlphaFold2 is usually accurate without templates when the MSA is deep. Switch to pdb100 when the first run gives low pLDDT and you know a related structure exists in the PDB. Since June 2023 the notebook searches a 100% clustered PDB (PDB100) rather than the older PDB70, although output files keep the PDB70 name for compatibility.
Use custom when you want the prediction to follow a specific experimental structure, for instance the holo form of your target with the binding site already shaped. Templates must use four-letter lower-case PDB names, and mmCIF files need the _entity_poly_seq field. Our guide to template selection in homology modelling explains how to judge which template to trust.
What does num_recycles do, and how high should I set it?
Each recycle feeds the predicted structure back into the network for another pass. The notebook default is 3. If you pick auto, ColabFold uses 20 recycles for alphafold2_multimer_v3 and 3 for everything else.
Raise recycles to 6 or 12 when a domain or loop that should be ordered comes back with low pLDDT, or when an interface in a complex looks unconvincing. Pair a higher count with recycle_early_stop_tolerance: under auto, it is 0.5 for multimer_v3 and 0.0 (never stop early) otherwise. A value of 0.5 tells ColabFold to stop once the structure changes by less than that amount between passes, so you do not burn Colab GPU time on recycles that change nothing.
Recycling cannot invent information the MSA does not contain. If the coverage plot is thin, 48 recycles will not rescue the model.
Want the guided, hands-on version?
Our live Molecular Modeling & MD Simulations cohort bootcamp takes you from zero to running real docking and MD workflows, with a portfolio project for your grad-school applications.
Which model_type should I pick?
Leave it on auto. ColabFold then runs alphafold2_ptm for a single chain and alphafold2_multimer_v3 for a complex. The ptm weights matter because they also produce the PAE matrix and the pTM score; the plain alphafold2 weights do not, so ColabFold falls back to ranking by pLDDT only. The older multimer_v1 and v2 weights exist for reproducing earlier work.
Ranking also depends on the model type. Single chains are ranked by mean pLDDT. Complexes are ranked by the AlphaFold-Multimer confidence, which weights interface confidence heavily (0.8 times ipTM plus 0.2 times pTM). If you are unsure what those scores mean, see our guide to reading AlphaFold pLDDT and PAE scores.
What do max_msa, num_seeds and use_dropout do?
These three are sampling controls. By default ColabFold runs five models with one seed each, so you get five structures. Setting num_seeds to 4 gives 20 structures, and runtime grows roughly in proportion.
- max_msa takes two numbers, max_seq:max_extra_seq. Under auto, the ptm weights use 512:5120 for models 1, 3 and 4 and 512:1024 for models 2 and 5 (from the ColabFold source). Lowering it, for example to 32:64, makes the network less certain and more likely to show alternative conformations.
- use_dropout adds random noise during prediction. Combined with more seeds, it samples the model’s uncertainty.
Use these when your question is about conformational states, for example open versus closed forms of a kinase. For a single structure to dock into, the defaults are the right choice, because sampling for diversity is the opposite of what you want.
Should I relax the model (num_relax)?
Yes, before docking or MD. The default is 0, which means no Amber relaxation. Raw AlphaFold2 output can contain small clashes and strained side chains. Relaxation runs a restrained energy minimisation that fixes local geometry; it is not designed to change the fold.
Set num_relax to 1 to relax only the top-ranked model, which is all you need. Setting 5 relaxes every model and costs extra time. Keep relax_max_iterations at 200. The value 0 means unlimited iterations, which was the original AlphaFold2 behaviour and can take a very long time on Colab.
Which output files should I take into docking or GROMACS?
When the run finishes, the notebook packs everything into jobname.result.zip. The job name gets a five-character hash of your sequence appended, so a job called kinase becomes something like kinase_1a2b3. Structure files follow this pattern:
<jobname>_relaxed_rank_001_alphafold2_ptm_model_3_seed_000.pdb
The model number varies; the rank is what matters. Here is what to keep:
- The rank_001 relaxed PDB. This is your structure for docking and MD.
- The matching scores JSON for rank_001. It holds the per-residue pLDDT, the PAE matrix and pTM, which you need for your methods section.
- The coverage, pLDDT and PAE plots. Put them in your supplementary figures.
- The A3M MSA file and the log. They let you, or a reviewer, reproduce the run.
- The citation BibTeX file that ColabFold writes. Cite every tool and database it lists.
Before docking, trim or check low-pLDDT termini that flop across the binding site; our guide to docking a ligand into an AlphaFold model covers this. Before MD, follow our walkthrough on preparing an AlphaFold model for GROMACS, because pdb2gmx still needs protonation states and termini handled.
What should a sensible ColabFold run look like for a student project?
For a single protein you plan to dock into, this configuration works in most cases:
- msa_mode: mmseqs2_uniref_env
- template_mode: none for the first run; pdb100 if pLDDT is low and a homologue exists
- model_type: auto
- num_recycles: 3, raised to 6 or 12 with tolerance 0.5 if confidence is low
- num_relax: 1
- num_seeds: 1, use_dropout off, max_msa auto
- save_to_google_drive: on, so a closed browser tab does not lose your results
Record every setting you used. The notebook writes a parameter log for this reason, and a methods section that says only “predicted with ColabFold” is not reproducible.
How do I fix common ColabFold errors?
- The run fails or stalls straight away. Check Runtime, then Change runtime type, and confirm a GPU is selected. If that does not help, use Runtime, then Factory reset runtime, as the notebook’s troubleshooting notes suggest.
- Out of memory on a long sequence. Colab assigns GPUs with different memory. Predict individual domains separately, or run ColabFold locally; the notebook warns that an older K80 GPU is limited to a total length under 1000 residues.
- The result zip never downloads. Your browser blocked the pop-up. Open the file panel on the left, right-click
jobname.result.zipand download it, or turn on save_to_google_drive before running. - Custom template rejected. Rename it to a four-letter lower-case PDB code, and add _entity_poly_seq if it is an mmCIF file.
- Low pLDDT everywhere. Look at the coverage plot first. A thin MSA is the usual cause; templates are the next thing to try. Some regions are genuinely disordered, and no setting will make them confident.
For deeper detail on each stage, the ColabFold team’s Nature Protocols paper and the ColabFold GitHub repository are the official references. Structure prediction is one stage in a longer path, which our computational biology skills roadmap lays out from sequence to simulation.
Frequently asked questions
Is ColabFold as accurate as AlphaFold2?
It uses the same AlphaFold2 network and weights; only the MSA search differs. The notebook notes that MMseqs2 may find fewer hits than HHblits or HMMER on the full databases, so for publication-critical targets the ColabFold team also recommends checking against the full AlphaFold2 pipeline.
Why does ColabFold give me five models?
AlphaFold2 has five trained models with slightly different parameters, and ColabFold runs all five by default. They are ranked by confidence, and rank_001 is the one to use.
Does Amber relaxation make the model more accurate?
It improves local geometry by removing clashes and strained bonds. It is not meant to change the overall fold, so do not expect pLDDT or the backbone to improve.
Can I use ColabFold for a protein-ligand complex?
No. The AlphaFold2 notebook predicts protein chains only. Predict the protein, then dock the ligand with a tool such as AutoDock Vina.
How many recycles are too many?
There is no fixed limit, but past the point where the structure stops changing, extra recycles only cost time. Set recycle_early_stop_tolerance to 0.5 so ColabFold stops once it converges.
Want the guided, hands-on version?
Our live Molecular Modeling & MD Simulations cohort bootcamp takes you from zero to running real docking and MD workflows, with a portfolio project for your grad-school applications.
