Skip to content

[Serve][LLM] Simplify _prepare_engine_config() - #53704

Merged
kouroshHakha merged 1 commit into
ray-project:masterfrom
ruisearch42:get_config
Jun 17, 2025
Merged

kouroshHakha merged 1 commit into
ray-project:masterfrom
ruisearch42:get_config

Conversation

@ruisearch42

Copy link
Copy Markdown
Contributor

Why are these changes needed?

accelerator_type can be passed as None

Related issue number

Checks

accelerator_type can be passed as None

Signed-off-by: Rui Qiao <[email protected]>
Copilot AI review requested due to automatic review settings June 10, 2025 17:05
@ruisearch42
ruisearch42 requested a review from a team as a code owner June 10, 2025 17:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR simplifies the GPU engine configuration flow by removing the conditional branch that checked accelerator_type and unifying on a single remote invocation with placement-group scheduling.

  • Deleted the if self.llm_config.accelerator_type branch and its alternate GPU task setup.
  • Always uses the placement-group scheduling strategy for GPU-enabled tasks.
  • Removed the manual num_gpus=1 fallback.
Comments suppressed due to low confidence (2)

python/ray/llm/_internal/serve/deployments/llm/vllm/vllm_engine.py:357

  • The GPU remote invocation no longer specifies a GPU resource when accelerator_type is None, which could lead to tasks running without GPU access. Consider explicitly setting num_gpus=1 or verifying that the placement group always includes GPU resources.
ref = (

python/ray/llm/_internal/serve/deployments/llm/vllm/vllm_engine.py:356

  • Add a unit test for the case where llm_config.accelerator_type is None to ensure GPU allocation still works under the new unified scheduling logic.
-            if self.llm_config.accelerator_type:

@ruisearch42 ruisearch42 added the go add ONLY when ready to merge, run all tests label Jun 10, 2025
@kouroshHakha

Copy link
Copy Markdown
Contributor

@kouroshHakha

Copy link
Copy Markdown
Contributor

@ruisearch42 remind me to merge if the release tests pass.

@ruisearch42

ruisearch42 commented Jun 17, 2025 •

Copy link
Copy Markdown
Contributor Author

@kouroshHakha release tests passed.

@kouroshHakha
kouroshHakha merged commit 0258042 into ray-project:master Jun 17, 2025
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
minerharry pushed a commit to minerharry/ray that referenced this pull request Jun 27, 2025
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants