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>
11 KiB
LFM3-1.7B: BF16 vs FP8 vs INT4 (W4A16) — quality comparison
Generated from eval/results_{bf16,fp8,int4}.json (eval/eval_quality.py). All variants served by vLLM 0.32 + our plugin on the Arc Pro B65, compile + FULL_AND_PIECEWISE graphs, greedy (temperature 0, repetition_penalty 1.0), max_tokens 3000, thinking on (server default). INT4 = ./quant/LFM3-1.7B-W4A16-autoround (AutoRound bits 4 / group 128 / sym, oneDNN int4_gemm_w4a16).
Perplexity
wikitext-2-raw-v1 test, first 20 contiguous 2048-token chunks (LFM3 tokenizer), 40,940 scored tokens, identical tokens for every variant (vLLM prompt_logprobs).
| variant | PPL | vs BF16 |
|---|---|---|
| BF16 | 18.518 | — |
| FP8 W8A16 | 19.207 | +3.7% |
| INT4 W4A16 (AutoRound) | 19.886 | +7.4% |
Greedy outputs side by side
Final answers only (reasoning is in the JSON files). Token counts include the thinking phase.
factual
BF16 — finish stop, 473 tokens
The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne, and as a purpose‑built city in the Australian Capital Territory, to provide a neutral seat of government away from the larger, more established capitals.
FP8 W8A16 — finish stop, 472 tokens
The capital of Australia is Canberra. It was chosen as a purpose‑built city located between Sydney and Melbourne to avoid being dominated by either metropolis and to serve as a neutral political center, a decision reached after a long debate and compromise in the early 20th century.
INT4 W4A16 (AutoRound) — finish stop, 321 tokens
The capital of Australia is Canberra. It was chosen as a compromise between Sydney and Melbourne to serve as a neutral, purpose-built city that would not favor either of the existing major urban centers.
german
BF16 — finish stop, 601 tokens
Betreff: Terminverschiebung – Donnerstag um 14:00 Uhr
Sehr geehrte Frau Weber,
ich möchte Sie informieren, dass das Meeting am Dienstag auf Donnerstag um 14 Uhr verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an.
Mit freundlichen Grüßen
[Dein Name]
FP8 W8A16 — finish stop, 613 tokens
Betreff: Verschiebung des Termins am Dienstag
Sehr geehrte Frau Weber,
ich möchte Sie informieren, dass unser Meeting am Dienstag auf Donnerstag um 14:00 Uhr verschoben werden muss. Bitte passen Sie Ihren Kalender entsprechend an.
Ich hoffe, das passt Ihnen gut. Lassen Sie mich wissen, falls Sie weitere Anpassungen benötigen.
Mit freundlichen Grüßen
[Dein Name]
INT4 W4A16 (AutoRound) — finish stop, 553 tokens
Betreff: Verschiebung des Termins
Sehr geehrte Frau Weber,
ich möchte Sie informieren, dass das Meeting, das ursprünglich am Dienstag geplant war, auf Donnerstag um 14 Uhr verschoben werden muss.
Bitte passen Sie Ihren Kalender entsprechend an.
Mit freundlichen Grüßen
[Dein Name]
math
BF16 — finish stop, 632 tokens
The cost per pen is ( \frac{2.40}{3} = 0.80 ) EUR.
Cost for 7 pens: ( 7 \times 0.80 = 5.60 ) EUR.
Cost for 3 notebooks: ( 3 \times 4.50 = 13.50 ) EUR.
Total cost: ( 5.60 + 13.50 = 19.10 ) EUR.
Change from 50 EUR: ( 50 - 19.10 = 30.90 ) EUR.[ \boxed{30.90} ]
FP8 W8A16 — finish stop, 747 tokens
The price of pens is 3 for 2.40 EUR, so the cost per pen is ( \frac{2.40}{3} = 0.80 ) EUR.
For 7 pens: ( 7 \times 0.80 = 5.60 ) EUR.
Notebooks cost 4.50 EUR each, so for 3 notebooks: ( 3 \times 4.50 = 13.50 ) EUR.
Total cost: ( 5.60 + 13.50 = 19.10 ) EUR.
Anna pays with a 50 EUR note, so change is ( 50.00 - 19.10 = 30.90 ) EUR.[ \boxed{30.90} ]
INT4 W4A16 (AutoRound) — finish stop, 986 tokens
The price per pen is ( \frac{2.40}{3} = 0.8 ) EUR.
Cost for 7 pens: ( 7 \times 0.8 = 5.6 ) EUR.
Cost for 3 notebooks: ( 3 \times 4.50 = 13.5 ) EUR.
Total cost: ( 5.6 + 13.5 = 19.1 ) EUR.
Change from a 50 EUR note: ( 50 - 19.1 = 30.9 ) EUR.Thus, Anna gets 30.9 EUR in change.
\boxed{30.9}
tool_weather
BF16 — finish tool_calls, 106 tokens
tool call(s):
[{"name": "get_weather", "arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"}]
FP8 W8A16 — finish tool_calls, 106 tokens
tool call(s):
[{"name": "get_weather", "arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"}]
INT4 W4A16 (AutoRound) — finish tool_calls, 128 tokens
tool call(s):
[{"name": "get_weather", "arguments": "{\"city\": \"Hamburg\", \"unit\": \"celsius\"}"}]
tool_flights
BF16 — finish tool_calls, 147 tokens
tool call(s):
[{"name": "search_flights", "arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"}]
FP8 W8A16 — finish tool_calls, 147 tokens
tool call(s):
[{"name": "search_flights", "arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"}]
INT4 W4A16 (AutoRound) — finish tool_calls, 155 tokens
tool call(s):
[{"name": "search_flights", "arguments": "{\"origin\": \"Hamburg\", \"destination\": \"Lisbon\", \"date\": \"2026-11-14\", \"adults\": 2}"}]
json
BF16 — finish stop, 240 tokens
{ "name": "Maria Schmidt", "age": 34, "city": "Leipzig", "skills": ["Python", "SQL", "Tableau"] }
FP8 W8A16 — finish stop, 253 tokens
{ "name": "Maria Schmidt", "age": 34, "city": "Leipzig", "skills": [ "Python", "SQL", "Tableau" ] }
INT4 W4A16 (AutoRound) — finish stop, 302 tokens
{ "name": "Maria Schmidt", "age": 34, "city": "Leipzig", "skills": ["Python", "SQL", "Tableau"] }
summary_2k
BF16 — finish stop, 1467 tokens
Little Gidding, the fourth poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after a year’s delay caused by World War II air raids and Eliot’s declining health; its title refers to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem employs fire—both natural and Pentecostal—to stress purification and purgation, and through a ghost that gathers Dante, Yeats, Swift and others it explores the unity of past, present and future, arguing that humanity’s salvation requires recognizing this unity and that suffering is a necessary prelude to rebirth. Critics have praised its mystical, belief‑laden language and its link to religious renewal and the Holy Spirit, while also noting its heavy emphasis on pain and the choice between redemption and destruction, and Eliot himself saw it as a work that seeks to work on the soul as well as society.
FP8 W8A16 — finish stop, 974 tokens
“Little Gidding,” the fourth and final poem of T. S. Eliot’s Four Quartets, was first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title alludes to a 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem employs fire and Pentecostal imagery to stress purification and purgation, juxtaposing the Battle of Britain, death, and a ghost of poets (originally “Ser Brunetto”) who urges the narrator to confront past mistakes, suffer, and be redeemed by the Holy Spirit’s flame, thereby achieving unity of past, present, and future and salvation. Eliot completed five drafts, finishing the work in September 1942, and it was intended to conclude the series by linking themes of renewal, suffering, and spiritual rebirth; critics react with mixed emotions, praising its mystical, belief‑laden language while also noting its painful emphasis on disease, war, and the need for fire‑based redemption.
INT4 W4A16 (AutoRound) — finish stop, 1467 tokens
Little Gidding is the fourth and final poem of T. S. Eliot’s Four Quartets, first published in October 1942 after being delayed by World War II air raids and Eliot’s declining health; its title refers to a small 17th‑century Anglican community in Huntingdonshire that was scattered during the English Civil War. The poem uses the combined image of fire and Pentecostal fire to stress purification, arguing that humanity’s flawed understanding of life and its turning away from God leads to war, but this can be overcome by recognizing the lessons of the past, as illustrated by a ghost—an amalgam of poets such as Dante, Yeats and Swift—who speaks to the narrator and urges a unity of past, present and future as a path to salvation. Critics have praised its mystical, belief‑laden language and its fourth section as Eliot’s greatest achievement, yet they also noted its heavy emphasis on pain and the choice between divine fire and the bombing of London, reflecting Eliot’s hope that belief and words can redeem the soul.
long_context
BF16 — finish stop, 124 tokens
BLUE HERON 47
FP8 W8A16 — finish stop, 124 tokens
BLUE HERON 47
INT4 W4A16 (AutoRound) — finish stop, 211 tokens
BLUE HERON 47
Verdict (honest)
| prompt | BF16 | FP8 | INT4 | notes |
|---|---|---|---|---|
| factual (Canberra) | ✔ | ✔ | ✔ | all name Canberra + compromise between Sydney/Melbourne |
| German e-mail | ✔ | ✔ | ✔ | all correct, polite German; INT4 phrasing as good as BF16 |
| math (change) | 30.90 ✔ | 30.90 ✔ | 30.9 ✔ | INT4 thinks 56% longer (986 vs 632 tokens) to get there |
| tool call: weather | ✔ | ✔ | ✔ | identical call; parsed by qwen3_coder into tool_calls (finish tool_calls) |
| tool call: flights | ✔ | ✔ | ✔ | identical call incl. integer adults: 2 |
| JSON extraction | ✔ | ✔ | ✔ | valid JSON, identical values |
| summary of ~2k-token article | ✔* | ✔* | ✔* | all say "published October 1942": the article says both "first published in September 1942" and "published in the October New English Weekly" — shared ambiguity, not an INT4 error. Content quality equivalent. |
| long context (needle before 700 tokens) | ✔ | ✔ | ✔ | sliding-window + full-attention layers still retrieve the needle |
Where INT4 degrades:
- Perplexity +7.4% over BF16 (19.89 vs 18.52), about twice FP8's +3.7%. Measurable, moderate for 4-bit on a 1.7B model (small models usually lose more).
- Greedy path stability: INT4 flips tokens that BF16 was fairly confident about (top-2 margins 0.75 and 1.375 on the 64-token raw-prompt check), FP8 only flips near-ties (≤ 0.375). Outputs are differently worded, not wrong.
- Longer thinking: INT4 used more tokens on 5/8 prompts (math +56%, JSON +26%, weather +21%, long-context +70%) to reach the same answers. That eats part of the decode speed gain end-to-end.
- Not observed: no broken tool calls, no invalid JSON, no wrong final answers, no language drift in German, no long-context failure on this set. 8 prompts is a small sample, so read this as "no gross regressions", not as "lossless".