Skip to content

Hybrid SSM exclusion and multimodal adopt policy under the unified cache #124

Closed

Description

@inureyes

Context

Hybrid SSM models carry recurrent state beyond the KV cache, so restoring only blocks corrupts their output; APC already excludes them. Multimodal requests currently opt out of adopt/donate. Both behaviors must be preserved under the unified store.

Tasks

  • Keep the SSM/recurrent family carve-out excluded from block sharing and verify the unified path falls back to no-share for them. Affected model_type strings: jamba, mamba, mamba2, nemotron_h, gated_delta, kimi_linear, qwen3_next, falcon_mamba, longcat_flash, rwkv7, recurrent_gemma.
  • Decide and implement the VLM policy: either keep VLM cold-prefill, or fold mm_digest into the block-match key so image/audio prefixes can share blocks without cross-modal collisions.
  • Add regression coverage that an SSM model under the paged backend produces unchanged output.

Acceptance criteria

  • SSM/hybrid models produce output identical to the pre-epic behavior.
  • The VLM policy is documented and enforced; no incorrect cross-modal block reuse is possible.

Dependencies

Blocked by Phase 4 (unification).

Part of #116

Activity

  1. added this to the 0.2.0 milestone on May 27, 2026
  2. added
    status:backlog
    type:enhancement
    area:models
    area:core
    on May 27, 2026
  3. self-assigned this
    on Aug 31, 2026
  4. added
    status:done
    priority:high
    and removed
    status:backlog
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:corearea:modelspriority:highstatus:donetype:enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions