When Are NIMs Faster?What switching to NVIDIA NIMs changed in our timings, our costs and our designs

Jelena Pejovic SimeunovicSenior Bioinformatics Engineer
Patrícia RochaSenior Machine Learning Engineer
Jorge Moura SampaioBioengineering Lead
Bojan JakimovskiMachine Learning and Applied Research Lead
Two blue tracks carry folded protein ribbons. One track has several gold startup markers; the other has one.

Abstract#

Whether NVIDIA NIMs are faster than open-source containers depends on how they are deployed. We built the same PD-L1 workflow twice in Nextflow and ran both versions on AWS Batch. At one design per container, the NIM arm used 12.3% more container time and cost 19.8% more in the compute model, because an OpenFold3 task spent about 100 seconds outside the 12-second model fold. Giving each RFdiffusion and OpenFold3 server 15 designs cut those stages’ time per design about sixfold. The two arms also produced different designs, and network transfer cost twice as much as compute. Deployment decided the result more than the model did.

Introduction#

NVIDIA ships models as NIMs: containers that serve a model behind an HTTP endpoint, with an accelerated inference stack already tuned for their GPUs. NIMs can be chained into full workflows, with examples across industries: fraud detection in finance, video analytics for cities and warehouses, document research for enterprises. NVIDIA publishes many of these chains as blueprints.

Teams building a pipeline like this often face the same choice: NIM containers or open-source ones. Does the pipeline get faster and cheaper while retaining accuracy? We put that to the test with a protein binder design workflow, where the goal is to design a new protein that binds specifically to a chosen target. We focused on PD-L1, an immune checkpoint protein that helps several tumors evade immune attack by binding to PD-1 on T cells. Blocking this interaction is an established strategy in cancer immunotherapy. We built the same PD-L1 workflow twice in Nextflow, once with NIM services and once with open-source containers, and ran both on AWS Batch.

We got three different answers to the same question. At 20 binders, NIMs looked faster and cheaper. At 150 designs with a matched baseline, the result reversed. When we gave each NIM server 15 designs instead of one, the NIM stages ran about six times faster per design. Same models, same data. What changed each time was the deployment.

The sections below describe the pipeline, what did and did not reproduce across the two arms, the timing, quality and cost results, and the batching test.

What we built and why#

Two parallel PD-L1 binder-design workflows, one using NVIDIA NIMs and one using direct model execution. A second panel shows how Nextflow orchestrates both on AWS Batch.
Figure 1. PD-L1 binder-design workflow. Both arms share the same Nextflow process graph on AWS Batch. OpenFold3 receives alignments assembled from a precomputed target alignment and the binder query.

We built a Nextflow DSL2 workflow to design binders against PD-L1 and compare NVIDIA NIM services with direct model execution in OSS Docker images. Both arms followed the pipeline in Figure 1: RFdiffusion generated backbones, ProteinMPNN designed sequences, thread/relax prepared structures, OpenFold3 predicted complexes, and the same BindCraft scoring workflow evaluated the designs.

Nextflow handled dependencies, parallel tasks and retries; AWS Batch ran the GPU and CPU containers. The main comparison generated 150 designs per arm, with 78-residue binders, matched RFdiffusion seeds and identical resource requests at each step. Both arms reused a precomputed PD-L1 alignment and a query-only binder alignment. The MSA step assembled those files; MSA search was outside the benchmark.

GPU stages ran on g6e.4xlarge instances, one NVIDIA L40S each.

Stage NIM arm Open-source arm
RFdiffusion NIM 2.3.0 rfdiffusion-fixed, standalone runner
ProteinMPNN NIM 1.2.0 proteinmpnn_dl_binder_design
OpenFold3 NIM 1.5.0, patched to emit PAE openfold3:0.5-pixi

Reproducibility: what transferred, and what didn’t#

RFdiffusion — matching the execution stack with agents#

We used coding agents to adapt a non-NIM Docker image to match NIM’s RFdiffusion execution environment: software versions, CUDA and TensorRT/Warp acceleration.

