Skip to content

Fix DeepEP cannot be used together with code that needs GIL such as Mooncake transfer engine#142

Merged
LyricZhao merged 2 commits intodeepseek-ai:mainfrom
fzyzcjy:patch-3
May 8, 2025
Merged

Fix DeepEP cannot be used together with code that needs GIL such as Mooncake transfer engine#142
LyricZhao merged 2 commits intodeepseek-ai:mainfrom
fzyzcjy:patch-3

Conversation

@fzyzcjy
Copy link
Contributor

@fzyzcjy fzyzcjy commented Apr 29, 2025

When using DeepEP with Mooncake transfer engine, DeepEP's dispatch will hold the GIL for a long time, and thus other libraries such as Mooncake transfer engine, which uses Python code in another thread, cannot obtain the GIL and thus get stuck. Therefore, in this PR, I make DeepEP release GIL to fix this.

@alpha-baby
Copy link
Contributor

in sglang code:
image

If it is asynchronous mode, it is reasonable to say that this function should not hold CIL for a long time.

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.

3 participants