mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #611] Hybrid EP:Support configurable IB Traffic Class via HYBRID_EP_IB_TC env var #662
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#662
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/611
Author: @kzlxd
Created: 4/24/2026
Status: 🔄 Open
Base:
hybrid-ep← Head:hybrid_ep_add_env_for_tc📝 Commits (1)
1073016Support configurable IB Traffic Class via HYBRID_EP_IB_TC env var📊 Changes
2 files changed (+20 additions, -2 deletions)
View changed files
📝
csrc/hybrid_ep/buffer/internode_doca.cu(+19 -1)📝
csrc/hybrid_ep/buffer/internode_doca.cuh(+1 -1)📄 Description
Summary
This PR adds support for configuring the IB Traffic Class (TC) used in RDMA QP setup via an environment variable, replacing the previously hardcoded value.
HYBRID_EP_IB_TCfor runtime configurationDEF_IB_TC = 0get_ib_tc_value()with range validation (0–255)This change was motivated by observed performance anomalies when using
TC=0(e.g., ~46 GB/s in 2-node dispatch scenarios), which revealed that the TC value was hardcoded.Changes
IB TC Configuration
csrc/hybrid_ep/buffer/internode_doca.cuhDEF_IB_TCget_ib_tc_value()csrc/hybrid_ep/buffer/internode_doca.cuImplement
get_ib_tc_value():HYBRID_EP_IB_TCfrom environment[0, 255]0if invalid (with warning)Replace all usages of
DEF_IB_TCwithget_ib_tc_value()Add missing includes:
#include <torch/extension.h>
#include
Usage
[0, 255]will:0Performance Impact
TC=0): ~46 GB/s (2-node dispatch)TC=162): significantly improved throughputNote: exact gains depend on network configuration and topology.
Notes
TC=0)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.