mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #583] Capture PyTorch profiling trace in HybridEPBuffer #644
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepEP#644
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepEP/pull/583
Author: @shengf-nv
Created: 2/18/2026
Status: 🔄 Open
Base:
hybrid-ep← Head:shengf/hybrid-ep-chakra📝 Commits (10+)
c2746f5first implementation for collecting ET9c13226cleanup codeb0dc913use c10::impl::GenericListbb5bc8fsupport all APIsf8480e7put new APIs into a new file43db483put new APIs into a new file8fc1510clean up head filesa09d4dbget pg idba9a0abget pg idcc98dd8add schema📊 Changes
5 files changed (+662 additions, -7 deletions)
View changed files
📝
csrc/hybrid_ep/config.cuh(+64 -0)📝
csrc/hybrid_ep/executor/executor.cuh(+20 -0)📝
csrc/hybrid_ep/pybind_hybrid_ep.cu(+26 -7)➕
csrc/hybrid_ep/pybind_hybrid_ep_utils.cuh(+381 -0)➕
tests/test_hybrid_ep_collect_et.py(+171 -0)📄 Description
Capture PyTorch profiling trace in HybridEPBuffer
To test it, run "python tests/test_hybrid_ep_collect_et.py", you can find et_[0-3].json are generated for the PyTorch chakra trace.
HybridEPBuffer::combine is recorded as the following:
{
"id": 55, "name": "combine", "ctrl_deps": 2,
"inputs": {"values": [[7168,4096,8,4,1,512,108,2112,"uint8_t",10,8,128,32,false,true,10,2,128,4,32,2,false,true],[13,16,0,109355008,2,"cuda:0"],"",[28,8,0,16384,4,"cuda:0"],[35,9,0,4096,1,"cuda:0"],[37,10,0,0,1,"cuda:0"],4096,false], "shapes": [],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[,[15256,7168],[],[4096,4],[4096,1],[4096,0],[],[]], "types": ["Tuple[Int,Int,Int,Int,Int,Int,Int,Int,String,Int,Int,Int,Int,Bool,Bool,Int,Int,Int,Int,Int,Int,Bool,Bool]","Tensor(c10::BFloat16)","None","Tensor(int)","Tensor(bool)","Tensor(bool)","Int","Bool"], "strides": [],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[,[7168,1],[],[4,1],[1,1],[1,1],[],[]]},
"outputs": {"values": 47,17,0,29360128,2,"cuda:0"],[56,0,0,0,0,"", "shapes": 4096,7168],[, "types": ["Tensor(c10::BFloat16)","Tensor(nullptr (uninitialized))"], "strides": 7168,1],[},
"attrs": [{"name": "rf_id", "type": "uint64", "value": 39},{"name": "fw_parent", "type": "uint64", "value": 0},{"name": "seq_id", "type": "int64", "value": -1},{"name": "scope", "type": "uint64", "value": 0},{"name": "tid", "type": "uint64", "value": 1},{"name": "fw_tid", "type": "uint64", "value": 0},{"name": "op_schema", "type": "string", "value": ""},{"name": "kernel_backend", "type": "string", "value": ""},{"name": "kernel_file", "type": "string", "value": ""},{"name": "tensor_range", "type": "string", "value": ""}]
},
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.