Skip to content

spacemit: fuse GDN state transfers and retain transposed MTP state - #88

Merged
alex-spacemit merged 3 commits into
spacemit-com:mtmd-backendfrom
co-seven:opt/spacemit-gdn-state
Dec 2, 2026
Merged

alex-spacemit merged 3 commits into
spacemit-com:mtmd-backendfrom
co-seven:opt/spacemit-gdn-state

Conversation

@co-seven

Copy link
Copy Markdown
Collaborator

Summary

  • Fuse GDN state transfers and retain transposed MTP state for reuse.

@github-actions github-actions Bot added the ggml label Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Please keep the original GDN state tail materialized unless we can prove that it has no consumers outside the current backend split. gdn_state_store_match() checks only the split it receives; a later split can still read a view of the tail. Keeping the allocation alive for a backend copy does not make that view an OUTPUT or populate the skipped bytes. Please either gate this on explicit scheduler export information or keep the full write on the conservative path, and validate a SpacemiT producer with a CPU consumer of the state tail.

Please also split the GET_ROWS/CPY elision from enabling the transposed TCM path for K > 1. The latter changes how the multi-snapshot path runs and writes back state. Validate each rollback slot against the existing path separately. The unrelated GGML_SPACEMIT_Q41_TRACE deletion should be left out.

@alex-spacemit
alex-spacemit merged commit 4990b9e into spacemit-com:mtmd-backend Dec 2, 2026
13 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants