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.