Skip to content

Enable Dynamo blocking support and expand QAIC coverage for blocking - #1342

Open
smedhe wants to merge 4 commits into
quic:quic-enable-blocking-for-weightfreefrom
smedhe:enable_blocking_in_dynamo
Open

smedhe wants to merge 4 commits into
quic:quic-enable-blocking-for-weightfreefrom
smedhe:enable_blocking_in_dynamo

Conversation

@smedhe

@smedhe smedhe commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enable Dynamo/export compatibility for blocked attention forward paths.
  • Add fake registration and Dynamo custom op plumbing for batch-folded blocked KV scatter/gather ops.
  • Update cache utilities to use Dynamo-compatible blocked KV helpers, including GPT-OSS read-only K/V cache handling.
  • Restructure Dynamo tests into clearer basic/CB, CCL, blocking, nightly, and unit-test coverage.
  • Add coverage for blocking forward dispatch, CCL compile/generate, blocking compile/generate, and hybrid cache correctness.

Signed-off-by: smedhe <smedhe@qti.qualcomm.com>
Signed-off-by: smedhe <smedhe@qti.qualcomm.com>
…king

Signed-off-by: smedhe <smedhe@qti.qualcomm.com>
Signed-off-by: smedhe <smedhe@qti.qualcomm.com>
or mode == BlockingMode.HQKV
or mode == BlockingMode.BHQKV
) and supports_blocked_kv(past_key_value)
if mode == BlockingMode.KV_BATCH_FOLD:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smedhe batch fold is also verified? also MOE EP is verified? for Prefill only mode?
There were blocking techniques specific to prefill online softmax too, those are also verified?

kv_block_size = -(-ctx_len // num_kv_blocks)
if hasattr(module, "config"):
mask_dtype = module.config.torch_dtype
mask_dtype = module.config.dtype

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quic-rishinr will this affect the AI200 model generations?

@vbaddi
vbaddi changed the base branch from main to quic-enable-blocking-for-weightfree September 16, 2026 19:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants