Skip to content

Commit 4445624

Browse files
DNXieJack-Khuu
andauthored
Update apps/vllm/main.py
Co-authored-by: Jack-Khuu <[email protected]>
1 parent 00c7fc9 commit 4445624

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/vllm/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
async def run(cfg: DictConfig):
2424

25-
if "prompt" in cfg and cfg["prompt"] is not None:
25+
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"
2628
prompt = cfg["prompt"]
2729
else:
2830
gd = cfg.policy.get("sampling_overrides", {}).get("guided_decoding", False)

0 commit comments

Comments
 (0)