@@ -423,6 +423,9 @@ class EngineArgs:
423
423
use_tqdm_on_load : bool = LoadConfig .use_tqdm_on_load
424
424
pt_load_map_location : str = LoadConfig .pt_load_map_location
425
425
426
+ enable_multimodal_encoder_data_parallel : bool = \
427
+ ParallelConfig .enable_multimodal_encoder_data_parallel
428
+
426
429
def __post_init__ (self ):
427
430
# support `EngineArgs(compilation_config={...})`
428
431
# without having to manually construct a
@@ -637,6 +640,9 @@ def add_cli_args(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
637
640
** parallel_kwargs ["worker_cls" ])
638
641
parallel_group .add_argument ("--worker-extension-cls" ,
639
642
** parallel_kwargs ["worker_extension_cls" ])
643
+ parallel_group .add_argument (
644
+ "--enable-multimodal-encoder-data-parallel" ,
645
+ ** parallel_kwargs ["enable_multimodal_encoder_data_parallel" ])
640
646
641
647
# KV cache arguments
642
648
cache_kwargs = get_kwargs (CacheConfig )
@@ -1078,6 +1084,8 @@ def create_engine_config(
1078
1084
distributed_executor_backend = self .distributed_executor_backend ,
1079
1085
worker_cls = self .worker_cls ,
1080
1086
worker_extension_cls = self .worker_extension_cls ,
1087
+ enable_multimodal_encoder_data_parallel = self .
1088
+ enable_multimodal_encoder_data_parallel ,
1081
1089
)
1082
1090
1083
1091
speculative_config = self .create_speculative_config (
0 commit comments