tif1-LFM3-1.7B (GGUF)
tif1-LFM3-1.7B is a fine-tune of LiquidAI/LFM3-1.7B that runs the tif1 Formula 1 statistics chat on your own machine. One small model does three jobs:
- Plan: turn a question ("Who has the most podiums at Monza since 2010?") into a JSON plan whose core is a DuckDB SQL query over the F1DB database, plus a one-line restatement, a chart suggestion and three follow-up questions.
- Answer: narrate the query's result in a few sentences, using only numbers that are in the result.
- Explain: describe a lap-telemetry chart (the ✨ button on tif1's Ultra charts).
The app runs the SQL itself (DuckDB in your browser), so the model never needs to remember race results: it reads them from the database you load. This repository holds the model as GGUF files for llama.cpp and the files tif1's in-browser WebGPU engine needs.
| Base model | LiquidAI/LFM3-1.7B (1.73B parameters; 24 layers: 13 short convolutions, 5 sliding-window attention, 6 global attention), revision 875094441e |
| Fine-tune (v2.3) | LoRA r64 / α32: one epoch on 273k synthetic F1 rows, then continued-training runs on revised data; the equal-weight average ("soup") of eighteen merged final checkpoints (the two latest GPU runs and sixteen TPU seeds) |
| Files | Q4_0 GGUF v2.3 (861 MB, trimmed 19,958-token vocabulary, what the app uses) and its browser bundle web-v2.3/; earlier Q4_0 files v2.2, v2.1, v2.0, v1.1, v1.0 and their bundles (kept); F16 GGUF of the v1 weights (3.47 GB) |
| Language | English |
| Release | v2.3 (2026-11-21), pairs with tif1 plan prompt v2. Earlier: v2.2 (2026-11-19), v2.1 (2026-11-15), v2.0 (2026-11-13), v1.1 and v1.0 (2026-11-10) |
| License | LFM Open License v1.0: free for non-commercial use and for commercial use by organisations under US$10M annual revenue (details below) |
Versions
| Version | What changed | Q4_0 file | Browser bundle | Plans, result match (M1) |
|---|---|---|---|---|
| v2.3 (2026-11-21, use this) | soup of sixteen new continued-training seeds (trained on TPU) and the two latest GPU runs; GPTQ Q4_0, vocabulary trimmed to 19,958 tokens | tif1-LFM3-1.7B-v2.3-Q4_0.gguf | web-v2.3/ | 91.4% ¹ |
| v2.2 (2026-11-19) | soup of five continued-training checkpoints, GPTQ Q4_0, vocabulary trimmed to 19,925 tokens | tif1-LFM3-1.7B-v2.2-Q4_0.gguf | web-v2.2/ | 86.7% ¹ |
| v2.1 (2026-11-15) | the v2.0 weights re-quantised with GPTQ | tif1-LFM3-1.7B-v2.1-Q4_0.gguf | web-v2.1/ | 81.6% ¹ |
| v2.0 (2026-11-13) | continued training on corrected data and plan prompt v2 | tif1-LFM3-1.7B-v2.0-Q4_0.gguf | web-v2.0/ | 79.7% ² |
| v1.1 (2026-11-10) | v1.0's weights re-quantised with an importance matrix | tif1-LFM3-1.7B-v1.1-Q4_0.gguf | web-v1.1/ | 72.9% ³ |
| v1.0 (2026-11-10) | first release, plan prompt v1 | tif1-LFM3-1.7B-Q4_0.gguf | web/ | 70.6% ³ |
¹ Current reference queries (eval golds v3.4), paired on the same 1,440 plans: v2.3 vs v2.2 +4.7 points (93 plans right only with v2.3, 26 only with v2.2; exact McNemar p 4.9×10⁻¹⁰); v2.2 vs v2.1 +5.1 points (125 / 51, p 2.4×10⁻⁸). ² Eval golds v3, where v2.1 scores 82.2%. ³ The original v1 reference queries; the v2 models were trained on corrected labels and are not comparable on those (see Evaluation). The numbers in one column are therefore only comparable within the same footnote.
v2.3 averages eighteen checkpoints with equal weights: sixteen new continued-training runs, trained on TPU from three earlier runs' checkpoints on the same data as the last GPU run in a different order, and the two latest GPU runs (cont4a, cont5); see Training. Against v2.2 it plans better (+4.7 points result match on the 1,440 F1DB plans, +4.9 with the full prompt the app sends). Its answers pass the app's checks about as often (98.9% vs 99.4%, not significant). Its chart explanations traced every number slightly less often on the original 133 prompts (96.2% vs 100%, borderline), and were not significantly different from v2.2's on a new chart-explanation test from sessions the training data never saw (see Evaluation). Like v2.2 it is GPTQ Q4_0 with a trimmed vocabulary (19,958 tokens: v2.2's 19,925 plus 33 that newer outputs and the new explanation test use), so file size, download and speed are the same as v2.2's.
v2.2 averages the weights of five continued-training runs, quantises them to Q4_0 with GPTQ, and drops the tokens the model never uses from its vocabulary (128,000 → 19,925). Against v2.1 it plans better (+5.1 points result match, +15.0 on telemetry plans). The smaller vocabulary makes the file 18% smaller (861 MB vs 1.05 GB) and decoding 12–19% faster; on text made only of kept tokens the tokenisation is unchanged.
v2.0, v2.1 and v2.2 use the same plan prompt (v2) as v2.3. v1.0 and v1.1 were trained for plan prompt v1. Every earlier file stays in this repository unchanged, so existing downloads, links and pinned manifests keep working.
Contents
- Versions
- Quick start: the tif1 app, the WebGPU bundle, llama.cpp
- Request format
- Files
- Evaluation
- Training
- Limitations
- License
- Data attribution
- Citation and contact
Quick start
1. In the tif1 app
Open app.tracinginsights.com/chat and pick the on-device model, in the browser or in the tif1 desktop app. It runs on tif1's own WebGPU engine on your GPU: no server and no setup. The first use downloads the v2.3 bundle (about 0.96 GB) once. The app sends the trained request shape, checks every number in an answer against the query result, and asks again with sampling if an answer does not check out.
2. The WebGPU bundle
web-v2.3/ holds the bundle of v2.3 for tif1's own WebGPU engine, which runs this model inside the browser tab with no
server (web-v2.2/, web-v2.1/, web-v2.0/, web-v1.1/ and web/ hold those of the earlier versions):
- the 13,397-token plan prompt (v2) already processed (
.tif1kv, 89.6 MB), so the first plan token comes in about 0.4 s on a T4 instead of a full prompt pass; - two speculation tables (
.tif1ng) that let the engine draft several tokens at a time and verify them. The output is identical with or without them; they only make decoding faster; manifest.json, which lists every file with its size, sha256 and per-chunk hashes so downloads can resume and are checked.
Pin the manifest by commit (v2.3):
https://huggingface.co/tracinginsights/tif1-LFM3-1.7B-GGUF/resolve/3ef31f87d261f48ab4f9faf3da48088b4859bb4c/web-v2.3/manifest.json
Earlier manifests stay at their own commits: v2.2 95edc92f074204b7b2c57315b23ee76146425504 (web-v2.2/manifest.json), v2.1 8467cebf809fdbe3a731f36fcea0a640f4273cd4 (web-v2.1/manifest.json),
v2.0 e16e3d098de8e528b2c17e63a67a82b5b4c9e43d (web-v2.0/manifest.json), v1.1
8f135106bb42bda3468c36700b8172e7bcf38719 (web-v1.1/manifest.json) and v1.0
0b2fcb871b8cc5780c473a1fe7af1d4612390221 (web/manifest.json). Each plan-prompt state is computed by its own Q4_0
file, so the engine refuses to mix a state with another version's model (the manifest binds them by sha256). The v2.2 and
v2.3 speculation tables are rebuilt for their trimmed vocabularies and bound to their own files; the earlier bundles
share the original tables.
The engine ships inside the tif1 web app; it is not a separate public package. The first visit downloads about 0.96 GB once (model + state + tables; 16.5% less than the 128k-vocabulary bundles), and later visits load from the browser's storage. v2.3 measured on a Tesla T4 in Chrome (Vulkan), 240 JSON-schema plan turns, engine 0.2.11 (v2.2 in the same page alongside):
| without speculation tables | with (default) | |
|---|---|---|
| decoding speed (aggregate) | 161 tokens/s (v2.2: 161) | 331 tokens/s (v2.2: 339; acceptance 0.71, 5.0 tokens per forward pass) |
| first token after the restored prompt state (median) | 422 ms | 424 ms |
| plan turn, request → last token (median) | 1.70 s | 1.06 s |
| peak GPU memory | 1,174 MiB |
Earlier, with v1.0 on a Colab T4 (same engine design, 128k vocabulary): an answer of about 40 tokens took 160 ms to
the first token and 0.44 s to the last; a chart explanation of up to 256 tokens 1.3 s; a warm page load to ready
3.1–4.0 s; and prime(), which keeps the GPU warm while the user types (about +15 W), cut the first plan token after
a 3–10 s pause from 315–364 ms to 122–131 ms. These have not been re-measured with v2.3.
3. Outside the app, with llama.cpp
For your own experiments, the GGUF also runs on llama.cpp; the tif1 app does not use it. You need a llama.cpp build with LFM3 support (llama.cpp PR #31252, 2026-10-27, or later).
# download the 4-bit model, v2.3 (861 MB)
hf download tracinginsights/tif1-LFM3-1.7B-GGUF tif1-LFM3-1.7B-v2.3-Q4_0.gguf --local-dir .
llama-server -m tif1-LFM3-1.7B-v2.3-Q4_0.gguf --alias tif1-lfm3-q4 \
--jinja -np 4 -c 81920 --ctx-checkpoints 16 -fa on \
--slot-save-path ~/.cache/tif1/slots --host 127.0.0.1 --port 8080
Or let llama.cpp download it: replace -m tif1-LFM3-1.7B-v2.3-Q4_0.gguf with
-hf tracinginsights/tif1-LFM3-1.7B-GGUF --hf-file tif1-LFM3-1.7B-v2.3-Q4_0.gguf. Name the file: the short form
-hf tracinginsights/tif1-LFM3-1.7B-GGUF:Q4_0 picks the first Q4_0 file in the repository, which is v1.0's.
What the flags are for:
--alias tif1-lfm3-q4: any model name works. Send requests in the trained shape yourself (see Request format).-np 4: one server slot per call kind (plan, plan continuation/repair, answer, chart explanation), so each slot keeps its own system prompt cached.-c 81920: 20,480 tokens per slot. The plan prompt alone is about 13,400 tokens.--jinja --ctx-checkpoints 16: LFM3 is a hybrid (convolution + attention) model, so llama-server can only reuse a prompt from a stored state checkpoint. With these flags the long system prompt is processed once per slot rather than on every question.-fa on: flash attention, about 27% faster prompt processing on a T4.
There is no F16 file for v2.x. tif1-LFM3-1.7B-F16.gguf holds the v1 weights, which plan much worse than v2.3's Q4_0
file; it is kept for v1.0/v1.1 only.
Request format
The model was trained on the tif1 app's real requests, so it works best with them:
- System prompt: written by the tif1 app (a plan prompt of about 13,400 tokens that describes the F1DB tables, views and macros, and short answer and explanation prompts). The prompts are not reproduced here; the app sends them.
- Task line: the first user message starts with one line naming the job:
task: plan,task: answerortask: explain. - Decoding: greedy (
temperature0,top_k1),repeat_penalty1. - Thinking off: pass
chat_template_kwargs: {"enable_thinking": false}. Training put an empty<think></think>before every assistant turn, and the model was never trained to reason in a thinking block. - Plans are a single JSON object with the keys
sql,rows("one"/"many"),understanding,chart_suggestion,suggestions,confirmed,needs_steps,step_plan,done. The app may constrain it with a JSON schema (response_format).
The shape of a request (placeholders in angle brackets):
curl http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "tif1-lfm3-q4",
"messages": [
{"role": "system", "content": "<the tif1 answer prompt>"},
{"role": "user", "content": "task: answer\n<the question and the query result, as the app formats them>"}
],
"temperature": 0, "top_k": 1, "top_p": 1, "repeat_penalty": 1,
"chat_template_kwargs": {"enable_thinking": false}
}'
The model will respond to other prompts, but it was not trained or evaluated for general chat, general text-to-SQL or other databases.
Prompt version. v2.0, v2.1, v2.2 and v2.3 were trained with tif1 plan prompt v2 (sha256 3aa2ec6ba4ba…, 13,397 tokens,
with a "Result Columns" section); v1.0 and v1.1 with plan prompt v1 (sha256 3cd7779102ed…, 13,044 tokens). Each
release ships as its own files, and the app chooses the model that matches its prompt.
Files
v2.3 (current)
| File | Size | sha256 | What it is |
|---|---|---|---|
tif1-LFM3-1.7B-v2.3-Q4_0.gguf | 860,943,360 B (861 MB) | 836e0e9bfd4ed82e6ebea9ebca6cfaae1d6507ca2efd1720ed0be7455643a679 | v2.3 4-bit Q4_0 (GPTQ), vocabulary trimmed to 19,958 tokens. The tif1 app and the browser engine use this one. |
web-v2.3/manifest.json | 7,935 B | f24fe7a47796ff4f1b9f33af2f54104b5a0dfe8428715c793fe2d784d75858b6 | v2.3 browser bundle manifest (files, sizes, per-chunk sha256; files pinned at commit bb005811b1e5) |
web-v2.3/3aa2ec6ba4ba…cdaf01e291.tif1kv | 89,595,904 B (89.6 MB) | a4380e56689443f711da9af037556210d9b2231a808f2f4a68c4074df15c2c4a | Plan prompt v2's processed state for the v2.3 model (q8_0 KV cache, 13,397 tokens) |
web-v2.3/probe.json | 4,815 B | 70676424f6d9ec0c2f8a9688cc2bdc08220f47d0a0c54a5ad51efc4d8639d904 | Reference logits the engine checks after loading the state |
web-v2.3/report.json | 4,750 B | a9c2135154925d3549c2b4b30ccfef62131e8cb5d21e46526f72af0246d36115 | How the state was built and verified |
web-v2.3/tables/plan.tif1ng | 4,288,180 B (4.29 MB) | 684f4fa48a754fc8644724ce870436a0ecbbeb6d43193381e1c56b67cdb2dec1 | Plan speculation table, rebuilt for the trimmed vocabulary and bound to the v2.3 file |
web-v2.3/tables/explain-optin.tif1ng | 2,041,488 B (2.04 MB) | 69921139a6382df7b2d731789276c8bf0e64d329d174bb58106de1dcf89d681a | Chart-explanation speculation table, same binding |
NOTICE-v2.3 | 3,035 B | fab0a184dd42ab54ffed163bba3b028a78e1e6bb4c389229ad87f8c3067a7b48 | What was changed for v2.3 (adds to NOTICE) |
SHA256SUMS-v2.3 | 780 B | sha256sum -c SHA256SUMS-v2.3 after downloading |
Earlier versions (kept unchanged)
| File | Size | sha256 | What it is |
|---|---|---|---|
tif1-LFM3-1.7B-v2.2-Q4_0.gguf | 860,886,112 B (861 MB) | 54dc92bbf7ff4b0b32e21af942bbd5a2c77e4c3f7a23d64bdf2182a13d0e50dd | v2.2: soup of five continued-training checkpoints, Q4_0 (GPTQ), 19,925-token vocabulary |
web-v2.2/ | see SHA256SUMS-v2.2 | v2.2 bundle (manifest 9729e35d9086…, state 2f137f2b4869…); tables rebuilt for its vocabulary and bound to its file | |
tif1-LFM3-1.7B-v2.1-Q4_0.gguf | 1,049,614,880 B (1.05 GB) | 0ad937d756c547373d1fbb5161bed633ba7f005e69e6a1b9b81b6234f034521e | v2.1: the v2.0 weights, 4-bit Q4_0 with GPTQ, 128k vocabulary |
web-v2.1/ | see SHA256SUMS-v2.1 | v2.1 bundle (manifest 971934c90e21…, state c510438643a2…); tables as in web/tables/ | |
tif1-LFM3-1.7B-v2.0-Q4_0.gguf | 1,049,615,200 B (1.05 GB) | cae795ab6b56e1e8454ba48c47625a1d298be7a09f9b8ac0df5010fec275a2ce | v2.0: continued training, Q4_0 with an importance matrix |
web-v2.0/ | see SHA256SUMS-v2.0 | v2.0 bundle (manifest d567b1e31057…, state dca36395efd7…); tables as in web/tables/ | |
tif1-LFM3-1.7B-v1.1-Q4_0.gguf | 1,049,615,232 B (1.05 GB) | dbc82632dd82f239d9953ed3598b5eb3b8907df9e200e2ce41e79c30e69a2c5c | v1.1: v1 weights, Q4_0 with an importance matrix |
web-v1.1/ | see SHA256SUMS | v1.1 bundle (manifest 6eada5c007ef…, state a6d2d83a8948…); tables as in web/tables/ | |
tif1-LFM3-1.7B-Q4_0.gguf | 1,049,614,880 B (1.05 GB) | 9bdcf8df22727f94a95e1c277dcefb7d62489a471d35f8de7e58ba579438136d | v1.0: v1 weights, plain Q4_0 |
tif1-LFM3-1.7B-F16.gguf | 3,466,625,568 B (3.47 GB) | 83a1a7446b00e1d64069ffab33094ce2869a8b92f395d0381287931fbc6e11c6 | 16-bit v1 weights, from which v1.0 and v1.1 were quantised. Not the v2 weights. |
web/ | see SHA256SUMS | v1.0 bundle (manifest 3cad77390c24…, state d830ac3e9e4b…) and the original speculation tables (plan.tif1ng 1964be68ac6b…, explain-optin.tif1ng c6787e89fc1c…) | |
LICENSE | 10,574 B | 4d28ca14dedc0b3d0fcc2b3339f0e79931faa33874f3d24f522183a8fc70068c | LFM Open License v1.0, unchanged from LiquidAI/LFM3-1.7B |
NOTICE, NOTICE-v2.0, NOTICE-v2.1, NOTICE-v2.2 | What was changed, and when (NOTICE covers v1.0/v1.1 and applies to every version) | ||
SHA256SUMS, SHA256SUMS-v2.0, SHA256SUMS-v2.1, SHA256SUMS-v2.2 | Checksums for v1.0/v1.1, v2.0, v2.1 and v2.2 |
Each state file is tied to its own Q4_0 file's sha256 and the tables to the tokenizer (v2.2's and v2.3's also to their model files); they do not work with other models or quantisations.
Evaluation
Unless a line says otherwise, numbers are for the Q4_0 files with llama.cpp (CUDA, T4), greedy decoding and the app's requests. Evaluation questions were held out from training (but see the overlap note under Training), and one slice also uses an F1DB snapshot training never saw. Brackets are 95% confidence intervals clustered by question.
The evaluation set. 720 held-out questions, each asked with the app's full and compact plan prompts (1,440 plans): 240 with new slot fillings, 240 in a held-out phrasing style, and 240 run against a newer F1DB snapshot the model never saw (to catch a model that recites results instead of reading them). Plus 120 telemetry plans, 720 answers and 133 chart explanations. Most questions are new fillings and wordings of known question types; a fixed slice of 42 plans needs a SQL skeleton that training lacked.
How plans are scored.
- Result match (M1, headline): the query's result contains every column of the reference result, matched by value, with the same rows, on its own F1DB snapshot and on every other snapshot where the reference query runs. Extra columns are allowed; a missing column, a wrong row or an SQL error fails.
- Exact columns (M2): as M1, and the result has exactly the reference's columns.
- Right rows (exec): the result has the reference's rows.
- Exact SQL: the query text equals the reference query.
Reference queries changed between v1 and v2. After v1 the reference ("gold") queries were made consistent: one naming convention for drivers and teams, fixed zero-count, tie and macro cases, and canonical telemetry queries (eval golds v3, then v3.4 with a few more convention fixes). The v2 models were trained on the same conventions. On the v1 golds the first v2 weights scored lower than v1.0, on the corrected golds far higher, so v1 and v2 numbers are not comparable with each other. v2.x numbers below use golds v3.4.
Plans (v2.3 vs v2.2, golds v3.4, paired)
| v2.3 Q4_0 | v2.2 Q4_0 | Δ (v2.3 only / v2.2 only, exact McNemar p) | |
|---|---|---|---|
| F1DB plans (1,440): result match (M1) | 91.4% | 86.7% | +4.7 (93 / 26, p 4.9×10⁻¹⁰) |
| F1DB plans: exact columns (M2) | 86.9% | 82.2% | +4.7 (101 / 33, p 3.3×10⁻⁹) |
| F1DB plans: right rows (exec) | 86.1% | 81.5% | +4.6 (97 / 31, p 4.2×10⁻⁹) |
| F1DB plans, full prompt (720; what the app sends) | 91.8% | 86.9% | +4.9 (48 / 13, p 7.7×10⁻⁶) |
| F1DB plans, new SQL skeleton (42) | 88.1% | 81.0% | +7.1 (4 / 1, p 0.38) |
| Telemetry plans (120) | 82.5% | 79.2% | +3.3 (11 / 7, p 0.48) |
Result match by slice for v2.3: new fillings 91.7%, held-out phrasing 89.2%, newer F1DB snapshot 93.3%; full prompt 91.8% vs compact 91.0%. The trimmed-vocabulary v2.3 file and the same weights with the full vocabulary produced identical greedy outputs on 240 of 240 plan prompts and on 14 of 14 evaluation rows whose outputs need one of the rarer kept tokens, so these numbers, measured on the 128k-vocabulary build, carry over.
Plans (v2.2 vs v2.1, golds v3.4, paired)
| v2.2 Q4_0 | v2.1 Q4_0 | Δ (v2.2 only / v2.1 only, exact McNemar p) | |
|---|---|---|---|
| F1DB plans (1,440): result match (M1) | 86.7% | 81.6% | +5.1 (125 / 51, p 2.4×10⁻⁸) |
| F1DB plans: exact columns (M2) | 82.2% | 73.5% | +8.7 (180 / 55, p 1.1×10⁻¹⁶) |
| F1DB plans: right rows (exec) | 81.5% | 75.5% | +6.0 (139 / 52, p 2.4×10⁻¹⁰) |
| F1DB plans: exact SQL | 54.7% | 48.5% | +6.2 (186 / 97, p 1.3×10⁻⁷) |
| F1DB plans, full prompt (720; what the app sends) | 86.9% | 82.8% | +4.2 (57 / 27, p 0.0014) |
| F1DB plans, new SQL skeleton (42) | 81.0% | 69.0% | +11.9 (7 / 2, p 0.18) |
| Telemetry plans (120) | 79.2% | 64.2% | +15.0 (24 / 6, p 0.0014) |
Result match by slice for v2.2: new fillings 89.6%, held-out phrasing 83.1%, newer F1DB snapshot 87.5%; full prompt 86.9% vs compact 86.5%. The trimmed-vocabulary v2.2 file and the same weights with the full vocabulary produced identical greedy outputs on 240 of 240 plan prompts (and on 7 of 7 rows that an earlier, smaller trim had affected), so these numbers, measured on the 128k-vocabulary build, carry over.
Answers and chart explanations (v2.3 and v2.2)
| v2.3 Q4_0 | v2.2 Q4_0 | Δ (b / c, p) | |
|---|---|---|---|
| Answers (720): pass the app's answer verifier | 98.9% | 99.4% | −0.6 (2 / 6, p 0.29) |
| Answers: every number traced to the query result | 100.0% | 100.0% | ±0 |
| Chart explanations (133): numbers traced to the chart data | 96.2% | 100.0% | −3.8 (0 / 5, exact p 0.062; clustered p 0.023) |
| Outputs that ran into the token limit | 0 | 0 |
On the original 133 explanation prompts v2.3 traced every number in 128 against v2.2's 133: borderline (not significant by the exact test the release rule uses, significant by the clustered test).
Chart explanations on unseen sessions. The 133 explanation questions above are not a clean held-out test: all come from one session (2026 Bahrain FP2, all-drivers view), and the training data contains explanations of the same charts of that session in two- and four-driver views (121 of the 133 prompts have a near-duplicate training prompt). For v2.3 a new test was built from sessions with no training explanations at all (2025 Hungary race, 2026 Canada qualifying; 376 prompts, same construction as the app's), and v2.2 and the candidates were run on the same machine, binary and row order (llama.cpp CUDA, T4):
| Numbers traced to the chart data | v2.3 | v2.2 | Δ (b / c, exact McNemar p) |
|---|---|---|---|
| all-drivers view, the pre-registered primary (195) | 89.7% | 92.8% | −3.1 (6 / 12, p 0.24) |
| two-driver view (181) | 92.8% | 91.2% | +1.7 (12 / 9, p 0.66) |
| all 376 | 91.2% | 92.0% | −0.8 (18 / 21, p 0.75) |
| outputs that ran into the token limit (all 376) | 1 | 3 |
Neither difference is significant. Run-to-run noise on this test is large: v2.2 against itself on two different machines differed by up to p 0.027 on the primary, and an earlier candidate's first run looked significantly worse (−6.2, p 0.0075) and was not significantly different on a rerun (p 0.29). Plan and answer questions have no overlap with the training data (no exact or near-duplicate question).
The answer numbers use the answer verifier v3, which also fails a NULL rendered as a blank ("top speed was km/h") and fixes false alarms on name forms; v2.1 was scored with the previous verifier (answers 98.2%, explanations 97.7%), so its numbers are not shown side by side. On numbers traced, the measure that did not change, v2.2 vs v2.1 is 100.0% vs 99.9% for answers and 100.0% vs 97.7% for explanations (3 / 0, p 0.25).
How v2.3 was chosen
The rules were written down before the results they decide on. A first round screened weight averages of the sixteen new TPU seeds and the earlier checkpoints on held-out teacher-forced plans, evaluated the best two in Q4_0 on one half of the evaluation set (the selection half) and gated the pick (an average of twenty checkpoints) against v2.2 on the other half (the report half) and the full set; it passed. Before publishing, the new chart-explanation test above was built, and its first run scored that pick significantly lower than v2.2 on unseen sessions, so it was held. A second round then evaluated six candidates in Q4_0 with a fixed rule: (a) plans on the selection half significantly better than v2.2 (p < 0.05) and (b) explanations on the new test not significantly worse than v2.2's run on the same machine; the pick is the best selection-half plan score among those passing both. All six passed; the best was this eighteen-checkpoint average (selection half 92.5% vs v2.2 87.2%). It then had to pass the same gate as the first pick, against v2.2 on the report half (a second look at that half, recorded as such) and the full set: gain on the report half with p < 0.10, at least +1.0 points on the full set with p < 0.05, and no significant loss on right rows, telemetry plans, answers or chart explanations.
| Gate check (golds v3.4) | v2.3 | v2.2 | Δ (b / c, p) | Pass |
|---|---|---|---|---|
| F1DB plans, report half (724): result match > 0, p < 0.10 | 90.3% | 86.3% | +4.0 (38 / 9, p 2.5×10⁻⁵) | ✓ |
| F1DB plans, full set (1,440): ≥ +1.0, p < 0.05 | 91.4% | 86.7% | +4.7 (93 / 26, p 4.9×10⁻¹⁰) | ✓ |
| no significant loss: right rows | 86.1% | 81.5% | +4.6 (97 / 31, p 4.2×10⁻⁹) | ✓ |
| no significant loss: telemetry plans | 82.5% | 79.2% | +3.3 (11 / 7, p 0.48) | ✓ |
| no significant loss: answers, verifier pass | 98.9% | 99.4% | −0.6 (2 / 6, p 0.29) | ✓ |
| no significant loss: explanations, numbers traced | 96.2% | 100.0% | −3.8 (0 / 5, p 0.062; clustered p 0.023) | ✓ (exact test) |
With the earlier scorer and golds v3 (for comparison with older numbers): result match 90.8% vs 87.5% (+3.3, 81 / 34, p 1.4×10⁻⁵), right rows +2.5 (p 0.002), telemetry −1.7 (p 0.82), answers verifier ±0, explanations numbers traced 94.0% vs 98.5% (−4.5, 1 / 7, p 0.07). The report half had already been used once, for the first pick's gate, so this was a second look at it. As for the first pick, the GPTQ file was exported without the quantisation tool's own GPTQ-vs-plain spot check; the gate was run on that file.
How v2.2 was chosen
v2.2 is one of several weight averages ("soups") of the continued-training checkpoints. A soup was picked by a rule fixed before the results: screen candidates on held-out teacher-forced plans, evaluate the top two in 16-bit on one half of the evaluation set, then gate the pick's Q4_0 file against the then-best candidate, an average of five other checkpoints called ALL5 (never published), on the other half and the full set.
v2.2 (called ALL6m4b) did not pass that gate. Against ALL5, both Q4_0, golds v3.4:
| v2.2 | ALL5 | Δ (b / c, p) | |
|---|---|---|---|
| F1DB plans, result match (1,440) | 86.7% | 87.1% | −0.3 (33 / 38, p 0.64) |
| F1DB plans, report half (724) | 86.3% | 86.9% | −0.6 (14 / 18, p 0.60) |
| F1DB plans, right rows | 81.5% | 81.5% | +0.1 (45 / 44, p 1.0) |
| Telemetry plans (120) | 79.2% | 80.0% | −0.8 (6 / 7, p 1.0) |
| Answers, verifier pass (720) | 99.4% | 98.1% | +1.4 (10 / 0, p 0.002) |
| Chart explanations, numbers traced (133) | 100.0% | 98.5% | +1.5 (2 / 0, p 0.5) |
The rule required a plan gain (≥ +1.0 points with p < 0.05 on the full set), and plans were tied, so by the rule ALL5 would have stayed. We chose v2.2 anyway, outside the rule, because it is significantly better on answers and better on chart explanations at equal plan accuracy. In 16-bit v2.2 had looked better on plans (89.2% vs 88.3% on the selection half), but GPTQ quantisation cost it more (−2.1 points vs −1.0 for ALL5).
Quantisation: Q4_0 vs 16-bit
v2.1 and v2.2 are quantised with GPTQ: each linear layer's weights are rounded column by column onto the Q4_0 grid while the rounding error is compensated using the layer's input statistics on training prompts, with per-block scales chosen by a search. On v2.1's weights this beat plain Q4_0 by +2.6 points of result match (golds v3, p 0.0014) and closed about half of the gap to 16-bit; the importance-matrix method of v1.1 and v2.0 gained nothing on those weights (+0.3, p 0.78). For v2.2, on the selection half of the evaluation set, result match goes from 89.2% (16-bit) to 87.2% (Q4_0): −2.1 points (p 0.0015). v2.3 was selected directly on its Q4_0 file; its 16-bit weights were not evaluated on the full set. The 16-bit v2.2 and v2.3 weights are not published.
The browser engine vs llama.cpp (v2.3)
tif1's WebGPU engine (0.2.11) was compared with llama.cpp CUDA running the same v2.3 file on a Tesla T4, on 240 JSON-schema plan prompts:
- 224 of 240 outputs were identical. All 16 differences start at a near-tie between the top two tokens (log-probability gap 0.0004–0.43), i.e. WebGPU vs CUDA rounding; the final SQL differs on 9.
- Speculation tables never change an output: 480 of 480 identical with and without them.
- Tokenisation in the page matches the original tokenizer (under the renumbering) on 240 of 240 prompts; the bundle's load checks pass (8 of 8), and the restored prompt state equals llama.cpp's own, losslessly.
- Answers, chart explanations and free (schema-less) plans have not been compared in the browser for v2.2 or v2.3.
For v2.2 the same comparison gave 223 of 240 identical, all 17 differences at near-ties (gap 0.002–0.21).
Earlier versions (v1.0 / v1.1, original golds)
These are the v1 evaluations on the original v1 reference queries, against which the v2 models are not scored.
| base LFM3-1.7B, Q4_0 | Q4_0 v1.1 | Q4_0 v1.0 | v1 F16 | |
|---|---|---|---|---|
| F1DB plans: result match (M1) | 9.2% [7.4–11.1] | 72.9% [69.9–76.0] | 70.6% [67.4–73.9] | 75.6% |
| F1DB plans: strict match (rows exactly the reference's) | 6.2% | 61.9% | 59.4% | 65.4% |
| F1DB plans: exact SQL | 1.5% | 46.7% | 43.8% | 51.6% |
| JSON the app can parse | 68.9% (26.7% ran out of tokens) | 100% | 100% | 100% |
| Answers (720): pass the app's answer verifier | 61.1% | 99.0% | 98.9% | |
| Chart explanations (133): numbers traced to the chart data | 69.9% | 99.2% | 96.2% |
- v1.1 vs v1.0 (paired): result match +2.3 points (85 / 52, exact McNemar p 0.006).
- Telemetry (824 held-out prompts, five session datasets, v1.0): result match on all five sessions 54.9% [51.5–58.3]; the base model scored 2.5% on a 120-prompt subset.
- JSON-schema mode (v1.0): 1,560 of 1,560 plans were valid JSON and valid against the schema; result match 70.3% vs 70.6% without a schema (p 0.42).
- Plain Q4_0 cost v1.0 4.9 points of result match against F16 (p 4.7×10⁻⁸); v1.1's importance matrix halved that to 2.6.
- The v1 weights average the last four checkpoints of the first epoch; against the last checkpoint alone result match was identical (70.6% vs 70.6%).
- Browser engine vs llama.cpp, v1.0 and v1.1: no significant paired difference on any of nine task metrics, 480 of 480 schema-constrained plans valid.
Training
v1 (epoch 1, 2026-11-06 to 2026-11-08)
- Method: LoRA, rank 64, α 32, dropout 0, on the attention (q, k, v, o, gate), short-convolution (in, out) and MLP (w1, w2, w3) projections. Embeddings and the tied output head were frozen.
- Data: 273,428 synthetic rows, one epoch: 144,706 plans (128,517 F1DB + 16,189 telemetry) with the full plan prompt, 126,506 answers and 2,216 chart explanations. 250.6M tokens processed, 35.6M of them trained on (loss only on the final assistant turn).
- How the data was made: question types (hand-written, or proposed by a model and reviewed) are templates with typed slots and several phrasing styles. Each filled question has a reference SQL query, run against several F1DB snapshots (2025 to the 2026 season through round 19) so the same question has different correct answers in different snapshots. Questions, phrasings and answer texts were written with the help of larger language models and kept only after the SQL ran, a second model re-planned the question to the same result, and the app's answer checks passed. Every row uses the app's real prompts and request shape. No user questions, chat logs or personal data were used.
- Optimiser: AdamW (β 0.9 / 0.99, weight decay 0, gradient clip 1.0), learning rate 8×10⁻⁴.
- Schedule: warmup-stable-decay: 29 warmup steps, constant, then a 1−√ cooldown to 0 from step 813 to 956.
- Batch: 8 packed sequences of 32,768 tokens per step (rows that share a system prompt are packed behind one copy of it), about 290 rows and 37k trained tokens per step; 956 steps.
- Precision and hardware: fp16 activations with dynamic loss scaling, LoRA weights and optimiser state in fp32, on free Kaggle T4×2 and Colab T4 sessions.
- v1 weights: the uniform average of the merged updates (α/r)·B·A of checkpoints 945, 950, 955 and 956, added to
the base weights in fp32, saved in bf16, converted to GGUF F16 and quantised to Q4_0 with llama.cpp (commit
13ec8f6): v1.0 plain, v1.1 with an importance matrix.
v2 (continued training, 2026-11-11 to 2026-11-21)
Each run continues the same LoRA, with its optimiser state, from an earlier run's checkpoint taken just before its learning-rate cooldown, at learning rate 8×10⁻⁴ with a 1−√ cooldown, on free Kaggle T4×2 and Colab T4 sessions (cont6: Kaggle TPU v5e-8):
| Run | Starts from | Steps | What its data added |
|---|---|---|---|
| cont1 (= v2.0 / v2.1) | epoch 1, step 813 | 489 | corrected SQL targets (one naming convention), plan prompt v2, more answer and plan examples, the model's own verified correct samples |
| cont2 | cont1, step 391 | 201 | consistent v3 training labels, at most 10 rows per question type |
| cont3 | cont2, step 101 | 188 | 336 verified repeat and paraphrase rows for question types the model got wrong |
| cont4a | cont3, step 94 | 122 | 840 rows of new SQL skeletons, verified samples of the merged model, more rows for failing question types, convention fixes to training targets |
| cont5 | cont4a, step 61 | 184 | 29,723 rows: verified new rows for weak question types, a third round of the model's own verified samples, repair and multi-step turns as the app sends them, chart-context follow-ups, long-list answers that name every row, chart explanations for "data not computed" charts; blank-value and row-dropping answer targets removed |
| cont6 (16 seeds) | cont3 step 94 (6 seeds), cont4a step 61 (6), cont5 step 92 (4) | 163–172 each | no new data: cont5's 29,723 rows, each seed in its own order (stratified by task); one seed per TPU chip, two 8-chip sessions, bf16 |
- v2.3 weights: each run's final LoRA was merged into the base weights on its own; the eighteen merged models cont4a, cont5 and the sixteen cont6 seeds were averaged with equal weights (1/18 each, in fp32, stored in fp16). cont1, cont2 and cont3 are not in it (see How v2.3 was chosen). The cont6 seeds trained on TPU (bf16) gave the same training loss as the T4 code path within 0.1–0.8% when re-checked on a T4.
- v2.2 weights: the five merged models cont1, cont2, cont3, cont4a and cont5 averaged with equal weights (0.2 each). A further run (cont4b, the same data as cont4a with ×3 loss weight on the SELECT-list tokens) is in neither average: soups with it wrote weaker chart explanations.
- Quantisation: GPTQ onto Q4_0 with searched scales (statistics from training plan prompts); every linear layer
Q4_0, the token embedding Q6_K, other tensors as in the plain export (llama.cpp commit
13ec8f6). - Vocabulary trim: kept every token used by the training data, the evaluation data and the models' own outputs, plus every byte-level symbol, every special token and the BPE intermediates needed to build them: 19,958 of 128,000 tokens for v2.3 (39,870 of 293,320 merges; v2.2's 19,925 plus 33 that newer models' outputs and the new chart- explanation test use). Ids are renumbered in the original order; the kept rows of the tied embedding / output head are unchanged. On an earlier candidate trimmed the same way, T4 decoding was 15–19% faster in llama.cpp and plan accuracy unchanged (paired p 1.0).
- Overlap check: evaluation questions were held out from training by question and phrasing. An audit before cont5 found 363 rows in cont4's training data that ask the same question as an evaluation question, on a different F1DB snapshot; cont5's data excludes every such row (393 in its pool). Their effect on the v2.2 numbers has not been measured. cont6 trained only on cont5's data, so v2.3 saw no training row that v2.2 had not seen. Checked again for v2.3: no plan or answer question of the evaluation set is in the training data (exact or near-duplicate, follow-up turns included); most evaluation questions share a question type (template) with training rows, by design. The original chart-explanation prompts do have near-duplicates in training; the new explanation test does not (see Answers and chart explanations).
Limitations
- It needs the tif1 app's prompts. The plan prompt tells the model the database's tables, views and macros. Without it the model does not know the schema, and it has not been evaluated with any other prompt or database. v2.x needs plan prompt v2.
- Data, not memory. The model writes queries; the answers are only as current as the F1DB copy the app loads. New races are covered without retraining as long as the database layout and the prompt stay the same. A schema change needs a new prompt and, usually, a new release.
- Accuracy. About 1 in 12 plans do not return the right result (v2.3 Q4_0, result match 91.4%). In the failure analysis of a closely related soup, three quarters were a missing or different column, the rest mostly wrong logic. An answer can only be as right as its query; the app checks that an answer's numbers come from the result, not that the query was the right one.
- Known question types, mostly. Most evaluation questions are new wordings and fillings of question types seen in training. On the 42 plans that need a new SQL skeleton v2.3 scores 88.1%, too few to measure precisely; accuracy on genuinely new kinds of questions is not well measured.
- Telemetry is weaker (82.5% result match on 120 plans) than F1DB statistics.
- Q4_0 costs about 2 points of plan accuracy against 16-bit weights (measured for v2.2); the 16-bit weights are not published.
- Trimmed vocabulary. v2.3 keeps 19,958 of the 128,000 tokens (v2.2: 19,925). Text made of other tokens (other languages, rare symbols) is split into shorter kept pieces, which the model has rarely seen. v2.1 keeps the full vocabulary.
- The browser engine is checked on plans only for v2.2 and v2.3; its answers and chart explanations have been compared with llama.cpp for earlier versions only.
- English only, Formula 1 only. It is not a general assistant, was not trained for tool calling, and was trained with thinking switched off.
- Do not use it for decisions that matter (betting, journalism without checking, anything safety-related) without verifying the result yourself.
License
The model is a derivative of LFM3-1.7B and is distributed under the LFM Open License v1.0, copied unchanged from Liquid AI. NOTICE, NOTICE-v2.0, NOTICE-v2.1 and NOTICE-v2.2 and NOTICE-v2.3 list what was modified. In plain terms (the LICENSE file is what counts, and this is not legal advice):
- Non-commercial and research use: allowed, free of charge.
- Commercial use: allowed only while you and your legal entity (including organisations that control you, that you control, or that share control with you) have annual revenue below US$10 million. At or above that, commercial use is not licensed; you would need a separate license from Liquid AI.
- Qualified non-profit organisations may use it for non-commercial or research purposes regardless of revenue.
- If you redistribute it, modified or not: include the LICENSE, mark the files you changed, and keep the attribution notices (including this repository's NOTICE files).
This model is not made, endorsed or supported by Liquid AI.
Data attribution
Training and evaluation queries run against F1DB, licensed CC BY 4.0. The model does not contain the database; the tif1 app loads it at run time. Some plans query the app's tables of public FIA documents and its lap-telemetry tables.
This project is not affiliated with Formula 1, the FIA or any team. F1 and Formula 1 are trademarks of Formula One Licensing B.V.
Citation and contact
@misc{tracinginsights2026tif1lfm3,
author = {TracingInsights},
title = {tif1-LFM3-1.7B: a Formula 1 statistics chat model (text-to-SQL over F1DB) fine-tuned from LFM3-1.7B},
year = {2026},
howpublished = {\url{https://huggingface.co/tracinginsights/tif1-LFM3-1.7B-GGUF}}
}
@article{liquidAI2026LFM3,
author = {Liquid AI},
title = {Introducing LFM3: Every Modality for Specialized Intelligence},
journal = {Liquid AI Blog},
year = {2026},
note = {www.liquid.ai/blog/lfm3}
}
Questions, bug reports and results from your hardware are welcome in this repository's Community tab, or through app.tracinginsights.com.