Views
No views yet
LiquidAI/LFM2.5-2.6B,
produced with Intel AutoRound and packed for
GPTQ/Marlin kernels so it runs on vLLM without any extra flags.plavno/LFM2.5-2.6B-AutoRound-W4A16,
but it carries a real quality cost — see Choosing between the two.| Method | AutoRound (signed-gradient rounding optimization) |
| Weight precision | 8-bit integer, symmetric |
| Activations | fp16 (not quantized) |
| Group size | 128 |
| Packing format | auto_round:auto_gptq |
| Quantized modules | 166 of 167 — all model.layers linear projections |
| Kept in higher precision | lm_head |
| Calibration | conversational multilingual text, 256 samples × 512 tokens, balanced 16×16 across all 16 supported languages |
| Weights on disk | ~2.9 GB (vs ~5.4 GB bf16) |
plavno/LFM2.5-2.6B-AutoRound-W4A16
were calibrated on the same language-balanced set — the only difference between the
two repos is the weight bit width.config.json, so no --quantization flag is needed.1pip install "vllm>=0.23"
2
3vllm serve plavno/LFM2.5-2.6B-AutoRound-W8A16 \
4 --max-model-len 4096 \
5 --gpu-memory-utilization 0.90--enable-prefix-caching when many requests share a long common prefix
(system prompt, few-shot block, shared context) — only the new suffix is then
prefilled on each request:1vllm serve plavno/LFM2.5-2.6B-AutoRound-W8A16 \
2 --enable-prefix-caching \
3 --max-model-len 40961curl http://localhost:8000/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "plavno/LFM2.5-2.6B-AutoRound-W8A16",
5 "messages": [{"role": "user", "content": "Say hi in one word."}],
6 "max_tokens": 16
7 }'1from openai import OpenAI
2
3client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
4resp = client.chat.completions.create(
5 model="plavno/LFM2.5-2.6B-AutoRound-W8A16",
6 messages=[{"role": "user", "content": "List three primary colors."}],
7 max_tokens=64,
8)
9print(resp.choices[0].message.content)1from vllm import LLM, SamplingParams
2
3llm = LLM(model="plavno/LFM2.5-2.6B-AutoRound-W8A16", max_model_len=4096)
4out = llm.generate(
5 ["Explain what a REST API is in two sentences."],
6 SamplingParams(temperature=0, max_tokens=128),
7)
8print(out[0].outputs[0].text)| W8A16 (this repo) | W4A16 | |
|---|---|---|
| Weights on disk | ~2.9 GB | ~1.7 GB |
| Quality vs bf16 | near-lossless | noticeable degradation, uneven across languages |
| Best for | accuracy-sensitive work, multilingual input, reading token logprobs | tight VRAM budgets, maximum decode throughput |
lm_head stay in higher
precision; this is expected and correct for this architecture.<think>) in the generation prompt. If
you need a bare single-token answer (classification, routing), drive
/v1/completions with your own prompt and close the block yourself
(<think></think>) rather than relying on /v1/chat/completions.