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
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.
Minimum price
$18.00
$18.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
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/
https://github.com/porucznikswext-source
Click the buttons to get the free sample in PDF or EPUB, or read the sample online here
Also by the Author
Mastering NVIDIA CUDA: Expert GPU Programming
CUDA C++: High-Performance GPU Programming
From Companion to Control: Weaponizing AI
Modern Browser Fingerprinting: Techniques and Code
Mastering AI Agents: Hands-On Production Code
Linux GPU Drivers from Scratch
Engineering Sovereign LLMs: From Data to Deployment
Coding CERN: A Technical Developer's Guide
High-Performance Real-Time Systems in .NET
Blockchain Security: Attack and Defense
Building Advanced Algorithmic Crypto Trading Systems
Smart Contract Security: Finding DeFi Vulnerabilities
Agentic Cybersecurity: Engineering Autonomous AI Defense
Advanced Aerospace Engineering: Lockheed & Partners
Mastering AWS: Advanced Python Engineering
Engineering Sovereign Dark Mesh Networks
Advanced Cryptography: Professional Implementation Handbook
Advanced Automation: 50-Chapter Master Script Package
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.