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...
The Local AI Stack: Building a Sovereign Machine Learning Workstation with Hyper-V, WSL2, and GPU Virtualization
Minimum price
$19.00
$29.00
About the Book
The Local AI Stack: Building a Sovereign Machine Learning Workstation with Hyper-V, WSL2, and GPU Virtualization
Renting GPU time from AWS costs more than the GPU. Every prompt you send to a cloud API is a prompt someone else logs. If your ML work runs on hardware you don't own, on a network you don't control, then you don't own your ML work.
This is the 140-page engineering reference for building a sovereign, high-performance local machine learning workstation on Windows — CUDA-accelerated, virtualized, and fully under your control. From silicon to CUDA kernel, one stack, one machine, one operator.
What's inside
The book walks you through the full virtualization stack from bare metal to running CUDA workloads:
Hardware prerequisites: SLAT-capable CPUs, NVIDIA Tensor Core GPUs, IOMMU support
BIOS/UEFI configuration for VT-x/AMD-V and VT-d/AMD-Vi virtualization extensions
Hyper-V feature activation via Windows Features and PowerShell Enable-WindowsOptionalFeature
Virtual Machine Platform and WSL2 optional component installation
Linux kernel update package deployment and WSL2 as global default
Ubuntu 22.04 LTS deployment via Microsoft Store or CLI
.wslconfig tuning for CPU cores, RAM limits, and host OS protection
Custom swap file placement on high-speed NVMe for virtualization paging
NVIDIA Windows GPU Driver (Game Ready and Studio) for GPU Paravirtualization
GPU Paravirtualization (GPU-PV) for shared host/VM acceleration
Discrete Device Assignment (DDA) for exclusive GPU passthrough on high-performance VMs
NVIDIA Container Toolkit installation inside WSL2
Docker Desktop with WSL2 backend, plus Podman and Rancher Desktop as open-source alternatives
NVIDIA runtime configuration in daemon.json for CUDA container access
Verifying GPU acceleration inside WSL2 with nvidia-smi
CUDA Toolkit installation with host driver version alignment
cuDNN library configuration for deep learning workloads
Persistent DrvFs mount points for cross-OS dataset access
I/O optimization: relocating training datasets to native EXT4 VHDX for maximum throughput
And more — 140 pages, densely technical, cover to cover
Who this is for
ML engineers building local training and inference infrastructure. AI researchers who want CUDA workloads on hardware they own, not compute they rent. Infrastructure specialists deploying sovereign AI stacks. Windows-based practitioners who refuse to give up their OS to run serious ML work.
You should be comfortable at the command line, familiar with Linux fundamentals, and know your way around BIOS/UEFI settings. This is a technical reference, not a click-by-click beginner tutorial.
Format
Delivered as PDF and TXT. Read the PDF cover to cover, or feed the TXT straight into your own local RAG, grep it, index it, pipe it into your local LLM. The book about local AI infrastructure, ready to be consumed by locally-run AI.
Part of the Sovereign product line
Sits alongside Sovereign Intelligence (local AI blueprint), The Quantization Black Book (4-bit compression at scale), and The Dark Mesh (sovereign off-grid networking). Different layers of the same philosophy: hardware you own, models you run, networks you control.
A note on responsibility
This material is provided as an engineering reference and architectural roadmap, curated from official Microsoft, NVIDIA, and Linux documentation and current industry best practices. Configurations should be adapted to your specific hardware. You are responsible for complying with the licenses of the tools you deploy, and with the laws of your jurisdiction. Build carefully and build for the right reasons.
About the Author
My Leanpub publisher account represents an independent technical publishing portfolio focused on advanced computing and engineering. It includes in-depth books covering CUDA and GPU programming, advanced Qiskit and quantum computing, Android/ADB system engineering, AI infrastructure, automation, quantization, and cybersecurity. The catalog is aimed at developers, researchers, systems engineers, and other technically advanced readers, with a strong emphasis on practical implementations, source code, system internals, and emerging technologies. The account reflects an ongoing effort to publish specialized, professional-level technical knowledge rather than general introductory content.
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
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.)
In fact, authors have earned over $15 million writing, publishing and selling 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.