﻿# ONNX CUDA plugin 0.4 capacity-aware partitioning: a declined GQA node is policy evidence

CUDA plugin v0.4.0 declines GQA under capacity-aware partitioning because accounting is incomplete; this is narrower than general operator unavailability.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-engine-ort-plugin-gqa-capacity-partition-exclusion/
Language: en

CUDA Plugin EP v0.4.0 documents a specific interaction with ONNX Runtime 1.32 capacity-aware partitioning. When that mode is configured, GroupQueryAttention nodes are declined for the plugin because route-aware workspace accounting cannot pass through the plugin path yet. Ordinary sessions without the mode are explicitly outside this restriction.

## A policy refusal differs from missing arithmetic

The release ties refusal to a configured resource-accounting mode, not to every attempt to execute GQA. A node can be computationally supported while lacking the accounting contract required for this admission policy. A support report should name both facts. Describing the node simply as unsupported hides why changing partition settings alters placement, and can make an intentional conservative decision appear to be an arbitrary fallback regression.

## Inspect where the declined node goes

The core leaves these nodes for other providers and logs a warning. That does not guarantee that another provider will execute them on the desired GPU or at the desired speed. Inspect the final partition and actual execution profile. A session that initializes successfully can still have materially different transfer boundaries, because one attention node moving elsewhere may require inputs or outputs to cross provider memory domains.

## Compare policy modes with the same model

A proposed diagnostic uses the identical model and core-plugin pair with capacity-aware settings disabled and enabled. Record warnings, assignments, numerical outputs and transfer activity separately. This isolates the documented policy interaction from an unrelated exporter change. Do not interpret a faster permissive configuration as evidence that its peak memory is safely bounded; dropping an admission constraint changes the question the runtime is answering.

## Preserve the conditional wording

The limitation is versioned and configuration-specific. It should not become a claim that ONNX Runtime cannot run GQA through CUDA, or that all plugin sessions use CPU attention. The release explains the accounting gap and its conservative response. This article identifies that interaction and a placement check, without asserting a new benchmark, a universal fallback destination or a memory guarantee for sessions outside the documented mode.

## Sources

- [ONNX Runtime plugin-ep-cuda/v0.4.0 release](https://github.com/microsoft/onnxruntime/releases/tag/plugin-ep-cuda/v0.4.0)
- [ONNX Runtime pull request #33016](https://github.com/microsoft/onnxruntime/pull/33016)

## Related reading

- [ONNX Runtime provider order: graph partition priority is not request failover](/journal/fg2-onnxruntime-provider-priority-subgraph-partition/)
- [ONNX Runtime offline optimization: a saved optimized graph inherits a target contract](/journal/fg2-onnxruntime-offline-graph-target-compatibility/)
