Skip to content

log prototype#85

Draft
tjtanaa wants to merge 7 commits into
mainfrom
previewdsv4
Draft

log prototype#85
tjtanaa wants to merge 7 commits into
mainfrom
previewdsv4

Conversation

@tjtanaa

@tjtanaa tjtanaa commented Jun 17, 2026

Copy link
Copy Markdown
Member

Purpose

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

tjtanaa added 7 commits June 17, 2026 01:59
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
… clean up sparse attention; removert most of the modeling file changes

Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
  Add a comprehensive handoff note for the current DSV4 ROCm ATOM integration
  checkpoint, including runnable launch settings, accuracy/perf baselines,
  known invalid fast paths, active top-k/CSA-translate reuse experiment,
  KV/workspace context, validation gates, profiler flags, and next priorities.

  This captures the current state before handing work to another agent.

Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
  Add a comprehensive handoff note for the current DSV4 ROCm ATOM integration
  checkpoint, including runnable launch settings, accuracy/perf baselines,
  known invalid fast paths, active top-k/CSA-translate reuse experiment,
  KV/workspace context, validation gates, profiler flags, and next priorities.

  This captures the current state before handing work to another agent.

Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
…anged

Add HCA compress skip optimization to the ATOM decode index path.
When decode_hca_total hasn't changed between decode steps (which is
~127 out of 128 steps), the HCA compress section is still valid and
doesn't need to be rewritten. The SWA prefix is still updated by
calling write_v4_paged_decode_indices with hca_block_table=None
(WRITE_HCA_HEAD=False in the Triton kernel).

This optimization runs on ~25% of decode steps (when decode_csa_total
changed but decode_hca_total hasn't) and saves ~0.05ms per affected
decode step by avoiding the redundant HCA compress section write.

Changes:

* model_state.py: Add hca_compress_total field to track validity
* rocm.py: Add HCA compress skip path in ensure_decode_indices
  between the "common_valid + hca_head" and full write paths

Combined with VLLM_ROCM_DSV4_USE_AITER_HC_HEAD=1, this achieves
973.82 tok/s at C32 (1024/1024, 320 prompts) — beating the V1 native
baseline of 970.59 tok/s while preserving GSM8K accuracy at 0.9462.

Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
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.

1 participant