We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00c7fc9 commit 4445624Copy full SHA for 4445624
apps/vllm/main.py
@@ -22,7 +22,9 @@
22
23
async def run(cfg: DictConfig):
24
25
- if "prompt" in cfg and cfg["prompt"] is not None:
+ if (prompt := cfg.get("prompt")) is None:
26
+ gd = cfg.policy.get("sampling_overrides", {}).get("guided_decoding", False)
27
+ prompt = "What is 3+5?" if gd else "Tell me a joke"
28
prompt = cfg["prompt"]
29
else:
30
gd = cfg.policy.get("sampling_overrides", {}).get("guided_decoding", False)
0 commit comments