[Feature]async scheduling to overlap chunk IO and compute (#951)
Signed-off-by: CHEN <116010019@link.cuhk.edu.cn> Co-authored-by: Bhanu068 <voutharoja.bhanu06@gmail.com> Co-authored-by: Gao Han <gaohan19@huawei.com>
This commit is contained in:
14 files changed
+720
-250
No files matched your search
@@ -63,6 +63,7 @@ class OmniEngineArgs(EngineArgs):
|
||||
If None, default processing is used.
|
||||
stage_connector_spec: Extra configuration for stage connector
|
||||
async_chunk: If set to True, perform async chunk
|
||||
worker_type: Model Type, e.g., "ar" or "generation"
|
||||
"""
|
||||
|
||||
stage_id: int = 0
|
||||
@@ -74,6 +75,7 @@ class OmniEngineArgs(EngineArgs):
|
||||
stage_connector_spec: dict[str, Any] = field(default_factory=dict)
|
||||
async_chunk: bool = False
|
||||
omni_kv_config: dict | None = None
|
||||
worker_type: str | None = None
|
||||
|
||||
def draw_hf_text_config(self, config_dict: dict) -> Qwen3OmniMoeTextConfig:
|
||||
# transformers' get_text_config method is used to get the text config from thinker_config.
|
||||
@@ -129,6 +131,7 @@ class OmniEngineArgs(EngineArgs):
|
||||
config_dict["async_chunk"] = self.async_chunk
|
||||
config_dict["model_stage"] = self.model_stage
|
||||
config_dict["model_arch"] = self.model_arch
|
||||
config_dict["worker_type"] = self.worker_type
|
||||
config_dict["engine_output_type"] = self.engine_output_type
|
||||
# Build stage_connector_config from stage_connector_spec
|
||||
stage_connector_config = {
|
||||
@@ -165,6 +168,7 @@ class AsyncOmniEngineArgs(AsyncEngineArgs):
|
||||
Used to route outputs to appropriate processors (e.g., "image",
|
||||
"audio", "latents"). If None, output type is inferred.
|
||||
stage_connector_spec: Extra configuration for stage connector
|
||||
worker_type: Model Type, e.g., "ar" or "generation"
|
||||
"""
|
||||
|
||||
stage_id: int = 0
|
||||
@@ -176,6 +180,7 @@ class AsyncOmniEngineArgs(AsyncEngineArgs):
|
||||
stage_connector_spec: dict[str, Any] = field(default_factory=dict)
|
||||
async_chunk: bool = False
|
||||
omni_kv_config: dict | None = None
|
||||
worker_type: str | None = None
|
||||
|
||||
def draw_hf_text_config(self, config_dict: dict) -> Qwen3OmniMoeTextConfig:
|
||||
# transformers' get_text_config method is used to get the text config from thinker_config.
|
||||
@@ -221,6 +226,7 @@ class AsyncOmniEngineArgs(AsyncEngineArgs):
|
||||
config_dict["async_chunk"] = self.async_chunk
|
||||
config_dict["model_stage"] = self.model_stage
|
||||
config_dict["model_arch"] = self.model_arch
|
||||
config_dict["worker_type"] = self.worker_type
|
||||
config_dict["engine_output_type"] = self.engine_output_type
|
||||
stage_connector_config = {
|
||||
"name": self.stage_connector_spec.get("name", "SharedMemoryConnector"),
|
||||
|
||||
Reference in new issue
Block a user