local-ai·lab
local-ai-lab - a neural network flowing into ascending learning steps

About this project

local-ai-lab teaches how modern AI actually works by building it from scratch - small, readable programs you run on your own machine. It's one piece of a broader body of work: local-first, developer-focused, AI-native tools.

Why it matters

Turn "we use AI" into a capability your team owns

Every roadmap now says "add AI." The teams that pull ahead are the ones who actually understand what they ship. local-ai-lab turns the buzzword into an in-house capability your engineers own outright - built from first principles, running on hardware you control, with no per-seat lock-in and no data leaving the building.

What your developers walk away able to do
  • Ship production-grade retrieval (RAG) features in-house, with no black box between you and your data
  • Wire your own tools into any AI assistant using Model Context Protocol servers
  • Make AI quality a tracked number in CI, so "seems better" becomes measurable
  • Run the entire stack 100% offline, on hardware you already pay for
And the risks it quietly defuses
  • Prompt-injection attacks that hijack your assistant and exfiltrate secrets
  • Silent quality regressions slipping to customers unnoticed
  • Runaway API bills and single-vendor lock-in
  • The "nobody here understands our AI stack" audit risk

The payoff: a team that treats AI as a primitive it controls, not a remote black box it hopes works - the difference between renting AI and owning it.

About the author

local-ai-lab is built and maintained by Nik Reljin - an engineer who builds local-first, developer-focused AI tools, and who likes nothing more than teaching how they work. A former college educator with a soft spot for new technologies, he now helps engineers build with modern AI through team trainings, one-on-one mentoring, talks and workshops, and self-paced courses like this one.

The approach is the same whoever's in the room: build the thing from scratch first. Once you've written a retriever, a chunker, and a provider adapter by hand, every framework that wraps them stops looking like magic - you can read it, judge it, and decide when it's worth the dependency. Every lesson here is designed to leave you with that understanding, not just a working snippet.

The through-line

The course grew out of a simple preference that runs through everything below: software should be understandable, should run on your own hardware, and should treat AI as a primitive you control - not a remote black box. The projects span model finetuning and compression, agent and inference tooling, AI-assisted documentation, and the everyday developer utilities that hold a workflow together.

Built and maintained by Nik Reljin. The full catalog lives on GitHub; the selection here is deliberately small - the ones most relevant to the themes of this course.

Local & applied AI

finetorch

A Rust-native LLM finetuning toolkit: LoRA / QLoRA, dataset preparation, training orchestration, and evaluation - designed to run on a single GPU.
View on GitHub →

shrink-llm

An end-to-end toolkit for compressing large models - quantization, pruning, and knowledge distillation - so they deploy efficiently on phones and edge devices.
View on GitHub →

ai-runner

Pick and run Ollama models on your own machine from a simple UI - local inference without the setup friction.
View on GitHub →

agentvault

A CLI/TUI that manages and proxies AI agents, API keys, and instructions behind one controlled gateway.
View on GitHub →

AI-assisted developer tooling

claude-docsmith

Generate user and developer documentation straight from a repository, using Anthropic Claude or a local Ollama model.
View on GitHub →

docforge

Auto-generate references and end-user guides from any codebase on every push - CI-driven, and designed to be vendored as a submodule.
View on GitHub →

Developer tools

vellum

A full-TUI Markdown reader for the terminal: syntax-highlighted code, inline images, clickable links, search, and navigation history.
View on GitHub →

git-pulse

A self-hosted dashboard that surfaces contributor impact, repo health, and code quality from commit analytics and PR signals.
View on GitHub →

NikOS

Neural Innovation for Knowledge OS - one command turns a fresh Xubuntu / Ubuntu 24.04 install into a fully configured AI dev workstation.
View on GitHub →

leak-lock

A VS Code extension that scans git history for secrets and credentials (Nosey Parker) and scrubs them from history (BFG) - security without leaving your editor.
View on GitHub →
Start Lesson 1: RAG →

Privacy & analytics

This site uses GoatCounter for privacy-friendly usage statistics: no cookies, no persistent identifiers, and no cross-site tracking. It records aggregate pageviews with country-level geography (derived from your IP address transiently at ingest, then discarded rather than stored), plus a few anonymous interaction events - outbound-link and PDF (cheat-sheet) clicks, and how far through a lesson's slides a visit gets. With no cookies or persistent identifiers, there's no consent banner to click through. See GoatCounter's privacy policy.