nvidia/RFD4-Proteina
- License
- bsd-3-clause
- Size
- not mirrored yet
No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from nvidia/RFD4-Proteina
All models by nvidia →No official torrent yet — requesting it tells the flock what to host next. You cannot seed a catalog-only page.
Cataloged from nvidia/RFD4-Proteina
All models by nvidia →Sequence and structure, designed together.
Baker Lab × NVIDIA GenAIR
Project page · Code · Documentation · Training data · Studio (ZeroGPU) · Studio (dedicated GPU)
RFD4-Proteína is a flow-matching model for biomolecular design. It generates protein sequences and all-atom structures together, conditioned on the molecular context you want to preserve: a binding target, an enzyme motif, a ligand, or selected structural features.
[Image blocked: Examples from the project: nanobody complex, protein–DNA binder, RNA pseudoknot, ligand pocket, glycan complex, and protein assembly.]This repository is the canonical native bundle. config.json and model.safetensors at
the root are the native weights, loaded by Proteina.from_pretrained.
It is one model throughout — nothing is retrained. The Diffusers weights are the same tensors
re-prefixed and split across transformer/ and vae/. Diffusers needs model_index.json at the
root of whatever it is pointed at, so it has its own repository. Annotated-CIF preprocessing for
Diffusers is in nvidia/RFD4-Proteina-prep.
Diffusers from git until the next release.
nvidia/RFD4-Proteina-Diffusersholds the same 2026-10-19 release.RFD4ProteinaPipelinewas merged into Diffusers on 2026-10-20 (huggingface/diffusers#15088) and ships in the next release; until then install Diffusers from GitHub, as in the snippet below.
Training data lives in the companion dataset repository.
The bundle includes both model components. Use the RFD4 loader below; this is a native RFD4 bundle.
The release is a matched pair: a flow model and the autoencoder it was trained against. They are not interchangeable across releases — the autoencoder defines the latent space the flow model generates in, and mixing a flow model with a different autoencoder produces nonsense rather than an error.
The 2026-10-19 pair supersedes the 2026-10-15 pair (2026_10_15_hero_s43_c512_80k-ema and 2026_10_15_unified_ae_s43_400k-ema), which has the same architecture. The pretrained base alone is in base/, and the LoRA adapter that turns it into the release model is in adapter/ (PEFT format, rank 32 on to_qkv and to_out_node); the release bundle at the root is exactly the base plus the adapter, merged.
The current release's autoencoder is unified: one autoencoder covering proteins, nucleic acids and small molecules, with a 147-class residue vocabulary in place of the previous 33-class protein vocabulary, and a 32-dimensional latent in place of 16. This is the change that makes the two releases incompatible with each other's components.
The published .ckpt files carry EMA weights and hyperparameters only. The duplicate SimpleEMA shadow copy, optimizer, scheduler and loop state are removed, which is why they are 1.74 GB and 1.03 GB rather than 4.21 GB and 3.10 GB. Their weight tensors are bit-identical to the full training checkpoints, whose SHA-256 values are recorded in release-checkpoints.json. They initialize weights for inference or fine-tuning; resuming an interrupted training run needs the full checkpoint, which is not distributed here.
Stable filenames always select the current release; the dated training filename of each is recorded in release-checkpoints.json. Pin a Hub revision and verify the SHA-256 sidecars for exact identity. These EMA exports initialize weights; resuming optimizer and scheduler state requires a full training checkpoint.
Pick one route; the quickstart covers all three in detail.
GitHub (recommended: the full workflow with annotated inputs, reward-guided search and refolding metrics):
PyPI (the model inside your own Python environment):
Diffusers: see Loading the model below.
Container images (no build needed): prebuilt RFD4-Proteína runtime images for Linux x86_64 are in runtime/ [blocked], as Apptainer (.sif) and SquashFS for Enroot/Pyxis (.sqsh) files with SHA-256 sidecars. cu13 (CUDA 13), cu12 (CUDA 12) and cpu (no GPU; imports, CLI and CPU metrics only) variants exist, built from the public Apptainer recipe. They contain the code and its dependencies, not model weights or the AF2/AF3 oracles; pass hf_ckpt_path=nvidia/RFD4-Proteina and a writable HF_HOME.
Setup caches the paired model bundle; downloads use HF_HOME when set. You do not need the training dataset for generation. If access to this repository is restricted, run hf auth login first. See installation for hardware and build requirements.
From the checkout root (with the PyPI install, use the packaged example instead: inputs=$(python -c "import rfproteina, pathlib; print(pathlib.Path(rfproteina.__file__).parent / 'data/benchmarks/monomer/monomer-short.cif')")):
Find the generated CIF under runs/first/inference_samples/. This first run disables external scoring and compilation to keep setup simple. For repeated runs, use the normal compiled configuration described in running the model; compilation has an initial warmup cost.
For enzyme motif scaffolding, replace the input with ./rfd4-examples/examples/enzyme_design/input.cif and choose a new output directory. The annotations specify what to hold fixed and what to design; an ordinary, unannotated structure is not a complete design specification.
Load the matched model and autoencoder once and reuse them across runs:
from_pretrained loads in evaluation mode on CPU by default; run_generation uses the native CUDA inference workflow. A local exported bundle directory also works as the model argument.
This needs Diffusers installed from git, as shown above. Partial diffusion and inverse folding work in this port. See the repository for details.
The released recipes differ only in how often the trunk is recycled per sampling step, as (steps, recycle depth) bands over 60 steps. thinking_low|medium|high are the front-loaded schedules, and the default is medium. The native runtime also has flat and mid-peak schedules for each budget; see the running guide for which one suits a task.
In the native runtime select one with recycle_strategy=thinking_low|thinking_medium|thinking_high.
Tested and confirmed on the following NVIDIA GPUs. Linux x86_64, Python 3.12, and a CUDA 13-compatible driver are required.
Weights are 1.74 GB in FP32. Peak GPU memory depends on token count, batch size and recycle depth rather than on the weights; the quickstart above runs at batch size 1 with compilation disabled. Refolding and metrics need the selected oracle's own environment and weights, which are a separate download.
These numbers were measured on the previous release pair, in the October 9, 2026 frozen project benchmark, which predates the current checkpoints. They have not been re-measured on the current release and should not be read as describing it.
The table uses one consistent high-thinking setting for RFD4 and the strongest non-RFD4 comparator in each family. Metric: mean per-target structurally distinct computational passers per GPU-hour, including generation and common AF3 evaluation. Higher is better.
There are 200 original attempts per target. Failed attempts consume time; setup, compilation, CPU scoring, and idle allocation time are excluded. Values are means of target-level rates, not pooled totals or single-design latency.
Conditioning differs between some methods: PPI uses RFD4 backbone conditioning versus all-atom conditioning for several baselines; DNA compares unfixed RFD4 inputs with fixed-DNA baselines; Proteina-Complexa's small-molecule route uses fixed ligands. Only three DNA targets are included. Computational passers do not establish experimental activity.
Benchmark provenance [blocked] · Full comparison table [blocked] · Per-target source data [blocked] · Benchmark methods and pass criteria [blocked]
The companion dataset card describes the available training snapshot, component-specific filters, source terms, and loading format. Its upload date or proposed sampling mix should not be interpreted as the exact training history of every checkpoint.
Use the model for computational biomolecular design and follow designs with appropriate structural and experimental evaluation. Performance depends on the target, input annotations, sampling settings, and training coverage. Generation-only quickstarts omit external refolding and scoring; see evaluation and metrics to add them.
Third-party software and weights. The BSD 3-Clause license covers the RFD4-Proteína model, weights and code only. The optional alphafold2/runtime/ and openfold3/runtime/ container images package third-party software (AlphaFold2- and AlphaFold3-derived code, OpenFold3 and their dependencies) that stays under its own upstream licenses, some of which restrict commercial use or redistribution. The ported OpenFold3 weights in openfold3/weights/ are Apache-2.0 (see the provenance file). Review each upstream license before using the images, and do not assume the BSD license applies to them. Neither oracle is needed for generation.
Optional AF3/OpenFold3 runtime images [blocked] are available for Linux x86_64 with CUDA 12 or CUDA 13 in Apptainer (.sif), SquashFS (.sqsh) and Docker (.docker.tar) formats, with SHA-256 checksums. OpenFold3 weights [blocked] are downloaded separately. These files are only needed for refolding and metrics; generation does not use them.
The RFD4-Proteína model and weights are released under the BSD 3-Clause License [blocked], Copyright (c) 2026, Institute for Protein Design, University of Washington. Optional third-party assets distributed alongside the model — the AlphaFold2 and OpenFold3/AlphaFold3 refolding images and the OpenFold3 payload — carry their own upstream terms; see the note under Other repository files and their provenance files. The training data has its own source terms, described on the dataset card.
When reporting results, cite the RFD4-Proteína project together with the exact model revision, code revision, seed, inputs and sampling configuration you used, plus any source datasets and evaluation tools.
Developed by the Baker Lab at the Institute for Protein Design, University of Washington, and NVIDIA GenAIR.
Code and issues · Model history · License [blocked]
git clone https://github.com/RosettaCommons/RFD4-Proteina.gitcd RFD4-Proteinamake setupsource .venv/bin/activatepython3.12 -m venv .venv && source .venv/bin/activatepip install --extra-index-url https://download.pytorch.org/whl/cu132 "rfd4-proteina[metrics-cuda13]"hf download nvidia/RFD4-Proteina runtime/rfd4-proteina-cu13-amd64.sif runtime/rfd4-proteina-cu13-amd64.sif.sha256 --local-dir .apptainer exec --nv runtime/rfd4-proteina-cu13-amd64.sif rfd4-generate hf_ckpt_path=nvidia/RFD4-Proteina inputs=in.cif out_dir=./runsrfd4-generate inputs=data/benchmarks/monomer/monomer-short.cif \ hf_ckpt_path=nvidia/RFD4-Proteina \ hf_ckpt_revision=a06e2509c7033b010fc43614e9fd840303588502 \ num_replicates=1 out_dir=./runs/first '~metrics' compile_lengths=nullhf download nvidia/RFD4-Proteina \ --revision a06e2509c7033b010fc43614e9fd840303588502 \ --local-dir ./rfd4-examples \ examples/protein_binder/input.cif examples/enzyme_design/input.cif
rfd4-generate inputs=./rfd4-examples/examples/protein_binder/input.cif \ hf_ckpt_path=nvidia/RFD4-Proteina \ hf_ckpt_revision=a06e2509c7033b010fc43614e9fd840303588502 \ num_replicates=1 out_dir=./runs/pdl1 '~metrics' compile_lengths=nullfrom pathlib import Pathfrom huggingface_hub import hf_hub_downloadfrom hydra import compose, initialize_config_dirimport rootutilsimport rfproteinafrom rfproteina.proteina import Proteinafrom rfproteina.generate import run_generation
revision = "a06e2509c7033b010fc43614e9fd840303588502"input_cif = hf_hub_download( "nvidia/RFD4-Proteina", "examples/enzyme_design/input.cif", revision=revision,)model = Proteina.from_pretrained("nvidia/RFD4-Proteina", revision=revision)config_dir = rootutils.find_root(rfproteina.__file__, indicator=".project-root") / "configs"with initialize_config_dir(config_dir=str(config_dir), version_base="1.3"): cfg = compose(config_name="inference", overrides=[ f"inputs={input_cif}", "out_dir=./runs/enzyme", "num_replicates=1", "~metrics", "compile_lengths=null", ])run_generation(cfg, model=model)print(list(Path("runs/enzyme/inference_samples").rglob("*_generated.cif*")))# RFD4-Proteina was merged into Diffusers on 2026-10-20 and ships in the next release.# Until that release, install Diffusers from git:pip install git+https://github.com/huggingface/diffusers git+https://huggingface.co/nvidia/RFD4-Proteina-prep@c9959efdebd75ac7fe9129fbbf0e291a6e0487d5 accelerate
# Once the release is out, this is enough:# pip install diffusers git+https://huggingface.co/nvidia/RFD4-Proteina-prep@c9959efdebd75ac7fe9129fbbf0e291a6e0487d5import torchfrom diffusers import RFD4ProteinaPipelinefrom rfd4_proteina_prep import prepare_cif, write_cif
pipe = RFD4ProteinaPipeline.from_pretrained("nvidia/RFD4-Proteina-Diffusers", dtype=torch.bfloat16).to("cuda:0")features, atoms = prepare_cif("input.cif", seed=42, device=pipe.device)required = ["padding_mask", "is_in_context_conditioning", "supports_local_latent", "token_type", "atom37_mask", "coords_nm"]conditioning = {name: value for name, value in features.items() if name not in required}output = pipe( padding_mask=features["padding_mask"], is_in_context_conditioning=features["is_in_context_conditioning"], supports_local_latent=features["supports_local_latent"], token_type=features["token_type"], atom37_mask=features["atom37_mask"], conditioning_features=conditioning, generator=torch.Generator("cuda:0").manual_seed(42),)write_cif(output, features, atoms, "design.cif")@software{rfd4_proteina_2026, title = {RFD4-Proteína: joint sequence and all-atom structure design}, author = {{Baker Lab, Institute for Protein Design, University of Washington} and {NVIDIA GenAIR}}, year = {2026}, url = {https://huggingface.co/nvidia/RFD4-Proteina}, note = {Model revision a06e2509c7033b010fc43614e9fd840303588502}}