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
Bootstrap patched TLS dependencies and fix the prep quickstart install
#1
by m1c0l - opened
The Quickstart currently starts downloading dependencies without a patched pip bootstrap, and its pinned prep git+ install fails during Git partial-clone checkout.
This change:
- Bootstraps pip 26.2.2 with the SHA-256-pinned wheel from the Python security advisory, then upgrades certifi to >=2026.10.19 before dependency downloads.
- Replaces the prep
git+install withhf download --revision c9959efdebd75ac7fe9129fbbf0e291a6e0487d5 --local-dir rfd4-prep, followed bypython -m pip install ./rfd4-prep. The prep revision is unchanged. - Keeps Diffusers installed from GitHub until its next release, and retains accelerate in the current and future-release instructions.
- Uses
python -m pipconsistently and documents separate system/Git trust-store and native downloader checks, linking the cross-ecosystem incident guidance. Updating certifi does not establish that native binaries are patched.
Validation on macOS arm64, Python 3.12.10, Git 2.50.1 (Apple Git-155), huggingface_hub 2.2.0:
- The pinned prep pip command failed both unauthenticated and authenticated; an authenticated
git clone --filter=blob:nonealso failed. All reportedfatal: expected 'packfile'and failure to fetch bloba6344aac8c09253b3b630fb776ae94478aa0275bfrom the promisor remote. Authentication did not resolve it. - The pinned
hf downloadplus local install succeeded (using a separaterfd4-prep-pinnedtest directory), andpython -m pip checkreportedNo broken requirements found. - In a fresh Python 3.12 venv, the companion prep PR's complete installation block also passed, including saved-login
hf auth whoami, the PR checkout's package install, and the GitHub Diffusers install. Before the pinned-revision test, pip was 26.2.2, certifi was 2026.10.19, and pip check passed. - Updated Quickstart bash syntax and whitespace checks pass. The combined Diffusers Quickstart was not rerun end-to-end; its bootstrap, prep download/install, and GitHub Diffusers install were exercised in the checks above. No model inference or native downloader TLS validation was performed.
Weights, model/code revision pins, and inference code are unchanged. Neither repository contains a Rust/Node build recipe or lockfile to patch.
m1c0l changed pull request title from Bootstrap patched pip and certifi in the Diffusers quickstart to Bootstrap patched TLS dependencies and fix the prep quickstart install
m1c0l changed pull request status to open