Initial commit
This commit is contained in:
commit
092da2c3d6
3 files changed
+122
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
: "${MODEL:?Set MODEL=/models/<your-model> (container env or -e at docker run)}"
|
||||
|
||||
ARGS=(
|
||||
--model "${MODEL}"
|
||||
--served-model-name "${SERVED_NAME}"
|
||||
--port "${PORT:-8000}"
|
||||
--tensor-parallel-size "${TENSOR_PARALLEL_SIZE:-1}"
|
||||
--max-model-len "${MAX_MODEL_LEN:-262144}"
|
||||
--max-num-seqs "${MAX_NUM_SEQS:-4}"
|
||||
--max-num-batched-tokens "${MAX_NUM_BATCHED_TOKENS:-8192}"
|
||||
--gpu-memory-utilization "${GPU_MEMORY_UTILIZATION:-0.80}"
|
||||
--kv-cache-dtype "${KV_CACHE_DTYPE:-e4m3}"
|
||||
--enable-prefix-caching
|
||||
--enable-auto-tool-choice
|
||||
--tool-call-parser "hermes"
|
||||
--async-scheduling
|
||||
--compilation-config '{"cudagraph_mode":"FULL_AND_PIECEWISE"}'
|
||||
--attention-backend "FLASH_ATTN_V100"
|
||||
)
|
||||
|
||||
# optional model-specific overrides
|
||||
[ -n "${REASONING_PARSER:-}" ] && ARGS+=(--reasoning-parser "${REASONING_PARSER}")
|
||||
[ -n "${EXTRA_ARGS:-}" ] && ARGS+=($EXTRA_ARGS)
|
||||
|
||||
exec vllm serve "${ARGS[@]}" "$@"
|
||||
Reference in new issue
Block a user