Screenshot of a parameter table: base model Qwen/Qwen2.5-Coder-1.5B-Instruct, LoRA layers 8 (2.6M trainable params), 125 training examples (65 QA, 60 negative), 7 unique answer templates, 500 training iterations, best validation loss 0.122 and best training loss 0.078.

🧠 PoC shipped: local fine-tuned model as structured repo memory — CLI-first, Pi agent integration included.

Local inference doesn’t win by replacing frontier models. It wins by absorbing the boring, repeated, high-context/hard-to-dig parts of the workflow — the stuff a frontier model is overkill for.

Apple Silicon + MLX + a new generation of ~2B models have quietly crossed a threshold: good enough for narrow tasks, cheap enough to run constantly, private by default. The tradeoff is flipping. Contextual repo memory is a perfect place to feel that.

Every mature codebase has a story buried in its git history:
→ what keeps breaking
→ which files move together
→ where coverage was historically weak
→ what a coding agent should know before touching something risky

That’s what I’ve been testing with repo-arch — a self-contained CLI that mines the commit tree, generates dataset cards, trains a small LoRA adapter locally, and exposes it as a fast repo-memory layer to any coding harness.

First real run on tradingview-mcp-server:

47 commits mined
18 insight cards
125 training examples
LoRA on Qwen2.5-Coder-1.5B-Instruct (MLX)
val_loss → 0.122

Useful answers on the first pass. Commit-grounded, not hallucinated.

The pattern that’s interesting:
small local model for fast repo recall → bigger OSS one as workhorse → frontier model for advisory → coding agent as the harness that combines them.

The local model becomes a cheap reflex layer. Keep the expensive model for where reasoning actually matters.

Wired it into my Pi setup, but the tool is intentionally CLI-first — any harness, a few commands, no MCP ceremony.

Two retrieval routes working:
✅ git-history traversal over the mainline
✅ dataset cards + embeddings as a second path

Repo: https://github.com/fiale-plus/repo-arch
Example PR: https://github.com/fiale-plus/tradingview-mcp-server/pull/49

Curious who else is testing local adapters for narrow dev-tooling tasks.

#LocalAI #SmallModels #DevTools #LoRA #MLX #CodingAgents #OpenSource

LinkedIn ↗

← All posts