
LoRA Fine-Tuning LLMs: A Practical Guide from Dataset to Eval Gate
A hands-on LoRA fine-tuning walkthrough: build a clean dataset, pick a rank, train with PEFT and TRL, and gate the merge on an eval harness instead of vibes.

A hands-on LoRA fine-tuning walkthrough: build a clean dataset, pick a rank, train with PEFT and TRL, and gate the merge on an eval harness instead of vibes.

Sandbox every AI agent tool call: per-call sandbox schemas, isolated execution, environments with no secrets, and output scanning before results come back.

A governance model for rolling out LLM assistants in a large org: a four-stage rollout pipeline, one control plane, and an eval gate for model changes.

A layered playbook for defending LLM agents against prompt injection: provenance labels, spotlighting, least-privilege tools, signed gates, red-team checks.

cargo flamegraph showed 34% of a Rust LLM token batcher's time in String allocations; SmallVec<[u8; 32]> cut allocations 74% and p99 latency 19%.

GGUF Q4_K_M, AWQ and GPTQ 4-bit variants of one 8B model benchmarked for perplexity and serving throughput - when each wins and when 4-bit breaks.

Prompt injection turns agents into exfiltration channels. The fix is egress policy on tool calls: deny-by-default hosts, payload scans, budgets, audit logs.

The regression-gates post assumes a gate suite exists; this one builds it: PII scrub, MinHash dedup, risk-tier labels, and a frozen 400-prompt golden set.

LoRA and QLoRA cut GPU memory 3-5x and training cost 3-6x versus full fine-tuning. See where their eval scores match and how to pick per task.

pprof alloc_space traced 2.87 GB of garbage per second in a Go log parser to one string concatenation; a zero-copy rewrite cut it to 513 kB and CPU by 94%.