feat: group speculator vLLM settings in SpeculatorVLLMConfig #145
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.76) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.76 · 516 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.374
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.076
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #145"
general
weight: 0.35
hrathina
Summary
Add a public API for overriding the managed vLLM sidecar's speculative configuration.
Users set
SpeculatorConfig.vllm_speculative_configto aVLLMSpeculativeConfig.SpeculatorConfigholds the speculator's training and data-generation settings; itsnested
vllm_speculative_configfield configures the managed vLLM sidecar. The SDKmerges those values into the extraction defaults and sends one complete JSON object
through the RuntimePatch environment variable
SPECULATOR_VLLM_SPECULATIVE_CONFIG.Existing root-level sidecar settings remain unchanged.
Changes
vllm_resources,vllm_gpu_memory_utilization,vllm_endpoint, andvllm_readiness_timeout_minutesas root-level trainer parameters with their existingbehavior and defaults.
VLLMSpeculativeConfigand expose it asSpeculatorConfig.vllm_speculative_config. This field is specifically for managedvLLM speculative-decoding overrides, separate from training/data settings. It has
named fields
enforce_eager,max_model_len, andmax_num_seqs, plus actualkwargsfor additional speculative-config attributes. Values retain their JSON types; the SDK
does not validate vLLM attribute names or version compatibility. Values must be
JSON-serializable. Invalid field types produce an error explaining the expected wrapper
and showing a
VLLMSpeculativeConfig(...)example.num_speculative_tokensfixed at1for hidden-state extraction; user overridesfor that field are not applied.
complete object as
SPECULATOR_VLLM_SPECULATIVE_CONFIG. The SDK does not emit anengine-argv array, standalone engine flags, or replace the runtime's sidecar command.
--speculative-configargument, falling back to its legacy extraction JSON when thevariable is absent. This API does not configure general
vllm serveengine flags.value; export and document the public configuration class.
Example
parallel_draftingillustrates rawkwargspassthrough; acceptance and effect dependon the installed vLLM version and runtime. The SDK sends the complete merged speculative
JSON through the TrainJob RuntimePatch. The selected runtime must consume
SPECULATOR_VLLM_SPECULATIVE_CONFIGas--speculative-config; the SDK does not alter thelauncher or translate these values into engine flags.
Testing
kubeflow/trainer/rhai/speculator_test.pycovers passthrough of booleans, numbers,lists, nested objects, and nulls, plus serialization of the merged extraction defaults
and overrides into the RuntimePatch environment.
and the end-to-end Distributed Workloads tests passed.
eagle3-online-vllmconfig-args-17completed. The TrainJob and podcontained the complete
SPECULATOR_VLLM_SPECULATIVE_CONFIG;/proc/1/cmdlineshowedexactly one
--speculative-config, and vLLM logged the parsed values and configuredauxiliary layers. The node generated responses, preprocessed 10 samples, and updated
the draft configs.
overrides alter target-engine behavior: EngineCore reported
max_seq_len=40960andenforce_eager=False, and warned that Model Runner V2 does not support paralleldrafting for
extract_hidden_states.Checklist