[Enhancement] Update GPUARWorker and GPUGenerationWorker to enforce v1 model runner

- Added a warning in GPUARWorker and GPUGenerationWorker to indicate that the v2 model runner does not include omni hooks, forcing the use of the v1 model runner.
- Updated import statements in gpu_ar_model_runner.py and gpu_generation_model_runner.py to include necessary functions from parallel_state.
- Removed unused imports from both model runner files to streamline the code.

Signed-off-by: [Your Name] <your.email@example.com>

Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
This commit is contained in:
tzhouam committed 2026-01-28 15:43:27 +08:00
1 parent 31d127edcd
commit 2c2d06d920
4 files changed
+14 -6

No files matched your search

@@ -90,6 +90,11 @@ class GPUGenerationWorker(GPUWorker):
num_ubatches = 2 if self.vllm_config.parallel_config.enable_dbo else 1
init_workspace_manager(self.device, num_ubatches)
if self.use_v2_model_runner:
# OMNI: v2 model runner does not yet include omni hooks.
logger.warning("OMNI GPUGenerationWorker forces v1 model runner for omni hooks.")
self.use_v2_model_runner = False
self.model_runner = GPUGenerationModelRunner(self.vllm_config, self.device)
if self.rank == 0: