LFM3-1.7B · OpenThoughts3 · 2M-token local pilot
A small, reproducible fine-tuning experiment with measured size, quality and speed tradeoffs on a 24 GB M4 Pro.
This community release fine-tunes LiquidAI/LFM3-1.7B with LoRA on a filtered OpenThoughts3 subset, then merges and exports standard GGUF quantizations. Training ran locally on one Mac, with no paid cloud compute.
The recommended Q8_0 download is 1.85 GB. It matched the trained F16 model's 58/72 total on our small regression screen and averaged 99.8 ± 9.1 decode tokens/s, versus 63.3 ± 2.3 for its F16 parent under matched runtime settings. That is 46.7% less disk space and 1.58× observed mean decode throughput.
Experimental evidence: this is a 72-case screen, reused to choose the export precision. Matching totals do not mean identical answers or lossless quality. The observed improvement over the original model has an uncertainty interval that includes zero. Independent evaluation is still needed before claiming a general capability improvement.

Choose a download
| File | Size, decimal GB | Screen | Use |
|---|---|---|---|
| Q8_0 | 1.846 | 58/72 | Recommended starting point |
| Q6_K | 1.428 | 56/72 | Smaller alternative; two fewer passes on this screen |
| Native PEFT adapter | 0.066 | Evaluated after F16 merge | Reproduce or continue the native-model experiment |
File sizes exclude runtime memory, context/KV state and application overhead. These are standard Q8_0 and Q6_K exports, produced from the same trained F16 merge. The unsuccessful GSQ/RCO experiments are reported below; these downloads do not use that method.
Run with llama.cpp
Tested with stock llama.cpp b11960, commit 8642541b255bfb5dc39cd351a178be09013a55d6. Use a runtime with LFM3 support; older GGUF applications may not load this architecture.
llama-server \
-hf aceflooder/LFM3-1.7B-OT3-2M-GGUF:Q8_0 \
-ngl 99 -c 4096 -np 1 \
-t 1 -tb 1 --poll 0 \
-b 256 -ub 256 -fa on -ctk f16 -ctv f16 \
--reasoning off --temp 0 --seed 20261031 \
--spec-type none --host 127.0.0.1 --port 8080
Open http://127.0.0.1:8080 for the bundled chat interface. Replace :Q8_0 with :Q6_K for the smaller download. The GGUF contains the base model's chat template. Reasoning may still appear despite requesting --reasoning off; that flag is not a guarantee of final-answer-only output for this checkpoint.
These thread and polling settings performed well on our Mac. They are a starting point for measurement on your hardware, not a universal speed setting. Training used 2,048-token windows; the 4,096-token serving context above has not received a long-context quality evaluation.
For an explicit download and file-integrity check:
hf download aceflooder/LFM3-1.7B-OT3-2M-GGUF \
LFM3-1.7B-OT3-2M-Q8_0.gguf --local-dir ./lfm3-ot3
| File | SHA-256 |
|---|---|
| Q8_0 GGUF | 359a6d6ef3e8bed7ea1df5129e4144981987580237215d7a900c201b060cf48e |
| Q6_K GGUF | 75ad583be9937ecad2304edabd7b710cb82b7d242064de7a03fb9e9570d93d82 |
The complete release file manifest is SHA256SUMS.
What was measured
| Variant | GB | ARC /32 | Math /32 | Custom /8 | Total /72 | Decode tok/s |
|---|---|---|---|---|---|---|
| Original F16 | 3.467 | 22 | 26 | 6 | 54 | 63.0 ± 2.4 |
| Trained F16 | 3.467 | 22 | 30 | 6 | 58 | 63.3 ± 2.3 |
| Trained Q8_0 | 1.846 | 23 | 29 | 6 | 58 | 99.8 ± 9.1 |
| Trained Q6_K | 1.428 | 23 | 27 | 6 | 56 | 107.6 ± 12.4 |
| Original Q4_K_M | 1.100 | 19 | 26 | 5 | 50 | 132.7 ± 15.9 |
| Trained Q4_K_M | 1.100 | 21 | 13 | 4 | 38 | 134.2 ± 15.4 |
Speed is mean ± sample standard deviation across four rounds, measured serially with stock llama.cpp on a 14-core CPU / 20-core GPU M4 Pro, 24 GB unified memory. Protocol: pp512/tg512, GPU offload, one CPU thread, polling zero, batch/microbatch 256, F16 KV. Model order rotated and reversed across rounds. Background CPU workloads and substantial time/order drift remained; these are observed results on this machine, not fixed device specifications. Throughput is a synthetic decode measurement, separate from the quality screen and chat request latency.
The quality screen combines:
- 32 ARC-Challenge test cases: raw candidate-letter log-probability ranking. This is not the official answer-text
accuracy_normprotocol. - 32 GSM8K test cases: greedy generation with a 512-token cap; a final
#### <number>marker is required. Token-limit stops fail. - 8 custom instruction probes: strict JSON/exact-text checks with a 96-token cap. These are not official IFEval results.
Seed: 20261031; temperature zero; repeat penalty 1; prompt caching disabled. The grader reads final text after the last </think> and rejects unfinished thinking. Requested thinking disablement did not reliably suppress reasoning.
Trained F16 improved from 54 to 58 passes: seven recoveries and three regressions. The descriptive paired-bootstrap 95% interval for its +5.56 percentage-point difference is −2.78 to +13.89 pp. Q8 matched the trained F16 total with one recovery and one regression; its difference interval is −4.17 to +4.17 pp. Q6 lost two net passes versus trained F16; its interval is −9.72 to +4.17 pp. These intervals are exploratory and unadjusted for model selection.
Original quality runs used ten CPU threads/polling 50; trained runs used one thread/polling zero. A rerun of original Q4 at the latter settings reproduced all 72 output strings. The final speed comparison above used matched settings for every model. The quality screen was frozen before training, but its later reuse for precision selection means it is not an independent final holdout.
Training recipe and provenance
The native 1.729B-parameter model was trained with FP16 PyTorch/MPS and PEFT LoRA, then safely merged into F16 before GGUF quantization. We did not train directly in GGUF.
| Setting | Value |
|---|---|
| Native base | LiquidAI/LFM3-1.7B at ac2586a34f1a1c03329dbdcdefabd8b6478ddaa7 |
| Original GGUF reference | LiquidAI/LFM3-1.7B-GGUF at bad5729bba61d076fff20d2548e62526665af215 |
| Training dataset | OpenThoughts3-1.2M, revision 61bcf9d4eb38b30295efc2021227a63cc5bb34c8 |
| Prepared sample | 500 distinct questions: 250 math, 175 code, 75 science |
| Split | 486 training / 14 validation questions |
| Windows | 2,048 tokens, overlap 256; 3,394 train / 107 validation windows |
| Data actually encountered | 1,044 train windows from 423 unique questions |
| LoRA | Rank 16, alpha 32, dropout 0; 16,468,736 trainable parameters |
| Targets | FFN w1/w2/w3, attention q/k/v/o/gate projections, convolution in/out projections |
| Optimization | AdamW, learning rate 1e-4, weight decay 0.01, gradient clip 1.0 |
| Schedule | 10-update warmup, token-based cosine decay, minimum LR multiplier 0.1 |
| Batch | Microbatch 1, accumulation 4; gradient checkpointing; assistant-only loss |
| Final counters | 261 updates; 1,999,543 committed input positions, 1,748,147 supervised assistant targets |
| Frameworks | PyTorch 2.15.0, Transformers 5.22.1, PEFT 0.21.2; eager attention |
| Time | 137.86 minutes wall clock, including host idle/sleep gaps and two checkpoint-safe resumes |
The 2M name denotes the rounded committed input-position budget, which includes padding. It is not two million unique assistant tokens or a full-dataset epoch. Resume replay added approximately 22,981–39,365 input positions; validation added 95,389 separately. The final complete chunk left 457 positions unused within the committed two-million cap.
Selection audited 30,000 annotations across three pinned shards (00000, 00060, 00119 of 120). It required a two-turn human/assistant conversation, exactly one closed thinking span, a nonempty final answer, and a supported domain; questions were deduplicated. Literal benchmark stems were excluded. This does not establish freedom from semantic duplicates, pretraining contamination or incorrect reasoning. Long traces were split into windows, so this is not full-context reasoning distillation.
Loss on the same fixed eight validation windows fell from 1.15293 to 0.98510 (11,950 supervised targets per check). This is a small diagnostic subset of the 107 prepared validation windows, not a full validation-set result. All 306 adapter tensors changed and were finite at export.
The native and GGUF reference revisions differ. A CPU comparison verified all 286 mapped tensors / 1,728,801,536 elements match after expected storage conversion, with zero numeric or bit mismatches. BF16-to-F16 storage rounded 501,329 source values; maximum absolute conversion error was 2.98e−8.
The originally considered Fable corpus was paused after a structural audit. No Fable data was used in this training run.
Experiments that did not earn a download recommendation
- Trained Q4_K_M: 38/72 versus 50/72 for original Q4. Math token-limit failures rose from six to eighteen under the frozen 512-token budget. This export was smaller and faster than trained F16 but lost too much quality under that protocol.
- Reduced GSQ/RCO research adaptation: 23/72 versus 24/72 for the same mixed allocation before code training, both 0.874 GB. FFN-only Gumbel/Lion calibration improved local weight reconstruction but not this screen. This was a reduced local adaptation, not an official method reproduction or a new GGUF format.
- Separate LoRA applied at runtime to original Q4: 36/72, with twenty math token-limit stops. In a separate paired 512-token server probe it reduced median decode throughput by 22.4%. That timing protocol differs from the table above.
- Private Metal/rollback experiments: packed convolution improved an isolated operator by about 3×, but a dependable extra whole-model gain was not established. The recommended downloads run on stock llama.cpp.
The repository includes the unsuccessful precision results to make the selection reviewable. Those weights are not part of this release.
Optional prompt lookup for copying and editing
Stock llama.cpp prompt lookup can reuse repeated token sequences without a second model:
--spec-type ngram-simple \
--spec-ngram-simple-size-n 4 --spec-ngram-simple-size-m 8
Replace --spec-type none in the server command with these flags when testing repetition-heavy workloads. Four paired rounds on the released Q8 produced:
| Synthetic probe | Median paired request-wall speedup | Completion scope |
|---|---|---|
| Copy | 2.734× | First 512 generated tokens; capped prefix |
| Edit | 1.635× | Completed, 220 generated tokens |
| Reasoning | 0.991× | Completed, 224 generated tokens |
| Explanation | 1.039× | First 512 generated tokens; capped prefix |
All 5,872 compared generated token IDs matched the no-speculation arm across 16 comparisons. This is four synthetic probes, not a task-accuracy benchmark or a general speedup guarantee. The default command leaves speculation off.
Reproduce and inspect
The adapter retains the exact trained tensor bytes. Its published PEFT config uses the public base-model ID and pinned revision in place of the original local path. Original/published hashes and the two config changes are recorded in adapter-publication.json.
The precision metrics, per-case scores, matched runtime samples, training record, data-selection record and source-equivalence check make the measurements inspectable. The scripts directory contains the scoped training and evaluation sources and reproduction helpers. Raw training conversations, ARC/GSM8K question and answer data, and generated reasoning traces are not redistributed here. Custom synthetic probe definitions remain in the scripts.
Download the repository and run these commands from its root. The verification command is CPU-only and needs only Python's standard library. Preparing data additionally requires the recorded training stack plus NumPy, PyArrow, safetensors, Accelerate and huggingface_hub. It downloads pinned upstream material and checks the selected corpus and token/chunk hashes before training.
# Inspect the adapter/evidence/source checksums and recompute score totals.
python scripts/reproduce.py verify
# Reconstruct the exact selected data and token payloads from upstream sources.
python scripts/reproduce.py prepare --work-dir work --download-base
# Start a new local pilot using the recorded recipe and final allocator settings.
PYTORCH_MPS_LOW_WATERMARK_RATIO=0.5 \
PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.8 python scripts/train.py \
--data work/selected/prepared --model work/base-model \
--output work/pilot --device mps --dtype float16 --attention eager \
--batch-size 1 --accumulation 4 --max-processed-tokens 2000000
# Re-run the released Q8 on the same exploratory screen.
python scripts/reproduce.py evaluate \
--work-dir work --runtime /path/to/b11960/bin \
--model LFM3-1.7B-OT3-2M-Q8_0.gguf --variant FT_Q8_0 \
--output work/eval-q8
To merge the published adapter without private optimizer/checkpoint state, use the pinned, clean llama.cpp converter checkout and its conversion dependencies:
python scripts/export_adapter.py \
--base-model work/base-model --adapter adapter \
--llama-source /path/to/llama.cpp --runtime /path/to/b11960/bin \
--output work/export
Use python scripts/reproduce.py --help for matched timing and stock prompt-lookup entry points. Training memory interventions and checkpoint replay are recorded in the training evidence; a fresh run's timing and floating-point trajectory may differ. Converter metadata/build differences may also change re-exported GGUF hashes. Archived executed source hashes are distinguished from portable helper changes. Historical filenames fable_data.py and fable_state.py are shared preparation/state utilities; their presence does not mean Fable data was trained.
The model is intended for local experimentation, evaluation and further fine-tuning. It has not received a broad safety, multilingual, coding-correctness or long-context evaluation. It may produce false answers, malformed structured output or unfinished reasoning. Training-domain proportions do not establish coding or science capability gains.
Credits, license and modifications
Base model and architecture: Liquid AI. Reasoning training data: OpenThoughts3 contributors. Runtime and GGUF tooling: llama.cpp / ggml contributors. Community fine-tuning, evaluation and packaging: aceflooder. This release is not endorsed by the upstream authors.
Modification notice — 2026-10-31: the base weights were modified by the LoRA pilot described above; the adapter was merged and quantized into Q8_0 and Q6_K. Adapter tensor bytes are unchanged from the final checkpoint; its configuration has the two portability edits described above. Public evidence removes local machine paths and prompt/response content.
Weights and derived adapters remain governed by the original LFM Open License v1.0, including its commercial-use conditions. See Liquid AI's license page for its summary and hosting FAQ. OpenThoughts3's dataset card declares Apache-2.0; that does not replace the base model's license. Experiment code is covered separately by its MIT notice; third-party notices are retained in licenses.