-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ca2afe
commit 34ca6bb
Showing
12 changed files
with
505 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from enum import Enum, auto | ||
from typing import Optional | ||
|
||
import msgspec | ||
|
||
from vllm.v1.core.scheduler import SchedulerOutput | ||
|
||
|
||
#TODO: Move this file | ||
class ExecutorMsgType(Enum): | ||
TOIL = auto() | ||
TERMINATE = auto() | ||
|
||
|
||
class ExecutorMsg(msgspec.Struct, | ||
array_like=True, | ||
omit_defaults=True, | ||
gc=False): | ||
"""A directive from the core process to its worker processes. | ||
Wraps SchedulerOutput with a message type to distinguish between | ||
regular work assignments and termination orders.""" | ||
message_type: ExecutorMsgType | ||
payload: Optional[SchedulerOutput] |
Oops, something went wrong.