frank-default-small: enable prefix caching (opt-in for hybrid models; big TTFT win for pi's repeated system prompt)
This commit is contained in:
1 parent
8c42771877
commit
b854ec78ad
2 files changed
+15
No files matched your search
@@ -35,6 +35,7 @@ fi
|
||||
: "${NUM_SPEC_TOKENS:=5}"
|
||||
: "${ENABLE_AUTO_TOOL_CHOICE:=1}"
|
||||
: "${TOOL_CALL_PARSER:=qwen3_xml}"
|
||||
: "${ENABLE_PREFIX_CACHING:=1}"
|
||||
# The Avesed tokenizer_config.json has no chat_template; vLLM would use its
|
||||
# built-in template which does not render the model's XML tool format. Use
|
||||
# the repo's chat_template.jinja (ships the <tool_call> instructions).
|
||||
@@ -51,6 +52,11 @@ if [[ "${ENABLE_AUTO_TOOL_CHOICE}" == "1" ]]; then
|
||||
TOOL_ARGS+=(--tool-call-parser "${TOOL_CALL_PARSER}")
|
||||
fi
|
||||
|
||||
PC_ARGS=()
|
||||
if [[ "${ENABLE_PREFIX_CACHING}" == "1" ]]; then
|
||||
PC_ARGS+=(--enable-prefix-caching)
|
||||
fi
|
||||
|
||||
exec "$VLLM_BIN" serve "$MODEL" \
|
||||
--host "$BIND_ADDR" \
|
||||
--port "$LISTEN_PORT" \
|
||||
@@ -64,4 +70,5 @@ exec "$VLLM_BIN" serve "$MODEL" \
|
||||
--reasoning-parser qwen3 \
|
||||
--trust-remote-code \
|
||||
--chat-template "$CHAT_TEMPLATE" \
|
||||
"${PC_ARGS[@]}" \
|
||||
"${TOOL_ARGS[@]}"
|
||||
Reference in new issue
Block a user