lfm3: add INT4, FP8 per-channel and VL notes, tests, eval and results

Sync the repo with the working directory: full NOTES.md (rounds 4-5, LFM3-VL),
VL tests and test images, quality eval, AutoRound W4A16 quantization scripts
and calibration recipe, the variant.sh MODEL/DOCKER_ENV options, and the
remaining benchmark results. Large regenerable artifacts (INT4 checkpoint,
ref_vl.pt, raw logprob dumps) stay out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-29 13:59:43 +01:00
1 parent 0412bb1f72
commit 1834792bb8
67 files changed
+119589 -9

No files matched your search

+5 -4
View File
@@ -2,14 +2,15 @@
# Start one LFM3 vLLM variant on a test port, wait until ready, record startup time + VRAM.
# tests/variant.sh NAME [--fresh] [extra vllm args...]
# Container: lfm3-var-NAME on 127.0.0.1:${PORT:-8001}; image ${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3};
# compile cache: ./.cache/NAME (--fresh wipes it; files are root-owned, so via the container).
# model dir ${MODEL:-/models/LFM3-1.7B}; compile cache: ./.cache/NAME (--fresh wipes it; files are root-owned, so via the container).
# Writes logs/variant_NAME.log (server log) and appends one line to results/variants_startup.tsv.
# Stop with: docker stop lfm3-var-NAME
# Extra docker env: DOCKER_ENV="-e K=V ...". Stop with: docker stop lfm3-var-NAME
set -euo pipefail
cd "$(dirname "$0")/.."
NAME=$1; shift
PORT=${PORT:-8001}
IMAGE=${IMAGE:-lfm3-vllm-xpu:v0.32.0-lfm3}
MODEL=${MODEL:-/models/LFM3-1.7B}
CACHE=$PWD/.cache/$NAME
if [[ "${1:-}" == "--fresh" ]]; then
shift
@@ -22,9 +23,9 @@ docker run -d --rm --name "lfm3-var-$NAME" \
--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:/model:ro \
-v "$MODEL":/model:ro \
-v "$CACHE":/root/.cache/vllm \
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 \
-e HF_HUB_OFFLINE=1 -e TRANSFORMERS_OFFLINE=1 ${DOCKER_ENV:-} \
"$IMAGE" /model --host=0.0.0.0 --port=8000 --served-model-name=lfm3-1.7b \
--gpu-memory-utilization=0.5 --dtype=bfloat16 --max-model-len=32768 \
--enable-auto-tool-choice --tool-call-parser=qwen3_coder --reasoning-parser=qwen3 \