Skip to content

Model not created when using ray + vllm with MP+DP #644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clefourrier
Copy link
Member

No description provided.

@@ -189,7 +189,6 @@ def _create_auto_model(self, config: VLLMModelConfig, env_config: EnvConfig) ->
if int(config.data_parallel_size) > 1:
self.model_args["distributed_executor_backend"] = "ray"
self._batch_size = "auto"
return None
Copy link
Member Author

Choose a reason for hiding this comment

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

We return before creating the model :/

@clefourrier clefourrier requested a review from NathanHB March 26, 2025 13:48
@HuggingFaceDocBuilderDev
Copy link
Collaborator

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

NathanHB
NathanHB previously approved these changes Apr 2, 2025
@NathanHB NathanHB dismissed their stale review April 2, 2025 09:16

Error

Copy link
Member

@NathanHB NathanHB left a comment

Choose a reason for hiding this comment

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

This is normal, when using Ray the models are initialized during the generation, see here

@clefourrier
Copy link
Member Author

Hm interesting - it failed later on as the model was empty, I'll relaunch and share the trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants