Repository navigation
fix(hub): drop deploy-form variables the worker no longer reads - #375
Merged
Merged
Conversation
The Hub deploy form still offered ten environment variables that the worker ignores: nothing in src/ reads them and they are not in the args_builder allowlist, so setting them had no effect. - Remove DEVICE, SCHEDULER_DELAY_FACTOR, SPECULATIVE_METHOD, SPECULATIVE_MODEL, NUM_SPECULATIVE_TOKENS, NGRAM_PROMPT_LOOKUP_MAX, DEFAULT_BATCH_SIZE, DEFAULT_MIN_BATCH_SIZE, DEFAULT_BATCH_SIZE_GROWTH_FACTOR and RAW_OPENAI_OUTPUT - Rename OPENAI_RESPONSE_ROLE to RESPONSE_ROLE, the name args_builder maps to --response-role - SPECULATIVE_CONFIG no longer says it overrides the per-field variables Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
lukepiette
marked this pull request as ready for review
November 14, 2026 20:42
OWCramer
approved these changes
Nov 14, 2026
Nothing reads OPENAI_RESPONSE_ROLE, so drop the field like the other dead ones. Renaming it to RESPONSE_ROLE would start passing --response-role to vLLM on every Hub deploy, which is a behavior change that belongs in its own PR. With this, the environment the form produces differs from main only by variables the worker never read. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What
The Hub deploy form (
.runpod/hub.json) still offers environment variables that the worker ignores. Someone who fills them in gets no error and no effect.I checked every
envkey inhub.jsonagainstsrc/args_builder.py(VALUE_FLAGS,PAIRED_BOOL_FLAGS,BOOL_FLAGS,ENV_ALIASES) and against everyos.getenv/os.environread insrc/and the Dockerfile. Of 61 entries, 11 are read by nothing.Changes
Removed (11):
SPECULATIVE_METHOD,SPECULATIVE_MODEL,NUM_SPECULATIVE_TOKENS,NGRAM_PROMPT_LOOKUP_MAXdocs/configuration.md: no longer assembled by the worker; useSPECULATIVE_CONFIGDEFAULT_BATCH_SIZE,DEFAULT_MIN_BATCH_SIZE,DEFAULT_BATCH_SIZE_GROWTH_FACTOR,RAW_OPENAI_OUTPUTdocs/configuration.md: client-side output batching is goneDEVICE,SCHEDULER_DELAY_FACTOR,OPENAI_RESPONSE_ROLEsrc/Reworded (1): the
SPECULATIVE_CONFIGdescription said it "overrides individual speculative env vars", which no longer exist. It now shows the JSON form.Left alone:
PYTORCH_ALLOC_CONFandVLLM_USE_DEEP_GEMM(vLLM-native variables that reach the subprocess through the environment) andBASE_PATH(its description already says it's build-time).Effect on endpoints
None, for existing or new deploys. Every removed variable was already ignored, so the environment the form produces differs from
mainonly by variables the worker never read.The first version of this PR renamed
OPENAI_RESPONSE_ROLEtoRESPONSE_ROLE(whichargs_buildermaps to--response-role). I took that out: it would start passing a flag on every Hub deploy, which is a behavior change that belongs in its own PR.Checks
hub.jsonstill parses; the 50 remaining entries are byte-identical exceptSPECULATIVE_CONFIG's description, and nothing outsideconfig.envchanged.pytestandvllm-flag-driftpass in CI.test-pr(the serverless e2e test) timed out twice on the first version of this PR, waiting for thebasic_inference_testjob on the GPT-OSS 120B endpoint. The log doesn't say why the job never returned. The same workflow was cancelled or failed on other PRs on Nov 3 and Nov 5, so it may be capacity. The run on the current commit is the one to look at: it deploys an environment functionally identical tomain.Related
runpod/docs#969 updates the public vLLM environment variables page to match the worker, and is where this was found.
🤖 Generated with Claude Code