Repository navigation
perf(sampler): keep vLLM's compile cache on the shared volume - #358
Merged
Merged
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
This was referenced Oct 22, 2026
hodaaaaaaaaaa
force-pushed
the
perf/vllm-shared-compile-cache
branch
from
October 22, 2026 13:30
937d1c5 to
9144cec
Compare
hodaaaaaaaaaa
marked this pull request as draft
October 22, 2026 16:25
hodaaaaaaaaaa
force-pushed
the
perf/vllm-shared-compile-cache
branch
from
October 23, 2026 00:11
9144cec to
26fa2d0
Compare
hodaaaaaaaaaa
marked this pull request as ready for review
October 23, 2026 00:13
droot
approved these changes
Oct 23, 2026
Collaborator
|
/cc @ShubyM also had this one of his sampler's PR. |
ShubyM
approved these changes
Oct 23, 2026
droot
approved these changes
Oct 23, 2026
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.
Problem
Before a sampler can serve, vLLM compiles the model, which takes about a minute (gemma-4-E2B ~80 s, Qwen3-0.6B ~55 s). vLLM can save the result and reuse it, but it saves it inside the container, so it is lost when the pod ends and every new sampler compiles again.
Change
Sampler pods on Kubernetes keep vLLM's cache (
VLLM_CACHE_ROOT) on the shared volume, at$OPEN_RL_TMP_DIR/vllm-cache. The first sampler for a given model, GPU type and engine setup compiles and saves the result; later ones load it.Results
From the latest fleet test on GKE (eight GSM8K GRPO jobs launched together: gemma-4-E2B on H100, Qwen3-0.6B on L4, LoRA and full fine-tuning), with all three sampler start-up changes (#358, #359, #360):