Matching software versions, CUDA and model weights alone was insufficient. By default both images presented the same exact model weights, but different software versions affecting Numpy, Python and CUDA. We adapted all this but binders remained different while passing the same precise input and seed. So identical seeds still produced different backbones until we adapted the code of the non-NIM Docker image to match the TensorRT and Warp acceleration. After this alignment, all 150 paired backbones were byte-identical, with a Cα RMSD of 0.000 Å.

This demonstrated that agents can help replicate NIM’s optimized execution stack and that tensor acceleration is part of the model’s generative behavior, even when software versions and weights have been matched.

ProteinMPNN — sequences#

The same control did not carry through sequence generation. ProteinMPNN received identical backbones, checkpoint v_48_002, seed 102 and temperature 1e-6, yet none of the 150 paired sequences matched exactly. Mean sequence identity was 63%.

Despite the sequence differences, the predicted 3D structures often remained similar after OpenFold3 folding. The median binder Cα RMSD between NIM and non-NIM was 2.00 Å after superposing the binder chains.

The cause of this difference lies in the implementations. At the same seed both arms reproduce their own sequences exactly, so each arm is internally deterministic, but they do not agree with each other. RFdiffusion showed the same pattern, producing different backbones from identical seeds and weights until the execution paths were aligned. Different RFdiffusion backbones would be a much bigger change than different ProteinMPNN sequences for the same backbone (with median 2.00 Å difference), because the two pipelines would be designing for different shapes from the start. Still, a paired comparison has to begin after this step, with both arms folding the same sequences. From ProteinMPNN onward, we were folding and scoring different sequences, so downstream quality comparisons are affected, and matching the binder length at 78 residues controls one workload variable. RFdiffusion and ProteinMPNN ran on identical inputs; from OpenFold3 onward each arm folds its own sequences, which is why the timings that follow are end-to-end for the two workflows.

Results: time, quality, cost#

Time: startup changed the answer#

At 20 binders, NIMs looked faster and cheaper. Two things in the setup produced that. The baseline ran its MSA search inside the GPU task, paying GPU rates for work the NIM path did on a CPU queue, and matching the execution stacks later added the NIM’s own 52.6-second RFdiffusion warmup to the open-source side, taking that step from 56.6 to 108.4 seconds. Neither was a property of the NIM.

At one design per container, the NIM arm used 12.3% more summed container time and cost 19.8% more in the compute model. The NIM tasks were faster at RFdiffusion and ProteinMPNN, but the extra 47.8 seconds at OpenFold3 outweighed those savings.

Whole pipeline, one design per container OSS / direct NIM
Summed container time per design, all stages 345.6 s 388.2 s
Modeled compute cost per design $0.127 $0.152
Elapsed time for 150 designs About 2 h 30 min About 3 h

Task time by stage

StageOSS / directNVIDIA NIMNIM − OSS
RFdiffusion98.093.9−4.2
ProteinMPNN10.36.6−3.7
Thread / relax104.7108.5+3.8
MSA assembly0.40.40.0
OpenFold366.5114.3+47.8
BindCraft65.764.6−1.1
Total345.6388.2+42.6
Mean seconds per design at one design per container. The inline bars share a 0–120 s scale.

OpenFold3 shows why inference and deployment need separate measurements. Warm, the NIM folds in 12.05 seconds and the direct container in 10.56. Add the server startup around those folds and the same task takes 114.3 seconds against 66.5. Time outside the logged fold accounts for nearly all of the difference.

It was also the only stage whose logs separated startup from model work on both sides, so the NIM’s wins at RFdiffusion and ProteinMPNN are full-task wins rather than evidence about inference.

Two clocks are in play: summed container time counts work inside the tasks, while elapsed time includes queueing and instance launch and lets tasks overlap. The cost column is modeled from queue rates, not billed.

Where OpenFold3 task time went

  • Logged fold
  • Remaining task time
OSS / direct66.5 s10.56 s folding
NIM 1.5.0114.3 s12.05 s folding
Mean time per design at one design per container. The remaining task time includes startup and any other work outside the logged fold.

Quality: similar summaries, different designs#

Both pipelines delivered 150 designs with no unresolved failures, and their summary metrics look alike: complex pLDDT averaged 82.20 for OSS and 82.55 for NIM. The molecules are not the same ones. Only half of the paired binder structures were within 2 Å of each other, and while both arms had 26 designs above the 10 Å backbone-recovery failure threshold, only 14 of those were the same designs.

