【Hackathon 10th Spring No.53】RFC: Head-wise SWA Recycle Design [cfx]#1362
Open
jonny-cloudforge wants to merge 1 commit into
Open
【Hackathon 10th Spring No.53】RFC: Head-wise SWA Recycle Design [cfx]#1362jonny-cloudforge wants to merge 1 commit into
jonny-cloudforge wants to merge 1 commit into
Conversation
|
|
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
RFC
PR changes
Others
Description
提交 Hackathon 10th Spring 个人挑战赛 No.53 的设计文档:FastDeploy KV Cache 离散管理及 AppendAttention 性能优化。
任务原文:【Hackathon 10th】任务合集 §No.53
设计内容拆为两个 PR
CacheManagerV1支持 head-wise 离散block_idx+ 及时 SWA 回收AppendAttention离散布局 fused kernel(消除 dual-pass)block_idx,TTFT 与 TBT 均 +5%与已有 PR 的关系
RFC 结构对齐 community 模板
8 章节齐全:概述 / 飞桨现状 / 业内方案调研(vLLM v1 + SGLang + TRT-LLM 三方对比)/ 对比分析 / 设计思路与实现方案(伪代码)/ 测试和验收 / 影响面 / 排期。
调研:设计 ≈ 30:60,关键模块用伪代码呈现(CacheManager free list、ResourceManagerV1 recycle 接口、AppendAttention fused kernel)。
实现进度
实现 PR 在 CloudForge-Solutions/FastDeploy 上推进,PR1 与 PR2 将在本 RFC 落地后陆续提交至 PaddlePaddle/FastDeploy。
作者声明
本 RFC 与后续 PR1/PR2 的设计与实现均为提交者独立完成。#6702 仅作为社区参考背景列出,本设计在 V1 路径上重写,不携带未授权的
Co-authored-by署名。未来若有其他贡献者实际参与代码,将按提交粒度补充署名。cc @luotao1 @CSWYF3634076