lfm3: round 6 full bench run, llama-swap configs (standalone + Qwen co-resident, tested, not applied)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-30 15:52:13 +01:00
1 parent 38b0e9a345
commit 975d72e6bb
8 files changed
+790 -35

No files matched your search

+24 -32
View File
@@ -1124,35 +1124,27 @@ all SIG (unpaired across files). results/round6/compare_fp8pc_vs_target.txt.
decode gain** on this stack, and +0.8% PPL. Keep it only if the memory matters.
- Default stays **FP8 per-channel**. If an INT4 is wanted, this checkpoint is the better INT4 than round 4.
llama-swap snippet (NOT applied):
```yaml
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B GPTQ INT4 baked (INT4 head, INT8 embed) ----------
vllm/lfm3-1.7b-int4-baked:
useModelName: lfm3-1.7b-int4-baked
aliases:
- lfm3-1.7b-int4-baked
cmdStop: docker stop -t 30 vllm-lfm3-int4-baked
cmd: >
docker run --rm --name vllm-lfm3-int4-baked
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4-baked:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-baked
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-1.7b-int4-baked
--gpu-memory-utilization=0.5
--dtype=bfloat16
--max-model-len=32768
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
```
(quantization is read from config.json; cache dir to be created.)
bench-standard **full** run (same declared values, `--full`): `/srv/llm/bench/results/261030_pascal_lfm3-1.7b_vllm_1x-arc-pro-b65`.
- Decode 217.2 t/s, TTFT p50 64 ms, greedy identical 3/3, no warnings.
- Concurrency 209 / 392 / 695 / 1,119 t/s at 1/2/4/8.
- Prefill 14,155 / 15,743 / 15,170 / 14,050 t/s at 2k/8k/16k/32k (64k skipped: context 32k).
- 261 GB/s = 49% of 533 GB/s; 0.66 J/tok decode, 0.114 J/tok @8.
### llama-swap configs (NOT applied; `deploy/`)
- `deploy/llama-swap.lfm3-int4-baked.yaml`: the live config plus `vllm/lfm3-1.7b-int4-baked` (own alias; `lfm3-1.7b`
stays on the VL entry). The entry alone: `deploy/lfm3_int4_baked.entry.yaml`.
- `deploy/llama-swap.qwen-lfm3-coresident.yaml`: the above plus a co-resident pair in group `qwen-lfm3`
(`swap: false, exclusive: true`): `vllm/swift-qwen3.8-27b-co` (= the 256k entry, own container `vllm-k8v4-co`,
`--kv-cache-memory` 8.5 GiB, util 0.85) and `vllm/lfm3-1.7b-int4-co` (`--kv-cache-memory` 0.75 GiB, util 0.1, 32k, 4 seqs).
- Measured (32,656 MiB card):
- Qwen fixed part 18.7 GiB; after its first long prefill +1.1 GiB workspace, once (105k and 245k requests leave the same).
- LFM3 fixed part 2.4 GiB, no growth under load.
- Qwen first had 9.0 GiB KV: peak 32,331 MiB, only ~0.3 GiB left → cut to 8.5 GiB (287,281 tokens = 1.10x a 256k request;
the solo 256k entry has 1.02x).
- Worst case, tested through a second llama-swap on :8090 with the pair: LFM3 loaded first, then Qwen. Qwen 244,718-token
needle request in parallel with LFM3 31.8k needle + 3 essays.
- Both needles found, peak 31,974 MiB (682 MiB free), no errors.
- LFM3 36,614 KV tokens.
- Both pin the KV size, so the start order does not matter. The utilization values only pass vLLM's free-memory check at start.
- Cache dirs `/srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4-{baked,co}` do not exist yet (no write access as
this user); docker creates them as root on first start.
+99
View File
@@ -0,0 +1,99 @@
# ---------- co-resident pair: Swift Qwen 27B + LFM3-1.7B INT4 baked on one B65 (group "qwen-lfm3") ----------
# Measured on the B65 (32,656 MiB): Qwen fixed ~18.7 GiB (+1.1 GiB prefill workspace after the first long request)
# + KV 8.5 GiB, LFM3 fixed ~2.4 GiB + KV 0.75 GiB; ~0.8 GiB left free.
# Qwen gets the memory: ~1.09x a 256k request (the solo 256k entry: 1.02x); LFM3 32k (~37k KV tokens).
# Both pin --kv-cache-memory, so start order does not matter; the low/0.85 utilization only passes vLLM's
# free-memory check at start.
vllm/swift-qwen3.8-27b-co:
useModelName: swift-qwen3.8-27b-co
aliases:
- swift-qwen3.8-27b-co
cmdStop: docker stop -t 30 vllm-k8v4-co
cmd: >
docker run --rm --name vllm-k8v4-co
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27b-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b-co
--kv-cache-memory=9126805504
--gpu-memory-utilization=0.85
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
vllm/lfm3-1.7b-int4-co:
useModelName: lfm3-1.7b-int4-co
aliases:
- lfm3-1.7b-int4-co
cmdStop: docker stop -t 30 vllm-lfm3-int4-co
cmd: >
docker run --rm --name vllm-lfm3-int4-co
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4-baked:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-baked
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-1.7b-int4-co
--gpu-memory-utilization=0.1
--kv-cache-memory=805306368
--max-num-seqs=4
--dtype=bfloat16
--max-model-len=32768
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
+10
View File
@@ -0,0 +1,10 @@
groups:
# Qwen + LFM3 can be loaded at the same time (each starts on its first request). Models outside a group
# swap as before; loading one of them unloads this group and vice versa (exclusive).
qwen-lfm3:
swap: false
exclusive: true
members:
- vllm/swift-qwen3.8-27b-co
- vllm/lfm3-1.7b-int4-co
+29
View File
@@ -0,0 +1,29 @@
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B GPTQ INT4 baked (INT4 body + INT4 lm_head + INT8 embed, round 6) ----------
vllm/lfm3-1.7b-int4-baked:
useModelName: lfm3-1.7b-int4-baked
aliases:
- lfm3-1.7b-int4-baked
cmdStop: docker stop -t 30 vllm-lfm3-int4-baked
cmd: >
docker run --rm --name vllm-lfm3-int4-baked
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4-baked:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-baked
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-1.7b-int4-baked
--gpu-memory-utilization=0.5
--dtype=bfloat16
--max-model-len=32768
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
+255
View File
@@ -0,0 +1,255 @@
logLevel: info
healthCheckTimeout: 1800
models:
vllm/swift-qwen3.8-27b:
useModelName: swift-qwen3.8-27b
aliases:
- swift-qwen3.8-27b
cmdStop: docker stop -t 30 vllm-k8v4-tp1
cmd: >
docker run --rm --name vllm-k8v4-tp1
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27b-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b
--gpu-memory-utilization=0.95
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
# ---------- same as above, KV cache pinned to ~1x 256k (7.9 GiB) instead of 0.95 util ----------
vllm/swift-qwen3.8-27b-256k:
useModelName: swift-qwen3.8-27b-256k
aliases:
- swift-qwen3.8-27b-256k
cmdStop: docker stop -t 30 vllm-k8v4-tp1
cmd: >
docker run --rm --name vllm-k8v4-tp1
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27b-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b-256k
--kv-cache-memory=8482560410
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
# ---------- vLLM (k8v4) – uncensored ----------
vllm/swift-qwen3.8-27b-uncensored:
useModelName: swift-qwen3.8-27b-uncensored
aliases:
- swift-qwen3.8-27b-uncensored
cmdStop: docker stop -t 30 vllm-k8v4-uncensored
cmd: >
docker run --rm --name vllm-k8v4-uncensored
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27B-Uncensored-Int4-baked:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b-uncensored
--gpu-memory-utilization=0.95
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-VL-2B (images + text; W8A16 online FP8 per-channel on the LM, vision BF16) ----------
vllm/lfm3-vl-2b:
useModelName: lfm3-vl-2b
aliases:
- lfm3-vl-2b
- lfm3-1.7b
cmdStop: docker stop -t 30 vllm-lfm3-vl
cmd: >
docker run --rm --name vllm-lfm3-vl
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /mnt/model-library/LiquidAI/LFM3-VL-2B:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-vl:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-vl
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-vl-2b
--gpu-memory-utilization=0.5
--dtype=bfloat16
--quantization=fp8_per_channel
--max-model-len=32768
'--limit-mm-per-prompt={"image":4}'
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B GPTQ INT4 baked (INT4 body + INT4 lm_head + INT8 embed, round 6) ----------
vllm/lfm3-1.7b-int4-baked:
useModelName: lfm3-1.7b-int4-baked
aliases:
- lfm3-1.7b-int4-baked
cmdStop: docker stop -t 30 vllm-lfm3-int4-baked
cmd: >
docker run --rm --name vllm-lfm3-int4-baked
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4-baked:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-baked
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-1.7b-int4-baked
--gpu-memory-utilization=0.5
--dtype=bfloat16
--max-model-len=32768
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
@@ -0,0 +1,364 @@
logLevel: info
healthCheckTimeout: 1800
models:
vllm/swift-qwen3.8-27b:
useModelName: swift-qwen3.8-27b
aliases:
- swift-qwen3.8-27b
cmdStop: docker stop -t 30 vllm-k8v4-tp1
cmd: >
docker run --rm --name vllm-k8v4-tp1
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27b-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b
--gpu-memory-utilization=0.95
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
# ---------- same as above, KV cache pinned to ~1x 256k (7.9 GiB) instead of 0.95 util ----------
vllm/swift-qwen3.8-27b-256k:
useModelName: swift-qwen3.8-27b-256k
aliases:
- swift-qwen3.8-27b-256k
cmdStop: docker stop -t 30 vllm-k8v4-tp1
cmd: >
docker run --rm --name vllm-k8v4-tp1
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27b-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b-256k
--kv-cache-memory=8482560410
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
# ---------- vLLM (k8v4) – uncensored ----------
vllm/swift-qwen3.8-27b-uncensored:
useModelName: swift-qwen3.8-27b-uncensored
aliases:
- swift-qwen3.8-27b-uncensored
cmdStop: docker stop -t 30 vllm-k8v4-uncensored
cmd: >
docker run --rm --name vllm-k8v4-uncensored
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27B-Uncensored-Int4-baked:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b-uncensored
--gpu-memory-utilization=0.95
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-VL-2B (images + text; W8A16 online FP8 per-channel on the LM, vision BF16) ----------
vllm/lfm3-vl-2b:
useModelName: lfm3-vl-2b
aliases:
- lfm3-vl-2b
- lfm3-1.7b
cmdStop: docker stop -t 30 vllm-lfm3-vl
cmd: >
docker run --rm --name vllm-lfm3-vl
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /mnt/model-library/LiquidAI/LFM3-VL-2B:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-vl:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-vl
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-vl-2b
--gpu-memory-utilization=0.5
--dtype=bfloat16
--quantization=fp8_per_channel
--max-model-len=32768
'--limit-mm-per-prompt={"image":4}'
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
# ---------- vLLM 0.32 + lfm3 plugin – LFM3-1.7B GPTQ INT4 baked (INT4 body + INT4 lm_head + INT8 embed, round 6) ----------
vllm/lfm3-1.7b-int4-baked:
useModelName: lfm3-1.7b-int4-baked
aliases:
- lfm3-1.7b-int4-baked
cmdStop: docker stop -t 30 vllm-lfm3-int4-baked
cmd: >
docker run --rm --name vllm-lfm3-int4-baked
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4-baked:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-baked
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-1.7b-int4-baked
--gpu-memory-utilization=0.5
--dtype=bfloat16
--max-model-len=32768
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
# ---------- co-resident pair: Swift Qwen 27B + LFM3-1.7B INT4 baked on one B65 (group "qwen-lfm3") ----------
# Measured on the B65 (32,656 MiB): Qwen fixed ~18.7 GiB (+1.1 GiB prefill workspace after the first long request)
# + KV 8.5 GiB, LFM3 fixed ~2.4 GiB + KV 0.75 GiB; ~0.8 GiB left free.
# Qwen gets the memory: ~1.09x a 256k request (the solo 256k entry: 1.02x); LFM3 32k (~37k KV tokens).
# Both pin --kv-cache-memory, so start order does not matter; the low/0.85 utilization only passes vLLM's
# free-memory check at start.
vllm/swift-qwen3.8-27b-co:
useModelName: swift-qwen3.8-27b-co
aliases:
- swift-qwen3.8-27b-co
cmdStop: docker stop -t 30 vllm-k8v4-co
cmd: >
docker run --rm --name vllm-k8v4-co
--device /dev/dri --group-add 991
--ipc=host --shm-size=8g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/Swift-1.5-Qwen3.8-27b-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/templates/chat_template_effort.jinja:/model/chat_template.jinja:ro
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/.cache/vllm-k8v4-tp1:/root/.cache/vllm
-v /srv/llm/runtimes/vllm-xpu/k8v4-v030/k8v4_v030:/opt/k8v4/k8v4_v030:ro
-e NEOReadDebugKeys=1
-e ForceZeDeviceCanAccessPerReturnValue=0
-e PYTHONPATH=/opt/k8v4
-e XE2_KV_LIB=/opt/k8v4/libxe2_kv.so
-e K8V4_SDPA_LIB=/opt/k8v4/libk8v4_sdpa.so
-e K8V4_PREFILL=onednn
-e K8V4_PREFILL_GATHER=triton
-e K8V4_SDPA_ASYNC=0
-e K8V4_PREFILL_GEMM=w4a8
-e VLLM_CACHE_ROOT=/root/.cache/vllm/w4a8-tp1-v1
-e XE2_KV_S2_NSG=32
-e XE2_KV_S2_NSG_DRAFT=32
-e XE2_KV_S2_NSG_VERIFY=8
-e XE2_KV_S2_TWO_PASS=0
-e B70_MTP_BF16_DRAFT=1
-e B70_WORKER_AFFINITY=1
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
-e PYTORCH_ALLOC_CONF=expandable_segments:True
-e VLLM_TARGET_DEVICE=xpu
-e VLLM_XPU_ENABLE_XPU_GRAPH=1
-e ZE_AFFINITY_MASK=0
-e ZE_FLAT_DEVICE_HIERARCHY=COMPOSITE
vllm-openai-xpu:v0.30.0-k8v4
/model
--host=0.0.0.0
--port=8000
--served-model-name=swift-qwen3.8-27b-co
--kv-cache-memory=9126805504
--gpu-memory-utilization=0.85
--dtype=float16
--max-model-len=262144
--kv-cache-dtype=int8_k_int4_v
--tensor-parallel-size=1
--max-num-seqs=4
--max-num-batched-tokens=4224
--enable-auto-tool-choice
--tool-call-parser=qwen3_xml
--reasoning-parser=qwen3
--no-enable-prefix-caching
--mamba-cache-mode=none
'--limit-mm-per-prompt={"image":4,"video":0}'
'--mm-processor-kwargs={"max_pixels":1048576}'
--mm-processor-cache-gb=0.125
--trust-remote-code
'--speculative-config={"method":"mtp","num_speculative_tokens":6}'
'--compilation-config={"cudagraph_mode":"FULL_DECODE_ONLY","cudagraph_capture_sizes":[7,14,21,28]}'
vllm/lfm3-1.7b-int4-co:
useModelName: lfm3-1.7b-int4-co
aliases:
- lfm3-1.7b-int4-co
cmdStop: docker stop -t 30 vllm-lfm3-int4-co
cmd: >
docker run --rm --name vllm-lfm3-int4-co
--device /dev/dri --group-add 991
--ipc=host --shm-size=16g
-p 127.0.0.1:${PORT}:8000
-v /dev/dri:/dev/dri
-v /dev/dri/by-path:/dev/dri/by-path:ro
-v /models/LFM3-1.7B-GPTQ-Int4-baked-v1-embed-int8:/model:ro
-v /srv/llm/runtimes/vllm-xpu/lfm3-v032/.cache/vllm-lfm3-int4-baked:/root/.cache/vllm
-e HF_HUB_OFFLINE=1
-e TRANSFORMERS_OFFLINE=1
lfm3-vllm-xpu:v0.32.0-lfm3-baked
/model
--host=0.0.0.0
--port=8000
--served-model-name=lfm3-1.7b-int4-co
--gpu-memory-utilization=0.1
--kv-cache-memory=805306368
--max-num-seqs=4
--dtype=bfloat16
--max-model-len=32768
--enable-auto-tool-choice
--tool-call-parser=qwen3_coder
--reasoning-parser=qwen3
groups:
# Qwen + LFM3 can be loaded at the same time (each starts on its first request). Models outside a group
# swap as before; loading one of them unloads this group and vice versa (exclusive).
qwen-lfm3:
swap: false
exclusive: true
members:
- vllm/swift-qwen3.8-27b-co
- vllm/lfm3-1.7b-int4-co
+8 -2
View File
@@ -109,8 +109,14 @@ BetterBench 0.6.1 `--quick`, bench-standard config, direct on the server:
| GPTQ INT4 body only | 217.6 | 134.2 | 62 ms | 1,134.9 | 14,098 |
| **this checkpoint** | **217.5** | 134.4 | 61 ms | **1,156.6** | 14,284 |
bench-standard 0.5.0 quick run (`bench.sh`): decode 214.7 t/s, TTFT p50 65 ms, concurrency 207 / 380 / 689 /
1,152 t/s at 1 / 2 / 4 / 8, prefill 13.9k–15.7k t/s up to 32k, 0.67 J per decoded token at 135 W.
bench-standard 0.5.0 (`bench.sh`, unmodified), greedy output identical 3/3:
| run | decode t/s | TTFT p50 | concurrency 1 / 2 / 4 / 8 t/s | prefill 2k / 8k / 16k / 32k t/s | J per decoded token |
|---|--:|--:|---|---|--:|
| full | 217.2 | 64 ms | 209 / 392 / 695 / 1,119 | 14,155 / 15,743 / 15,170 / 14,050 | 0.66 |
| quick | 214.7 | 65 ms | 207 / 380 / 689 / 1,152 | 13,929 / 15,652 / 15,314 / 14,224 | 0.67 |
Against FP8 per-channel (round 5), decode is +8% to +16% in all 8 BetterBench categories.
Note: the smaller head and embedding did **not** make single-stream decode faster on this setup. In an
interleaved TPOT run, this checkpoint, an INT4-head + BF16-embedding build and the tied-BF16-head body all
+1 -1
View File
@@ -1,6 +1,6 @@
7cfca7feac2f84eee6e57ff0eddf2b15b249c45ddae63a9c5cc63b9644ec9443 BAKE.json
4d28ca14dedc0b3d0fcc2b3339f0e79931faa33874f3d24f522183a8fc70068c LICENSE
ce6342d62f108ee2e4f351e3d63d258f51e44cc060ec967f6de03bb835df45e7 README.md
283784188c5d628f3683745328da8c530ec95ca11144ea94347f9029cb108b7c README.md
f45005c50cd2a97329722bf3a2dee9f16c04cdf825a589b280fb7e99e6827818 chat_template.jinja
328970d3f82e46758d63b52e13ab1459783e54ca1329c61bb19ae16c86d6c9ef config.json
176cced35657aedfea7d7002221360582d1c05fcaca882c21508bc3a73b282e5 configuration_lfm3.py