Skip to content

Capture PyTorch profiling trace in HybridEPBuffer#583

Draft
shengf-nv wants to merge 19 commits intodeepseek-ai:hybrid-epfrom
shengf-nv:shengf/hybrid-ep-chakra
Draft

Capture PyTorch profiling trace in HybridEPBuffer#583
shengf-nv wants to merge 19 commits intodeepseek-ai:hybrid-epfrom
shengf-nv:shengf/hybrid-ep-chakra

Conversation

@shengf-nv
Copy link
Copy Markdown

@shengf-nv shengf-nv commented Feb 18, 2026

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": ""}]
},

@shengf-nv shengf-nv marked this pull request as draft February 18, 2026 00:57
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