You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add native GQA attention support for ORT GenAI compatibility
Add a new GQAAttention component that emits com.microsoft::GroupQueryAttention
directly, and a gqa=True mode on CausalLMTask that produces models compatible
with the onnxruntime-genai runtime.
Key changes:
- New GQAAttention component with GQAContext NamedTuple
- DecoderLayer accepts pluggable attention_class parameter
- CausalLMTask(gqa=True) builds graphs with:
- No position_ids input (RoPE fused inside GQA via do_rotary=1)
- seqlens_k/total_seq_len computed from attention_mask
- cos_cache/sin_cache as graph initializers
- com.microsoft opset import
- CLI --gqa flag and build() module_kwargs parameter
- 10 new GQA-specific tests in build_graph_test.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: G Ramalingam <grama@microsoft.com>
0 commit comments