5 Commits
Author SHA1 Message Date
Pascal LinxweilerandClaude Opus 5.5 1115927570 lfm3: llama-swap now serves LFM3-VL-2B (FP8 per-channel) in place of LFM3-1.7B
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 14:30:47 +01:00
Pascal LinxweilerandClaude Opus 5.5 1834792bb8 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>
2026-10-29 13:59:43 +01:00
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
Pascal LinxweilerandClaude Opus 5.5 3b85c03761 lfm3: online FP8 (W8A16) support, graph-mode and FP8 benchmarks
- load_weights: run the strict missing-parameter check only for unquantized
  models; vLLM's loader checks quantized ones and knows the params a
  checkpoint cannot carry (online-FP8 weight_scale). BF16 output unchanged.
- tests: variant launcher, greedy and quality comparisons, BetterBench
  table + ITL 1% low recompute, Discord notify helper.
- NOTES: round 2 (eager vs default vs FULL_DECODE_ONLY, default kept) and
  round 3 (FP8 W8A16: +49% decode, +35% @8, answers unchanged); llama-swap
  snippet now FP8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 07:43:09 +01:00
Pascal LinxweilerandClaude Opus 5.5 4e7a7ce903 Add LFM3-1.7B vLLM XPU plugin
Out-of-tree vLLM 0.32 plugin for LiquidAI LFM3 on Intel XPU: model,
width-7 short-conv Triton kernels, Dockerfile, reference/API/bench
tests, working notes and benchmark results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:06:44 +01:00