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>
17 lines
467 B
TOML
17 lines
467 B
TOML
[build-system]
|
|
requires = ["setuptools>=64"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "vllm-lfm3"
|
|
version = "0.1.0"
|
|
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" }
|
|
|
|
[project.entry-points."vllm.general_plugins"]
|
|
lfm3 = "vllm_lfm3:register"
|
|
|
|
[tool.setuptools]
|
|
packages = ["vllm_lfm3"]
|