Skip to content

Improve error messages for unsupported EP rank configurations#541

Open
yurekami wants to merge 1 commit intodeepseek-ai:mainfrom
yurekami:improve-config-error-messages
Open

Improve error messages for unsupported EP rank configurations#541
yurekami wants to merge 1 commit intodeepseek-ai:mainfrom
yurekami:improve-config-error-messages

Conversation

@yurekami
Copy link
Copy Markdown
Contributor

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

When users specify an unsupported number of ranks, the error message
now shows the list of supported values, making it easier to find a
valid configuration.

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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