A pipeline that gives a Python CLI a -w flag taking plain English: generates training data from a flag grammar, audits it for leakage against held-out prompts, fine-tunes a QLoRA adapter on a small Gemma base, and ships a 4-bit GGUF that llama.cpp runs on the CPU. Docker is the worked example.
- 62.9%Held-out accuracy
- 19.0%8-shot baseline
- 1.85 sAnswer time, laptop CPU
Trade-offs
- Local-only means no GPU and no network at answer time, which forces a small model and makes the dataset and evaluation the hard part rather than the model.
- One adapter per tool keeps each file small over a shared base, but composition still fails: two flags in one command land at 50% and three or more at 17%.
Q&A3
A contamination audit across four channels runs before training and stops the run on any leak, splits go by target command rather than by row, and every run ships its per-generation records so the numbers replay with no GPU.
K-quants work on 256-element superblocks and the embedding width is 1152, not a multiple of 256, so every tensor with a 1152-long row falls back to a non-K quant, about 60% Q5_0 by parameter count.
Only Docker has an adapter, the weights repo is still private, packaging per library is not built, and the generator still needs hand-written flag specs instead of reading a tool's --help.
Links
- GitHub(opens in a new tab)github.com/pranavkumaarofficial/nlcli-wizard
- Eval methodology(opens in a new tab)github.com/pranavkumaarofficial/nlcli-wizard/blob/a7c11bdb0f487dead6629c120ca6ef1d4ceb7acf/docs/EVAL_METHODOLOGY.md
- Reddit thread(opens in a new tab)reddit.com/r/LocalLLaMA/comments/1or1e7p/i_finetuned_gemma_3_1b_for_cli_command
Built by
Reviews
Loading reviews
More in Fine-tuning
See all 7 →
MLX LoRA StudioNative Mac app for LLM fine-tuning on Apple Silicon- AGmind-MLRussian models fine-tuned on one GPU for a self-hosted RAG stack on AMD
- VibeVoiceFusionMulti-speaker voice generation, transcription and LoRA training on a home GPU
- canifinetuneGPU memory planner for LoRA and QLoRA fine-tunes on one consumer card
MelixLocal model workspace for Apple Silicon: serve, fine-tune, benchmark, evaluate
TuneKitColab notebook generator for fine-tuning small language models
More in CLI tools
See all 74 →- ZeroboxDeny-by-default process sandbox with per-host secret injection
blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
jc-rsjc rewritten as one static binary that turns command output into JSON- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
quiverDump, load, copy and stream MySQL, MariaDB and TiDB from one consistent snapshot
haxMinimalist terminal coding agent written in C
More in Local inference
See all 43 →
GlydLossless compression that keeps bf16 weights and KV cache smaller on the GPU
BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory
AnubisNative macOS app for benchmarking local LLMs on Apple Silicon- PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs
- CarWatchA car as a chat agent: Raspberry Pi 5 running a local 35B model in the car
AlzeoOne-command installer that turns a DGX Spark or GB10 box into an AI server