Diffusers
Safetensors
English
RFD4ProteinaPipeline
biology
protein-design
biomolecular-design
structure-generation
flow-matching
annotated-cif
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
Publication layout: model card, provenance, examples, assets
Browse files
README.md
CHANGED
|
@@ -52,10 +52,10 @@ from huggingface_hub import hf_hub_download
|
|
| 52 |
from diffusers import RFD4ProteinaPipeline
|
| 53 |
from rfd4_proteina_prep import prepare_cif, write_cif
|
| 54 |
|
| 55 |
-
pipe = RFD4ProteinaPipeline.from_pretrained("nvidia/RFD4-Proteina-
|
| 56 |
|
| 57 |
# An annotated CIF says what to hold fixed and what to design: here a PD-L1 target and a 50-120 residue binder.
|
| 58 |
-
input_cif = hf_hub_download("nvidia/RFD4-Proteina-
|
| 59 |
features, atoms = prepare_cif(input_cif, seed=42, device=pipe.device)
|
| 60 |
|
| 61 |
output = pipe(features, generator=torch.Generator("cuda:0").manual_seed(42))
|
|
|
|
| 52 |
from diffusers import RFD4ProteinaPipeline
|
| 53 |
from rfd4_proteina_prep import prepare_cif, write_cif
|
| 54 |
|
| 55 |
+
pipe = RFD4ProteinaPipeline.from_pretrained("nvidia/RFD4-Proteina-Diffusers", dtype=torch.bfloat16).to("cuda:0")
|
| 56 |
|
| 57 |
# An annotated CIF says what to hold fixed and what to design: here a PD-L1 target and a 50-120 residue binder.
|
| 58 |
+
input_cif = hf_hub_download("nvidia/RFD4-Proteina-Diffusers", "examples/protein_binder/input.cif")
|
| 59 |
features, atoms = prepare_cif(input_cif, seed=42, device=pipe.device)
|
| 60 |
|
| 61 |
output = pipe(features, generator=torch.Generator("cuda:0").manual_seed(42))
|