Commit Graph
7 Commits
Author SHA1 Message Date
Pascal LinxweilerandClaude Opus 5.5 975d72e6bb lfm3: round 6 full bench run, llama-swap configs (standalone + Qwen co-resident, tested, not applied)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:52:13 +01:00
Pascal LinxweilerandClaude Opus 5.5 38b0e9a345 lfm3: round 6 - GPTQ INT4 baked (INT4 lm_head + INT8 embedding)
- quant/gptq_baked/: llm-compressor GPTQ W4A16 body (sequential pipeline, verified
  equal to the plain forward), B65-style GPTQ INT4 lm_head bake with a small
  damp/act-order/clipping grid, INT8 per-row embedding, assembly into one
  compressed-tensors checkpoint (1.155 GB vs 3.46 GB BF16)
- plugin: pass quant_config to the token embedding so vLLM's compressed-tensors
  INT8 embedding path is used; BF16/FP8 greedy output unchanged
- tests: INT8 embedding kernel check, quant method dump, head timing, round-6 driver
- NOTES: round 6 results (PPL +8.1%, decode 217 t/s = FP8 pc +14%, head bake
  gives no measurable decode gain on this stack), llama-swap snippet (not applied)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 14:48:48 +01:00
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