Repository navigation
Conversation
The default of `fork` is known to be problematic. Python itself is changing the default to `spawn`. The new default is expected to be in place for Python 3.14. Python references for the change to the default: * python/cpython#84559 * python/cpython#100618 We also have several places where this option had to be set to `spawn` to make tests work. The AMD code even checks and overrides the value if it's not set to `spawn`. Simplify things for everyone and just default to `spawn`, but leave the option in place just in case, at least for now. Signed-off-by: Russell Bryant <rbryant@redhat.com>
|
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
|
for reference since i was just looking around ... some other places I've seen advise against fork breaking things (multithreaded things in particular)
|
|
In some private chat, it was pointed out that this will break user code using the LLM class if their code is not protected by if name == “main” so this isn’t a good idea for now at least |
…tent. (vllm-project#8576) ### What this PR does / why we need it? To improve the quality of certain docs by revising specific content. ### Does this PR introduce _any_ user-facing change? None ### How was this patch tested? - vLLM version: v0.19.0 - vLLM main: vllm-project@6f786f2 --------- Signed-off-by: Lucky1 <144669645+verylucky01@users.noreply.github.com>
The default of
forkis known to be problematic. Python itself is changing the default tospawn. The new default is expected to be in place for Python 3.14.Python references for the change to the default:
'fork'is broken: change to `'forkserver' || 'spawn'python/cpython#84559We also have several places where this option had to be set to
spawnto make tests work. The AMD code even checks and overrides the value if it's not set tospawn.Simplify things for everyone and just default to
spawn, but leave the option in place just in case, at least for now.