The primary BindCraft score favored OSS by 3.87 points (95% CI 0.97 to 6.76), against a within-arm standard deviation of roughly 24. On the 150 paired designs that difference is significant (p = 0.009, paired t-test). A 20,000-draw permutation test agrees. The average is not the number to act on, though. At an ipTM cutoff of 0.5, a common threshold since this run applied no filter of its own, 39 of 150 OSS designs pass against 44 in the NIM arm, but only 21 designs pass in both. Of the top 20 by BindCraft score, 11 are the same designs; ranked by ipTM, 9. The two arms agree on about half of what you would carry forward while their averages stay close, so the container moves the shortlist more than it moves the summary. Similar summary metrics do not establish quality equivalence. While RFdiffusion reproduces the generative step between arms, the ProteinMPNN divergence prevents attributing downstream differences to OpenFold3 alone. These are computational assessments, not measurements of binding success.

Which designs cleared the ipTM cutoff?

OSS only18
Both arms21
NIM only23
At ipTM ≥ 0.5, the OSS arm passed 39 designs and NIM passed 44. The overlap counts paired design IDs, whose sequences differed between arms.

The container version moves the designs as well. Replaying the same 150 inputs through OpenFold3 NIM 1.6.0 returned no prediction identical to 1.5.0’s. On the binder chain the two versions agree within 2 Å on 89 of 150 designs, against 75 of 150 between the two pipelines; across the whole complex only 46 of 150 agree. Rank the designs by ipTM and only 13 of the top 20 are the same under both versions, so a shortlist drawn from these scores depends on which container produced them.

Cost: what the compute model leaves out#

Compute for the benchmark day came to $67.46 at list prices. Network traffic cost twice that.

The biggest charge is NAT gateway data processing. Every NIM server downloads its weights before it answers its first request, nothing cached them between tasks, and 600 tasks did that over a path that bypassed the VPC endpoints already in place for ECR and S3. A shared weight cache is where that bill gets cut. It would not touch the next line, which is mostly container images landing on fresh instances.

Where the $212.43 benchmark-day spend went

NAT data processing$101.97
EC2 compute$67.46
Cross-AZ transfer$35.76
Everything else$7.24
NAT data processing and cross-AZ transfer made up about 65% of the day’s list-price total, including verification runs.
View traffic and cost table
Benchmark day, at list prices Traffic Cost
Compute, EC2 — $67.46
NAT gateway data processing 2,266 GB $101.97
Cross-AZ transfer 3,576 GB $35.76
Everything else — $7.24
Total $212.43

These are day-level totals at list prices before credits, including verification runs, and transfer was not attributed per arm. The weight-cache saving is modeled, not re-measured.

The per-design figures in the tables above are modeled from container time and total $41.86 across both arms; the rest of the $67.46 is instance boot, image pulls, idle capacity and those verification runs.

Batching#

One startup, fifteen designs: a sixfold gain#

Batching delivered the largest measured speedup in this benchmark. At 15 designs per container, RFdiffusion was 5.9× faster and OpenFold3 was 6.0× faster per design than the original NIM deployment—with server startup included.

Comparison of per-design NIM tasks with batched tasks that reuse the RFdiffusion and OpenFold3 servers across 15 requests.
Figure 2. Per-design and batched NIM execution in the PD-L1 binder-design workflow. Nextflow submits tasks to AWS Batch for execution on Amazon EC2. In the per-design configuration, each server handles one request before shutting down. In the batched configuration, RFdiffusion and OpenFold3 each start one server and process 15 designs sequentially. ProteinMPNN uses one server per design in both configurations. Structure preparation and BindCraft scoring run on CPUs.

The advantage came from keeping the accelerated model working. In the original setup, every task started a NIM server, sent one request and shut it down. Batching lets that server handle more than one design before exiting, spreading the same startup cost across the batch (Figure 2).

NIM stage 1 design/container 15 designs/container Speedup
RFdiffusion 93.9 s/design 15.96 s/design 5.9×
OpenFold3 114.3 s/design 18.97 s/design 6.0×

How server reuse changed time per design

RFdiffusion

1 per server93.87 s
15 per server15.96 s

