Files
Pascal LinxweilerandClaude Opus 5.5 0412bb1f72 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>
2026-10-29 11:28:36 +01:00

7 lines
380 B
Docker

# 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
RUN pip install --no-cache-dir --no-deps --no-build-isolation /opt/vllm-lfm3 \
&& python -c "from importlib.metadata import entry_points as e; assert any(x.name == 'lfm3' for x in e(group='vllm.general_plugins'))"