mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #770] Fix EP_BUFFER_DEBUG=0 enabling Python-side debug output #773
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#773
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/770
Author: @YidaWeng
Created: 10/1/2026
Status: 🔄 Open
Base:
main← Head:fix/ep-buffer-debug-parsing-718📝 Commits (1)
13b3abaFix EP_BUFFER_DEBUG=0 enabling Python-side debug output📊 Changes
2 files changed (+74 additions, -2 deletions)
View changed files
📝
deep_ep/buffers/ep.py(+2 -2)➕
tests/utils/test_ep_buffer_debug_env.py(+72 -0)📄 Description
Summary
Fixes #718.
EP_BUFFER_DEBUG=0(the documented off value) was enabling the Python-side debugprintpaths becauseos.environ.get(...)returns the string'0', which is truthy. C++get_env<int>already treated"0"as off.Change
In
deep_ep/buffers/ep.py, convert before testing at both call sites:This matches every other boolean
EP_*env flag in the package (EP_SUPPRESS_NCCL_CHECK,EP_USE_NVIDIA_TOOLS,EP_DISABLE_BARRIER_PROFILING,EP_REUSE_NCCL_COMM).Test
Host-side only (no GPU, no CUDA toolkit, no compiled
deep_ep._C):EP_BUFFER_DEBUGget_env<int>01Note on earlier PRs
#719 and #742 fixed the same bug in
deep_ep/buffers/elastic.py, which no longer exists after the V2.5 buffer split. This PR applies the equivalent change todeep_ep/buffers/ep.pyon currentmain.What I could not test
Full
EPBufferconstruction on NVIDIA hardware. The defect and fix are pure Python environment-variable parsing around twoprintguards.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.