All models

Multi-Modal Foundation · chandar-lab

recamplify

A recursive masked protein language model that refines residue-level representations over variable cycles.

What recamplify is

recAMPLIFY is a family of pretrained masked protein language models developed by chandar-lab. It introduces a recursive transformer architecture where a weight-tied recurrent core iteratively refines a residue-aligned latent state across multiple computational cycles. This setup allows the model to scale its test-time computation per sequence without increasing the overall parameter count.

The repository provides eleven distinct models evaluated in the associated study. These include retrained AMPLIFY-120M and AMPLIFY-350M baselines, fixed-cycle recAMPLIFY models, models trained with variable cycle counts, and variants employing Gated Mixture Recurrence (GMR) to enable adaptive processing depth.

How it works

recAMPLIFY processes amino acid sequences using an architecture divided into prefix, recurrent, and postfix layers, configured as (p, r, c). The core recurrent layers are weight-tied and repeat across L cycles, continually updating the sequence's residue-aligned representations.

Depth can be controlled either statically or dynamically. In static configurations, the number of recurrent cycles L can be altered directly at inference time. In dynamic configurations, Gated Mixture Recurrence (GMR) adaptively determines depth using halting mechanisms or residual gates, including scalar, rank-16, and per-dimension survival channels.

Key facts

Model family
recAMPLIFY
Task
Masked language modelling (fill-mask)
Architecture type
Recursive transformer with weight-tied recurrent core
Parameter count
118M to 354M (recAMPLIFY models span 133M to 155M)
Input
Protein amino acid sequences
Output
Sequence logits / masked token predictions
Data format
safetensors

What you can use it for

Masked Residue Prediction
Fill masked positions in protein sequences to evaluate sequence likelihoods or suggest residue substitutions.
Adaptive Test-Time Computation
Adjust the number of recurrent refinement cycles at inference time without modifying model weights to trade computational budget for representation depth.
Recursive Architecture Benchmarking
Compare standard transformer baselines against recursive and adaptive gating mechanisms (GMR) across 100K and 1M training step checkpoints.

Run it here

We list this model but cannot run it yet: its first test run here did not return a result, so it is tried again in a week.

Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.

Strengths and limits

Good at

  • Enables test-time compute scaling by adjusting the number of recursive cycles per sequence without altering parameter counts.
  • Offers adaptive depth through Gated Mixture Recurrence mechanisms that allocate computational depth dynamically.
  • Provides a collection of eleven matched checkpoints covering baseline transformers, fixed-depth recursion, and multiple gating strategies.

Watch out for

  • Execution requires enabling remote code execution (trust_remote_code=True) to load the custom model architecture and tokenizer.
  • Packed batching with FlashAttention requires CUDA, half-precision execution, and the flash-attn library.
  • The included AMPLIFY checkpoints are retrained within the recAMPLIFY codebase and differ from the original official AMPLIFY weights.

Inputs and outputs

You provide

  • Sequence with a mask

    Use the model's mask token, commonly [MASK] or <mask>.

You get back

  • Labels with confidence scores, highest first.

Licence

Check the licence before commercial use · mit

The mit licence carries terms worth reading before you depend on it.

Questions

Can I use recamplify commercially?

Check the licence before commercial use. The mit licence carries terms worth reading before you depend on it.

How do recAMPLIFY models differ from standard AMPLIFY baselines?

Standard AMPLIFY models use non-recurrent transformer layers, whereas recAMPLIFY employs a weight-tied recurrent core that processes residue representations iteratively over multiple cycles.

Can the number of recursive cycles be altered at inference?

Yes, test-time depth can be configured using the set_num_cycles method, permitting more or fewer recursive passes than used during training.

What is Gated Mixture Recurrence?

Gated Mixture Recurrence (GMR) provides adaptive depth to the recurrent core using halting mechanisms or residual gating channels at scalar, rank-16, or per-dimension granularities.

Are the AMPLIFY-120M and AMPLIFY-350M models in this collection the original weights?

No, the AMPLIFY baselines in this repository were retrained using the recAMPLIFY codebase and are not the official weights published under chandar-lab/AMPLIFY_120M or chandar-lab/AMPLIFY_350M.

How to cite it

Jha, Saurav and Liao, Qianli and Vernon, Robert McCoy and Chandar, Sarath and Fournier, Quentin. recAMPLIFY: Large-Scale Pretraining of Recursive Protein Language Models. 2026.

Written from recamplify's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.