OpenFold3

1 per server114.27 s
15 per server18.97 s
Observed NIM stage times include server startup. Each batched stage ran two tasks of 15 sequential requests.

These were measurements inside the Nextflow pipeline: two tasks of 15 designs per stage, covering seeds 0–29. A separate OpenFold3 test made the mechanism clear: one 97-second startup, followed by 15 folds at 12–13 seconds each, with no slowdown from the first fold to the fifteenth. Here, batching means sequential requests to a reused server. The NVIDIA 1.6.0 release notes describe concurrent serving with one inference process per GPU. The gain here is amortized startup, not concurrent inference, which is why the larger speedups NVIDIA reports for heavily batched workloads do not apply to a pipeline shaped like this one.

What batching changes, and what it does not#

In the pipeline model that is 37.8% less summed task time and 65.1% lower compute cost per design than one design per OSS container: 215.0 seconds and $0.044, with the other four stages unchanged. Deployment decides more than the image does. At 15 designs per server the OpenFold3 stage took 14.40 seconds per design on the open-source container and 18.97 on NIM 1.5.0. Applying the warm-fold improvement from 1.6.0 gives a modeled 10.6 seconds.

Configuration Summed task time/design, all stages Modeled compute cost/design
OSS, 1 design/container 345.6 s $0.127
NIM, 1 design/container 388.2 s $0.152
NIM, 15 designs/container (estimate) 215.0 s $0.044

The stage gains are measured. The whole-pipeline figures come from the model: ProteinMPNN stays unbatched, and the batched open-source baseline covers OpenFold3.

What a faster model actually buys#

NVIDIA released OpenFold3 NIM 1.6.0 after our implementation, and it folds 3.2 times faster: 12.05 seconds per prediction against 3.75 on the same 150 inputs, one L40S, identical harness. NVIDIA attributes this to capturing the diffusion module as a CUDA graph, which removes a fixed per-request overhead rather than a proportional one. How much of that reaches the pipeline depends on how each server is used. At one design per container, swapping it in and changing nothing else would reduce summed task time by about 2%, assuming the same startup and other stage times.

OpenFold3 stage, per design 1.5.0 baseline 1.6.0 estimate
one design per container 114.3 s 106.0 s
15 designs per container 18.9 s 10.6 s

At one design per container the upgrade is worth 7% of the OpenFold3 stage, because startup dominates it. At fifteen it is worth 44%, and the modeled stage time falls to 10.6 seconds per design, below the 14.40 seconds measured for the batched open-source container. The same release, in the same pipeline, is worth six times more under one deployment than the other. A version change also moves the science, not just the clock: replaying the same 150 inputs through 1.6.0 returned no prediction identical to 1.5.0’s, and while the target chain reproduced to a median 0.3 Å, only 46 of the 150 complexes landed within 2 Å. This upgrade changed the predictions. 1.6.0 changed three things at once — CUDA graph capture, a CUDA 13.2 and PyTorch 2.12 base image, and per-request sampler seeding — so this is a property of the version, not of any one of them.

Nextflow: what it gave us#

This improvement fit inside the existing Nextflow and AWS Batch workflow. Nextflow still scheduled tasks and handled dependencies and retries; each task simply did more work before exiting. We could reuse NIM servers without introducing an always-on GPU endpoint.

That flexibility is most of why the comparison was possible at all. Both arms are the same DSL2 workflow with different containers, so swapping a NIM for an open-source image, or one NIM version for another, is a configuration change rather than a new pipeline. Nextflow retried the eleven tasks that failed during the run without intervention, and all 300 designs completed. It overlaps stages, so folding starts on the first designs while later backbones are still being generated. And because each step is cached, with -resume and the previous task outputs still available, changing one stage reruns that stage onward instead of the whole run.

Keeping an EC2 instance warm would not achieve the same result: a fresh task still starts a fresh model server. Weight caching addresses a different expense. In the separate OpenFold3 test, preloaded weights reduced readiness time only from about 102 to 97 seconds. That figure is the server’s own startup inside a task. A machine’s first container pays a further one-off cost of roughly 100 seconds for image extraction and GPU runtime setup, which is why the same image takes about 210 seconds to answer on a freshly launched instance and 86 on its second container. Caching can reduce repeated downloads; batching spreads the remaining startup across designs.

