Skip to content

feat: add ReplaySSM state modes for GDN and KDA - #1690

Open
sufubao wants to merge 1 commit into
ModelTC:mainfrom
sufubao:support/replayssm-clean
Open

sufubao wants to merge 1 commit into
ModelTC:mainfrom
sufubao:support/replayssm-clean

Conversation

@sufubao

@sufubao sufubao commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add ReplaySSM state modes for GDN and KDA with explicit native, compact, and replay state strategies. The change separates Conv/SSM state ownership, commit/acceptance handling, PD transfer regions, replay kernels, autotune bounds, and state-mode validation while preserving existing non-replay modes.

This branch is a clean single commit based directly on upstream/main; it intentionally excludes the merge history from the superseded ReplaySSM branch.

Validation

  • python -m compileall -q lightllm unit_tests test
  • git diff --check
  • pre-commit run --files <all changed files> (Black and Flake8)
  • pytest -q unit_tests/common/test_linear_state_contract.py unit_tests/server/test_ssm_state_mode.py (115 passed)

The Triton kernel suite requires a compatible CUDA/Triton runtime and is not represented as a passing result here; GPU execution remains an upstream CI/H100 validation item.

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