Skip to content

fix map_to_kv_tensors/unmap_from_kv_tensors in MLA non-contiguous layout#357

Open
lianghao208 wants to merge 1 commit into
ovg-project:mainfrom
lianghao208:fix-mla
Open

fix map_to_kv_tensors/unmap_from_kv_tensors in MLA non-contiguous layout#357
lianghao208 wants to merge 1 commit into
ovg-project:mainfrom
lianghao208:fix-mla

Conversation

@lianghao208

Copy link
Copy Markdown
Contributor

In MLA models with a non-contiguous layout, map_to_kv_tensors and unmap_from_kv_tensors perform redundant mapping for both K and V individually. Under the MLA architecture, this double-mapping approach results in a 50% waste of memory.

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