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:
1 parent
3b85c03761
commit
0412bb1f72
8 files changed
+1782
-3
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
||||
[project]
|
||||
name = "vllm-lfm3"
|
||||
version = "0.1.0"
|
||||
description = "Out-of-tree vLLM plugin: LiquidAI LFM3 (Lfm3ForCausalLM) with width-7 short-conv kernels"
|
||||
description = "Out-of-tree vLLM plugin: LiquidAI LFM3 (Lfm3ForCausalLM, width-7 short-conv kernels) and LFM3-VL (Lfm3VlForConditionalGeneration, images)"
|
||||
requires-python = ">=3.10"
|
||||
license = { text = "Apache-2.0" }
|
||||
|
||||
|
||||
Reference in new issue
Block a user