Instructions to use nvidia/RFD4-Proteina-prep with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nvidia/RFD4-Proteina-prep 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-prep", 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
Download pyproject.toml from nvidia/RFD4-Proteina-prep: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/nvidia/RFD4-Proteina-prep/resolve/main/pyproject.toml
- Command line
-
hf download hf://nvidia/RFD4-Proteina-prep/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/nvidia/RFD4-Proteina-prep/resolve/main/pyproject.toml
1.21 kB
| [build-system] | |
| requires = ["setuptools>=68"] | |
| build-backend = "setuptools.build_meta" | |
| [project] | |
| name = "rfd4-proteina-prep" | |
| version = "0.1.0" | |
| description = "Annotated-CIF input preparation and output export for the Diffusers RFD4-Proteina pipeline." | |
| requires-python = ">=3.11" | |
| license = { text = "BSD-3-Clause" } | |
| dependencies = ["torch", "numpy", "atomworks[ml]==3.0.4", "scipy", "jaxtyping"] | |
| [project.urls] | |
| Homepage = "https://huggingface.co/nvidia/RFD4-Proteina-prep" | |
| Model = "https://huggingface.co/nvidia/RFD4-Proteina-Diffusers" | |
| [project.optional-dependencies] | |
| test = ["pytest"] | |
| # The design tasks the RFD4 datapipe samples during training. Inference never imports them -- the | |
| # pipeline takes tasks as constructed objects -- so `pip install rfd4-proteina-prep` is unchanged. | |
| # One package, because everything else the training path needs already arrives with atomworks. | |
| train = ["assertpy"] | |
| [tool.setuptools.packages.find] | |
| where = ["src"] | |
| [tool.setuptools.package-data] | |
| # The checkpoint vocabulary. Without it the package falls back to nothing: the encoding is read | |
| # at import time, so a missing resource is a hard failure rather than a silent wrong answer. | |
| rfd4_proteina_prep = ["resources/*.yaml"] | |