Skip to content

fix(hub): drop deploy-form variables the worker no longer reads - #375

Merged
velaraptor-runpod merged 2 commits into
mainfrom
fix/hub-form-removed-env-vars
Nov 16, 2026
Merged

velaraptor-runpod merged 2 commits into
mainfrom
fix/hub-form-removed-env-vars

Conversation

@lukepiette

@lukepiette lukepiette commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

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 env key in hub.json against src/args_builder.py (VALUE_FLAGS, PAIRED_BOOL_FLAGS, BOOL_FLAGS, ENV_ALIASES) and against every os.getenv / os.environ read in src/ and the Dockerfile. Of 61 entries, 11 are read by nothing.

Changes

Removed (11):

Variable Why it's dead
SPECULATIVE_METHOD, SPECULATIVE_MODEL, NUM_SPECULATIVE_TOKENS, NGRAM_PROMPT_LOOKUP_MAX docs/configuration.md: no longer assembled by the worker; use SPECULATIVE_CONFIG
DEFAULT_BATCH_SIZE, DEFAULT_MIN_BATCH_SIZE, DEFAULT_BATCH_SIZE_GROWTH_FACTOR, RAW_OPENAI_OUTPUT docs/configuration.md: client-side output batching is gone
DEVICE, SCHEDULER_DELAY_FACTOR, OPENAI_RESPONSE_ROLE Not in the allowlist and not read anywhere in src/

Reworded (1): the SPECULATIVE_CONFIG description said it "overrides individual speculative env vars", which no longer exist. It now shows the JSON form.

Left alone: PYTORCH_ALLOC_CONF and VLLM_USE_DEEP_GEMM (vLLM-native variables that reach the subprocess through the environment) and BASE_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 main only by variables the worker never read.

The first version of this PR renamed OPENAI_RESPONSE_ROLE to RESPONSE_ROLE (which args_builder maps 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.json still parses; the 50 remaining entries are byte-identical except SPECULATIVE_CONFIG's description, and nothing outside config.env changed.
  • pytest and vllm-flag-drift pass in CI.
  • test-pr (the serverless e2e test) timed out twice on the first version of this PR, waiting for the basic_inference_test job 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 to main.

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

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
lukepiette marked this pull request as ready for review November 14, 2026 20:42
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>
@velaraptor-runpod
velaraptor-runpod merged commit 31e9b59 into main Nov 16, 2026
9 of 10 checks passed
@velaraptor-runpod
velaraptor-runpod deleted the fix/hub-form-removed-env-vars branch November 16, 2026 19:40
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