The practical lesson: give each NIM server enough work to make its accelerated inference count. In this deployment, changing the amount of work per task unlocked the performance advantage.

Conclusions and what to learn#

Three things decided the outcome. Giving each NIM server more than one design to handle before it shut down was the largest measured gain, about sixfold per design. Matching the execution stacks made RFdiffusion reproducible across both paths, without which nothing downstream could be compared at all. And the bill was dominated not by compute but by data crossing the network, much of it model weights fetched again for every task.

Five things that matter when you put a pipeline like this together.

  • Check both containers produce the same thing before you compare them. Identical seeds, versions and weights were not enough for RFdiffusion until the execution stacks matched, and ProteinMPNN never matched at all.
  • Compare equivalent server-reuse strategies. Batch both arms the same way before comparing them, and report designs that pass the intended quality filters.
  • Report inference, task time and elapsed time separately. Pair those measurements with actual compute and transfer costs.
  • Treat weight reuse as part of the deployment. A fast model can still sit inside an expensive workflow.
  • Pin the container, not the tag. Moving from OpenFold3 NIM 1.5.0 to 1.6.0 cut folding 3.2× and changed the predicted complexes. A mutable tag can do both without anyone editing the pipeline.

Swapping an open-source container for a NIM is not a drop-in change. It moves the timings, the costs, and the designs themselves, and which way it moves them depends on how many designs share each server and which version is running. Those are deliberate choices, and they are worth measuring before committing a project to either path.

Before you switch, run both setups on a workload you actually plan to ship. If you’re weighing up NIMs for your own pipeline, get in touch with Loka. We can help you run that comparison.

References#

  1. NVIDIA. (n.d.). BioNeMo NIM overview
  2. Di Tommaso, P., et al. (2017). Nextflow enables reproducible computational workflows. Nature Biotechnology, 35(4), 316–319
  3. Amazon Web Services. (n.d.). What is AWS Batch?
  4. Herbst, R. S., et al. (2014). Predictive correlates of response to the anti-PD-L1 antibody MPDL3280A in cancer patients. Nature, 515(7528), 563–567
  5. Watson, J. L., et al. (2023). De novo design of protein structure and function with RFdiffusion. Nature, 620(7976), 1089–1100
  6. The OpenFold3 Team. (2026). OpenFold3-preview2 technical report
  7. Abramson, J., et al. (2024). Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature, 630(8016), 493–500
  8. NVIDIA. (2026, September 3). Release notes for NVIDIA NIM for OpenFold3, version 1.6.0
  9. Dauparas, J., et al. (2022). Robust deep learning-based protein sequence design using ProteinMPNN. Science, 378(6615), 49–56
  10. Bennett, N. R., et al. (2023). Improving de novo protein binder design with deep learning. Nature Communications, 14, Article 2625
  11. Pacesa, M., et al. (2025). One-shot design of functional protein binders with BindCraft. Nature, 646(8084), 483–492
  12. Amazon Web Services. (n.d.). Amazon EC2 G6e instances
  13. NVIDIA. (2026). NVIDIA NIM for RFdiffusion (Version 2.3.0) [Container image]. NVIDIA NGC Catalog
  14. NVIDIA. (2026). NVIDIA NIM for ProteinMPNN (Version 1.2.0) [Container image]. NVIDIA NGC Catalog
  15. NVIDIA. (2026). NVIDIA NIM for OpenFold3 (Version 1.5.0) [Container image]. NVIDIA NGC Catalog
  16. NVIDIA. (n.d.). Prerequisites for NVIDIA NIM for RFdiffusion, version 2.3.0
  17. NVIDIA. (2026). NVIDIA NIM for OpenFold3 (Version 1.6.0) [Container image]. NVIDIA NGC Catalog
  18. OpenFold Consortium. (2026). OpenFold3 (Version 0.5-pixi) [Container image]. Docker Hub
  19. Australian Protein Design Initiative. (n.d.). Containers: proteinmpnn_dl_binder_design, bindcraft [Container images]
  20. NVIDIA. (n.d.). BioNeMo blueprint for generative protein binder design

Tags

Topics