[NewFeture]add ep rollout model init and update/clear ep buffer #4039
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.
1.支持 EP Rollout 模型初始化。
2.告别 Hard Code:num_nvl_bytes 和 num_rdma_bytes 由模型参数动态计算,单机 8 卡下每卡节省 5G+ 显存。
3.引入 DeepEPBufferManager:实现DeeepEP buffer的动态申请与释放,按需分配,进一步节约显存。
4.重构部分ep.py,抽象出 DeepEPBuffer 类,代码结构更清晰、简洁(未来还需进一步优化)。