Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion verl/workers/rollout/vllm_rollout_spmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def __init__(self, model_path: str, config: RolloutConfig, tokenizer: PreTrained
engine_kwargs = {}
if config.limit_images:
engine_kwargs["limit_mm_per_prompt"] = {"image": config.limit_images}
engine_kwargs["disable_mm_preprocessor_cache"] = True
Comment thread
hiyouga marked this conversation as resolved.


self.inference_engine = LLM(
model=model_path,
Expand All @@ -99,7 +101,6 @@ def __init__(self, model_path: str, config: RolloutConfig, tokenizer: PreTrained
disable_log_stats=config.disable_log_stats,
enforce_eager=config.enforce_eager,
disable_custom_all_reduce=True,
disable_mm_preprocessor_cache=True,
enable_chunked_prefill=config.enable_chunked_prefill,
enable_sleep_mode=True,
**engine_kwargs,
Expand Down