The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
Cloud GPU rental costs more than compute time. It can also introduce recurring expenses, external dependencies, and additional questions about where your prompts, datasets, and model artifacts are processed. A local machine learning workstation gives you direct control over the hardware, software stack, and data workflows. The Local AI Stack is a technical engineering reference for building a Windows-based machine learning workstation with Linux environments, NVIDIA GPU acceleration, and virtualization. Across 140 pages, it follows the stack from firmware configuration and Windows virtualization features to CUDA-enabled containers, model inference, storage optimization, and system recovery.
Minimum price
$18.00
$18.00
About the Book
Cloud GPU rental costs more than compute time. It can also introduce recurring expenses, external dependencies, and additional questions about where your prompts, datasets, and model artifacts are processed. A local machine learning workstation gives you direct control over the hardware, software stack, and data workflows. The Local AI Stack is a technical engineering reference for building a Windows-based machine learning workstation with Linux environments, NVIDIA GPU acceleration, and virtualization. Across 140 pages, it follows the stack from firmware configuration and Windows virtualization features to CUDA-enabled containers, model inference, storage optimization, and system recovery.
The book covers the core components of a local AI environment: CPU virtualization capabilities, BIOS/UEFI settings, Hyper-V, Windows Subsystem for Linux 2, Linux distributions, NVIDIA drivers, CUDA, and deep-learning libraries. You will explore WSL2 resource management through .wslconfig, CPU and memory limits, swap placement, virtual disk storage, and access to datasets across Windows and Linux. The storage chapters examine when to use DrvFs mounts, dedicated VHDX files, and native Linux filesystems for demanding workloads. GPU acceleration receives particular attention. The guide covers NVIDIA driver configuration, GPU access from WSL2, CUDA Toolkit and cuDNN compatibility, and GPU-enabled containers using Docker Desktop and the NVIDIA Container Toolkit. It also examines GPU paravirtualization, GPU partitioning, and Discrete Device Assignment for Hyper-V environments, with the understanding that availability and configuration depend on the hardware, drivers, Windows edition, and virtualization setup.
Beyond the virtualization layer, the book moves into the tools needed to develop, train, and run machine learning workloads. Topics include Python environment management with Conda or Mamba, PyTorch and TensorFlow installation, VS Code Remote – WSL, JupyterLab, WSLg, Hugging Face model management, Git LFS, and local model runtimes such as Ollama and LM Studio. The infrastructure chapters address virtual networking, SSH access, PowerShell automation, performance monitoring, backup and recovery, reproducible version tracking, and Windows Firewall hardening. You will also find guidance on benchmarking a local language model and documenting the configuration needed to reproduce your results. The goal is to help you understand how the layers interact, identify configuration constraints, and build a workstation suited to your own hardware and workload.
This reference is intended for machine learning engineers building local training and inference environments, AI researchers who want to use their own hardware, infrastructure specialists designing locally controlled AI systems, and Windows practitioners who need Linux and CUDA without abandoning their existing operating system. You should be comfortable using the command line, understand basic Linux concepts, and be able to navigate BIOS/UEFI settings. This is a technical reference for readers who want to configure and understand the stack—not a beginner's click-by-click introduction.
The book is delivered in PDF and plain-text formats. Use the PDF as a structured technical reference, or process the TXT edition with local search tools, scripts, indexing pipelines, or your own locally running language model. The text edition is particularly useful for building a private technical corpus: you can grep it, index it, or incorporate it into a local retrieval workflow without needing to send the book's contents to a cloud-based AI service.
The Local AI Stack complements Sovereign Intelligence, The Quantization Black Book, and The Dark Mesh. Together, these titles explore different layers of a locally controlled technology environment: AI architecture, model quantization, workstation infrastructure, and off-grid networking. The common principle is practical control over the systems you build, the models you run, and the infrastructure on which your work depends.
This material is an engineering reference and architectural roadmap informed by Microsoft, NVIDIA, and Linux documentation. The exact procedures and supported configurations can change with Windows releases, drivers, GPU models, and virtualization features. Verify compatibility against your own environment before applying system-level changes. Readers are responsible for adapting configurations to their hardware, following applicable software licenses, and complying with the laws of their jurisdiction. Build locally. Understand every layer. Keep control of your stack.
About the Author
I am an independent technology developer and systems engineer who built my technical path largely through self-directed engineering, experimentation, and continuous learning outside a traditional academic or corporate technology career.
My professional background began far from the technology industry. I spent years working in manufacturing, while independently developing my knowledge of software engineering, computer systems, and advanced computing. Over time, that self-directed work evolved into a broad technical practice spanning autonomous AI, cybersecurity, systems programming, GPU computing, automation, and advanced computational architectures.
Today, I design, build, and publish projects involving agentic AI, autonomous defense systems, SIEM/EDR integration, secure software architecture, C/C++, Go, Python, CUDA, quantum computing, cryptography, and privacy-oriented local AI infrastructure.
I approach technology from a systems perspective — from low-level software, memory architecture, and GPU performance to distributed systems, intelligent agents, and high-assurance security architectures.
I also explore aerospace and high-assurance software concepts, including safety-critical architectures, multi-level security, cross-domain solutions, and advanced computational systems.
Alongside active development, I publish long-form engineering projects covering AI, cybersecurity, cloud engineering, quantum computing, GPU programming, cryptography, automation, blockchain, and aerospace engineering.
My current focus is on autonomous software agents, privacy-first local infrastructure, advanced computing, and reliable systems designed to operate with a high degree of independence.
I am open to opportunities involving AI engineering, cybersecurity, software engineering, autonomous systems, HPC/GPU computing, and advanced technology development.
https://businessofmachines.blogspot.com/
https://learn.microsoft.com/en-us/users/machinadeusex/
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
Also by the Author
Engineering Sovereign LLMs: From Data to Deployment
Agentic Cybersecurity: Engineering Autonomous AI Defense
Mastering NVIDIA CUDA: Expert GPU Programming
Mastering LLM Quantization: Architecture and Code
CUDA C++: High-Performance GPU Programming
Linux GPU Drivers from Scratch
Blockchain Security: Attack and Defense
The Solana MEV Playbook: Building High-Frequency Arbitrage and MEV Bots in Rust
Mastering ELF: From Bytes to Execution
Building a Native LLM Inference Engine
Modern Browser Fingerprinting: Techniques and Code
Mastering AI Agents: Hands-On Production Code
Coding CERN: A Technical Developer's Guide
High-Performance Real-Time Systems in .NET
Building Advanced Algorithmic Crypto Trading Systems
Smart Contract Security: Finding DeFi Vulnerabilities
Advanced Aerospace Engineering: Lockheed & Partners
Mastering AWS: Advanced Python Engineering
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.