Files
Pascal LinxweilerandClaude Opus 5.5 4e7a7ce903 Add LFM3-1.7B vLLM XPU plugin
Out-of-tree vLLM 0.32 plugin for LiquidAI LFM3 on Intel XPU: model,
width-7 short-conv Triton kernels, Dockerfile, reference/API/bench
tests, working notes and benchmark results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:06:44 +01:00

29 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
# Start LFM3-1.7B on vLLM (XPU) with the vllm_lfm3 plugin baked into lfm3-vllm-xpu.
# ./run_server.sh # eager mode (default, validated)
# EAGER=0 ./run_server.sh # torch.compile / XPU graphs
# PORT=8000 NAME=lfm3-serve ./run_server.sh -d # extra args go to `docker run`
set -euo pipefail
PORT=${PORT:-8000}
NAME=${NAME:-lfm3-serve}
EAGER=${EAGER:-1}
EXTRA_VLLM_ARGS=${EXTRA_VLLM_ARGS:-}
[[ "$EAGER" == "1" ]] && EAGER_FLAG=--enforce-eager || EAGER_FLAG=
exec docker run --rm --name "$NAME" "$@" \
--device /dev/dri -v /dev/dri/by-path:/dev/dri/by-path \
--ipc=host --shm-size=16g \
-p 127.0.0.1:${PORT}:8000 \
-v /models/LFM3-1.7B:/models/LFM3-1.7B:ro \
lfm3-vllm-xpu \
/models/LFM3-1.7B \
--served-model-name lfm3-1.7b \
--dtype bfloat16 \
--max-model-len 32768 \
--gpu-memory-utilization 0.5 \
$EAGER_FLAG \
--reasoning-parser qwen3 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder \
--host 0.0.0.0 --port 8000 \
$EXTRA_VLLM_ARGS