Skip to content

WSL (Windows Subsystem for Linux)

A built-in Linux environment in Windows. It allows running a full Linux system directly on a Windows machine without a virtual machine.

Why for AI

Many AI tools are optimized for Linux:

  • vLLM primarily runs on Linux;
  • CUDA in Docker on Windows requires WSL 2;
  • training and inference are often more convenient in a Linux environment.

WSL 2 vs WSL 1

WSL 2 uses a real Linux kernel — it is faster and more compatible. For GPU tasks, WSL 2 + NVIDIA driver is required.

Typical Scenario

  1. Enable WSL 2.
  2. Install Docker Desktop with WSL backend.
  3. Run Linux containers with GPU directly on Windows.

See Also

← All Terms