indiedev-lfm3-1.7b
LoRA SFT of LiquidAI/LFM3-1.7B on 128 reasoning traces from the IndieDev profile of a
250-row distill set, merged to bfloat16 and dequantized from the official 4-bit MLX checkpoint.
One of three planned subsets (Coder / IndieDev / GenAgent).
This is epoch 2 of 3 — the checkpoint with the best full held-out NLL, not the last one.
Training
| base | LiquidAI/LFM3-1.7B-MLX-4bit (4-bit affine g64, dequantized at merge time) |
| method | LoRA, rank 8, 8 of 24 layers, 2.753M trainable (0.159%); gradient checkpointing on |
| data | AJ-Gonzalez/lfm3-distill-250x, config indiedev |
| rows | 128 prompts → 515 train / 37 validation examples; 116 train rows / 12 held-out |
| sequence | 2048 tokens, batch 1, lr 1e-5 (Adam), 515 iters/epoch, 3 epochs = 1545 iters |
| hardware | MacBook Air M1, 8 GB unified memory |
| throughput | 150–172 tok/s (163 tok/s overall), 4h50m for all 3 epochs |
Long assistant traces were chunked, not truncated: each row's rendered conversation was split into 2048-token windows with 256 tokens of the previous window replayed as context, so every token of the source data was trained on exactly once per epoch.
Gradient checkpointing was required on this machine: without it the run hit
kIOGPUCommandBufferCallbackErrorOutOfMemory partway through epoch 1.
Evaluation
Held-out token NLL (lower is better), all 37 held-out chunks:
| model | IndieDev held-out |
|---|---|
| base (4-bit) | 1.818 |
| epoch 1 (515) | 1.643 |
| epoch 2 (1030, released) | 1.640 |
| epoch 3 (1545) | 1.646 |
The three epoch checkpoints span 1.640–1.646, so the choice of epoch 2 over epoch 1 is within
noise. The training-time val printed by mlx_lm.lora uses only 8 validation batches and ranked
epoch 3 best (1.361 vs 1.562 at epoch 1); the full 37-chunk held-out set reverses that, which is
why the full-set number is the selection criterion here.
Generation smoke test (greedy, 512 tokens): coherent launch-plan prose with a phased table, produced at 16.9 tok/s and 3.50 GB peak on the merged bf16 model. As with Coder, bf16 is for merging/ablation/upload — re-quantize to 4-bit for interactive use on 8 GB.
No benchmark suite was run.
Usage
from mlx_lm import load, generate
model, tokenizer = load("AJ-Gonzalez/indiedev-lfm3-1.7b")
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Sketch a launch plan for a two-person SaaS product."}],
add_generation_prompt=True,
)
print(generate(model, tokenizer, prompt=prompt, max_tokens=2048))
Expect long normative reasoning (The user asks… We need to…) inside <think> before the answer,
matching the teacher traces.
Weights are MLX-format safetensors as written by mlx_lm.fuse --dequantize (the repo keeps
the base model's modeling_lfm3.py / configuration_lfm3.py). Load with mlx-lm on Apple
silicon.
GGUF
indiedev-lfm3-1.7b-Q4_K_M.gguf (1.04 GiB, 5.05 bpw) is in this repo. It was converted from the
merged MLX bf16 with llama.cpp's convert_hf_to_gguf.py and quantized with llama-quantize.
llama-cli -m indiedev-lfm3-1.7b-Q4_K_M.gguf \
-p "Sketch a launch plan for a two-person SaaS product." -n 512 --temp 0
Measured on the M1: 30.0 tok/s for a 96-token greedy smoke test (short run, not a benchmark).
The MLX source needs the LFM3 converter's short-conv fix (squeeze() rather than squeeze(1))
so blk.N.shortconv.conv.weight reaches the expected 2D shape.
Limitations
- 128 source prompts, 5 topic groups, 3 epochs. This will not teach a new capability; it biases an existing model toward a reasoning-then-answer format.
- The validation set is 12 prompts (37 chunks); epoch differences are within noise.
- Traces were produced by
xiaomi/mimo-v2.6-pro; the prompt set originates inTeichAI/claude-4.5-opus-high-reasoning-250x. The target style is second-hand. - No safety tuning, no tool-calling training, no long-context (>2048) training.
- Profiles overlap by design: IndieDev ∩ Coder = 61 rows, IndieDev ∩ GenAgent = 67 rows.
Licence
Base model: LFM Open License v1.0 (LiquidAI/LFM3-1.7B). Training data:
AJ-Gonzalez/lfm3-distill-250x (config indiedev), derived from
xtools-at/Xiaomi-MiMo-2.6-Pro-High-Reasoning-250x, listed as licence "other" on the Hub —
check that dataset's terms before redistributing the weights commercially.