Diffusers
Safetensors
English
RFD4ProteinaPipeline
biology
protein-design
biomolecular-design
structure-generation
flow-matching
annotated-cif
Run this model with HF Jobs
Run nvidia/RFD4-Proteina-Diffusers on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/nvidia/RFD4-Proteina-Diffusers. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nvidia/RFD4-Proteina-Diffusers on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use nvidia/RFD4-Proteina-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nvidia/RFD4-Proteina-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nvidia/RFD4-Proteina-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Model card: explicit pipeline arguments, link the open Diffusers pull request
Browse files30 unmodified lines31323334353637383933 unmodified lines73747576777879808130 unmodified lines>> These weights are the **2026-10-19 release**: a 147-class residue vocabulary and a 32-dimensional> latent, produced by a LoRA fine-tune of the pretrained base that is merged into these weights.> Support for them is not in a released Diffusers version yet. It lives on branch> `add-rfd4-proteina-torch` of `huggingface/diffusers-new-model-addition-RFD4-Proteina`> (pull request 4). An older Diffusers will fail to load this repository rather than sample it> incorrectly.>> You also need the matching [`nvidia/RFD4-Proteina-prep`](https://huggingface.co/nvidia/RFD4-Proteina-prep),33 unmodified linesrequired = ["padding_mask", "is_in_context_conditioning", "supports_local_latent", "token_type","atom37_mask", "coords_nm"]inputs = {name: features[name] for name in required}conditioning = {name: value for name, value in features.items() if name not in required}output = pipe(**inputs, conditioning_features=conditioning, generator=torch.Generator("cuda:0").manual_seed(42))write_cif(output, features, atoms, "design.cif")```30 unmodified lines31323334353637383933 unmodified lines7374757677787980818283848586878830 unmodified lines>> These weights are the **2026-10-19 release**: a 147-class residue vocabulary and a 32-dimensional> latent, produced by a LoRA fine-tune of the pretrained base that is merged into these weights.> Support for them is not in a released Diffusers version yet. It is in the open pull request> [huggingface/diffusers#15088](https://github.com/huggingface/diffusers/pull/15088)> (branch `add-rfd4-proteina-torch` of `kierandidi/diffusers`). An older Diffusers will fail to load this repository rather than sample it> incorrectly.>> You also need the matching [`nvidia/RFD4-Proteina-prep`](https://huggingface.co/nvidia/RFD4-Proteina-prep),33 unmodified linesrequired = ["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")```
README.md+12-5