lfm3: add LFM3-VL-2B (image input) to the plugin

Lfm3VlForConditionalGeneration, registered through the same
vllm.general_plugins entry point. Reuses Lfm3ForCausalLM as the language
backbone; adds the LFM3-VL vision encoder (gated depthwise 3x3 conv +
GQA attention with axial 2D RoPE, MMEncoderAttention / FLASH_ATTN on XPU),
the 2x2-merge projector and the vLLM multimodal processor (Qwen2-VL-style
pixel_values + image_grid_thw, <|image|> expansion). Images only; video
inputs are rejected.

Liquid's VL config and processor files are vendored (Apache-2.0) so the
checkpoint loads without --trust-remote-code.

Verified against Transformers fp32: exact image-token counts and identical
64-token greedy output on 4 images + text-only. Text model unchanged
(FP8 greedy output bit-identical).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-29 11:28:36 +01:00
1 parent 3b85c03761
commit 0412bb1f72
8 files changed
+1782 -3

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
# vLLM 0.32.0 XPU + LFM3 plugin
# vLLM 0.32.0 XPU + LFM3 / LFM3-VL plugin
FROM vllm/vllm-openai-xpu:latest
COPY pyproject.toml /opt/vllm-lfm3/pyproject.toml
COPY vllm_lfm3 /opt/vllm-lfm3/vllm_lfm3