Skip to content

Commit

Permalink
[Bugfix] use blockmanagerv1 for encoder-decoder (vllm-project#9084)
Browse files Browse the repository at this point in the history
Co-authored-by: Roger Wang <[email protected]>
Signed-off-by: Amit Garg <[email protected]>
  • Loading branch information
2 people authored and garg-amit committed Oct 28, 2024
1 parent 3e0b7c2 commit 22b4a66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vllm/engine/arg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,11 @@ def create_engine_config(self) -> EngineConfig:
"--enable-prefix-caching is currently not "
"supported for multimodal models and has been disabled.")
self.enable_prefix_caching = False
if model_config.is_encoder_decoder_model:
logger.warning(
"Block Manager v2 does not support encoder-decoder models"
" currently. Using Block Manager v1 as fallback.")
self.use_v2_block_manager = False

cache_config = CacheConfig(
block_size=self.block_size if self.device != "neuron" else
Expand Down

0 comments on commit 22b4a66

Please sign in to comment.