Fix pickle error with remote code models in vLLM Ray worker process#53815
Merged
kouroshHakha merged 6 commits intoray-project:masterfrom Jun 17, 2025
Merged
Conversation
Contributor
kouroshHakha
left a comment
There was a problem hiding this comment.
just one nit, let's also rerun the release tests on this PR before merging.
Signed-off-by: Seiji Eicher <seiji@anyscale.com>
Signed-off-by: Seiji Eicher <seiji@anyscale.com>
Signed-off-by: Seiji Eicher <seiji@anyscale.com>
Signed-off-by: Seiji Eicher <seiji@anyscale.com>
Signed-off-by: Seiji Eicher <seiji@anyscale.com>
fbc1dc5 to
b0c508e
Compare
Signed-off-by: Seiji Eicher <seiji@anyscale.com>
b0c508e to
c7126cf
Compare
kouroshHakha
approved these changes
Jun 17, 2025
elliot-barn
pushed a commit
that referenced
this pull request
Jun 18, 2025
…er process (#53815) Signed-off-by: Seiji Eicher <seiji@anyscale.com> Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
minerharry
pushed a commit
to minerharry/ray
that referenced
this pull request
Jun 27, 2025
…er process (ray-project#53815) Signed-off-by: Seiji Eicher <seiji@anyscale.com>
elliot-barn
pushed a commit
that referenced
this pull request
Jul 2, 2025
…er process (#53815) Signed-off-by: Seiji Eicher <seiji@anyscale.com> Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
Since #53621, vLLM engines running DeepSeek-V2-Lite and related models that fetch remote code fail with pickle errors, since the engine only registers custom configs to serialize by value (and avoid the pickle error) if
transformers_modulescan be imported.We relied on a call to
AutoProcessor.from_pretrainedto initializetransformers_modules, so thatmaybe_register_config_serialize_by_valuewould execute correctly when AsyncLLM starts. This was removed in #53621. Now we can useinit_hf_modulesso to accomplish the same result more directly.We could also fix this upstream with vllm-project/vllm#19510.
Traceback:
Related issue number
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.