mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #742] Parse EP_BUFFER_DEBUG as an integer on the Python side #747
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#747
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/742
Author: @yurekami
Created: 8/29/2026
Status: 🔄 Open
Base:
main← Head:fix-ep-buffer-debug-env📝 Commits (1)
f8b612cParse EP_BUFFER_DEBUG as an integer on the Python side📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
deep_ep/buffers/elastic.py(+2 -2)📄 Description
Fixes #718.
The Python side tested the raw environment string for truthiness (
if os.environ.get('EP_BUFFER_DEBUG', 0):), soEP_BUFFER_DEBUG=0— the documented "off" value — enabled the debug prints at both sites indeep_ep/buffers/elastic.py, while the C++ side (get_env<int>viasscanf %d) correctly treated it as off. Both sites now parse the value as an integer first, matching the C++ semantics and the README's0/1contract.Quick check of the semantics change:
A non-numeric value now raises
ValueErrorloudly instead of silently enabling debug output; #733 tracks the C++ side's handling of that same case.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.