[PR #541] Improve error messages for unsupported EP rank configurations #624

Open
opened 2026-10-27 21:04:38 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/deepseek-ai/DeepEP/pull/541
Author: @yurekami
Created: 12/25/2025
Status: 🔄 Open

Base: main ← Head: improve-config-error-messages


📝 Commits (1)

  • 4229ff6 Improve error messages for unsupported EP rank configurations

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 deep_ep/buffer.py (+4 -2)

📄 Description

Summary

  • Improved error messages in get_dispatch_config and get_combine_config to show supported rank values
  • Helps users quickly identify valid configurations when they encounter an error

Changes

  • deep_ep/buffer.py - Enhanced assertion messages in both config functions

Before

AssertionError: Unsupported number of EP ranks: 12

After

AssertionError: Unsupported number of EP ranks: 12. Supported values: [2, 4, 8, 16, 24, 32, 48, 64, 96, 128, 144, 160]

Benefits

  • Reduces debugging time for users
  • Self-documenting error messages
  • No performance impact (only affects error path)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/deepseek-ai/DeepEP/pull/541 **Author:** [@yurekami](https://github.com/yurekami) **Created:** 12/25/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `improve-config-error-messages` --- ### 📝 Commits (1) - [`4229ff6`](https://github.com/deepseek-ai/DeepEP/commit/4229ff61e4536a0afefbb749692f18c40386b9d1) Improve error messages for unsupported EP rank configurations ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `deep_ep/buffer.py` (+4 -2) </details> ### 📄 Description ## Summary - Improved error messages in `get_dispatch_config` and `get_combine_config` to show supported rank values - Helps users quickly identify valid configurations when they encounter an error ## Changes - `deep_ep/buffer.py` - Enhanced assertion messages in both config functions ## Before ``` AssertionError: Unsupported number of EP ranks: 12 ``` ## After ``` AssertionError: Unsupported number of EP ranks: 12. Supported values: [2, 4, 8, 16, 24, 32, 48, 64, 96, 128, 144, 160] ``` ## Benefits - Reduces debugging time for users - Self-documenting error messages - No performance impact (only affects error path) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepEP#624
No description provided.