BRK388 · Breakout
Build and deploy local AI at scale across enterprise PCs w/ Windows ML
Speakers: Daniel Freedman, Pawan Tahiliani, Anastasiya Tarnouskaya
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
The session covers Windows ML, the generally available local inferencing framework across CPU, GPU and NPU from AMD, Intel, NVIDIA and Qualcomm, and the Windows ML CLI for preparing, optimizing and benchmarking models, including from GitHub Copilot CLI. It introduces the experimental Windows ML Runtime APIs (Windows Native Inferencing) built on MLIR and the DirectX Compute Graph Compiler (DXCGC), with GPU shader fallbacks and PIX profiling. It also introduces experimental Windows ML Task APIs based on llama.cpp that accept GGUF and Hugging Face safetensors models and expose OpenAI-compatible local endpoints. Demos show NPU optimization of an embedding model, an offline CLIP+LLM kiosk running the same EXE on four platforms, and GitHub Copilot CLI coding offline against a local Qwen 27B model. Napster and Sightful Spacetop describe their use of Windows ML.
Best for: Developers and architects building or deploying local AI models on Windows PCs who need to understand the GA ONNX Runtime path and the new experimental native inferencing and llama.cpp-based APIs.
New material starts at 06:57. After the intro, the Napster story and the overview of design pillars, the first hands-on demo starts here: optimizing and benchmarking an embedding model for a Qualcomm NPU with Windows ML CLI skills.
Where to skip: Skip to 06:57 for the NPU optimization demo; the core is 14:20–28:24 (Runtime APIs, DXCGC architecture, the offline kiosk demo and the Task APIs) plus the offline GitHub Copilot CLI demo at 28:24. The calling-pattern section at 12:06 is optional, and the intro, the Napster story and the closing recap can be skipped.
Chapters (12)
- 00:02 Recap Depth 100 · Novelty 1/3
Windows ML recap, session agenda, hybrid intelligence and Microsoft Foundry on Windows
The speakers introduce Windows ML as the generally available, unified local AI inferencing framework built with AMD, Intel, NVIDIA and Qualcomm across CPU, GPU and NPU. They preview the agenda: updates to the in-market platform, the new experimental Windows native inferencing APIs and Llama.cpp-based generative AI support. They position hybrid intelligence (cloud for the largest workloads, local for the rest) and list the benefits of local AI: privacy, latency, offline use and lower token costs. Windows ML is placed within Microsoft Foundry on Windows next to the Windows AI APIs (inbox models) and Foundry Local (pre-optimized open-source models).
- 03:40 Customer story Depth 200 · Novelty 1/3
Napster: on-device agent avatars rendered locally with Windows ML
A Napster product lead explains that the Napster app renders an agent's face on the device with local inference on Windows ML, giving lower latency and no cloud inferencing cost. Napster builds once and deploys across AMD, Intel, NVIDIA and Qualcomm PCs. Its engineers use the Windows ML CLI to measure performance of ONNX generative AI models, and combine local inference with Frontier models through Microsoft Foundry.
- 05:03 Deep dive Depth 300 · Novelty 1/3
Windows ML design pillars: scale, performance, deployment and the Windows ML CLI
Windows ML acts as a hardware abstraction layer so workloads scale across chipsets without integrating individual vendor SDKs, with ONNX Runtime integration for flexibility. Performance improvements arrive through hardware vendor execution providers, and deployment relies on a system-wide copy of the runtime and execution providers plus APIs that download the right bits for the hardware, keeping app size small. The Windows ML CLI is described as a one-stop toolchain and set of agent skills to prepare, optimize and benchmark models, usable directly or via GitHub Copilot.
- 06:57 Demo Depth 300 · Novelty 2/3
Demo: optimizing and benchmarking an embedding model for a Qualcomm NPU with Windows ML CLI
For a Fabrikam Electronics customer-support scenario, the BGE base EN v1.5 embedding model is downloaded from Hugging Face and built (optimized, quantized, compiled) for the QNN execution provider on a Surface Laptop for Business with a Qualcomm NPU, driven from GitHub Copilot CLI with Windows ML CLI skills. The baseline benchmark shows a cosine value of only 0.38 and about 17 ms per inference; the auto-optimize skill produces a model with much better accuracy and latency. In the sample Agent Assist app the baseline answers about 4% correctly above the 11 ms threshold, while the optimized model is accurate and below the threshold.
- 12:06 Deep dive Depth 300 · Novelty 1/3
Windows ML calling pattern: NuGet, certified execution providers, device policies
The standard calling pattern starts with installing the Windows ML NuGet package (standalone or via the Windows App SDK) and calling EnsureAndRegisterCertifiedAsync to find, download and register certified execution providers that passed quality tests. An execution provider is chosen via a policy such as prefer NPU with CPU fallback, or selected manually for a specifically tuned model. The rest uses standard ONNX Runtime APIs (load model, create session, bind input, run). A slide lists AMD, Intel, NVIDIA and Qualcomm improvements since Build in performance, generative AI/LLM support, efficiency and memory.
- 14:20 New Depth 400 · Novelty 3/3
Experimental Windows ML Runtime APIs: Windows native inferencing built on MLIR and DXCGC
Pawan introduces the experimental Windows ML Runtime APIs (Windows Native Inferencing) built on MLIR, a layered compile approach that lowers a platform-agnostic representation to hardware-specific code. The APIs preserve Windows data types and tensorization, are meant to be durable across hardware, frameworks and inferencing engines, and support custom multi-model pipelines. Underneath is the DirectX Compute Graph Compiler (DXCGC) with unified resource management, PIX profiling and shader fallbacks; the Windows ML CLI converts models to portable MLIR offline or at runtime, and existing ONNX Runtime APIs remain compatible.
- 17:26 Deep dive Depth 400 · Novelty 2/3
Prepare-compile-execute: why vendor-specific backends fall short and how DXCGC unifies them
Local execution involves prepare, compile and execute, and each vendor (OpenVINO, MIGraphX/Vitis, TensorRT/CUDA, QNN) has its own SDK, causing inconsistent quality and stack idiosyncrasies. Today's Windows ML with the CLI unifies preparation, but vendor backends still cause varying compile times, execution quality and debugging. Adding DXCGC as a backend gives a Windows-native execution stack around a portable IR contract with deep DirectX integration, more effective use of system resources, GPU shader fallbacks so new operators always run, and debugging and profiling with PIX.
- 19:58 Demo Depth 400 · Novelty 2/3
Demo: offline lost-and-found kiosk with CLIP and LLM on Windows ML Runtime and DXCGC
With Wi-Fi off, a fairground lost-and-found app uses a CLIP vision model to identify a found blue water bottle and its features, stores it in a shared vector embedding inventory, and matches a spoken-style lost-item description via a language model. The same EXE runs unchanged on four platforms (NVIDIA, Qualcomm, AMD, Intel devices). An early preview runs the non-LLM scenario on the GPU and the LLM on the NPU simultaneously; GPU support is available today as experimental while NPU is still in early development. A code sample shows creating a runtime, adding CLIP as a pipeline stage, binding inputs/outputs and reading embeddings.
- 24:33 New Depth 400 · Novelty 3/3
Experimental Windows ML Task APIs: llama.cpp, GGUF, OpenAI endpoints and watermarking
Citing over 3 million open-source models on Hugging Face, Anastasiya introduces experimental Windows ML Task APIs that pair llama.cpp ecosystem reach with deeper DXCGC optimizations over time. Developers can bring GGUF or Hugging Face safetensors artifacts directly and run them via native task APIs or OpenAI-compatible endpoints, with watermarking support for content provenance. Code shows starting a local WinMLServer and calling it with the OpenAI SDK (a one-line endpoint change), or using the in-process text generation API (target, load, tokenizer session, prompt, stream tokens); the same pattern applies to speech recognition with Whisper and typed decision models.
- 28:24 Demo Depth 300 · Novelty 3/3
Demo: offline local coding with GitHub Copilot CLI on a Qwen 27B model served by Windows ML
On a Lenovo Legion Pro 7 with an RTX 5090 GPU (24 GB VRAM), GitHub Copilot CLI points to a local OpenAI-compatible Windows ML server serving a Qwen 27B model, with Wi-Fi off; this is a sneak preview of something rolling out over the next few days. The model answers a GPU vs NPU vs CPU question quickly, then fixes a credit-card masking bug in a Fabrikam case-notes app and runs the tests. It then adds a light mode toggle across several files, all on the local GPU with no token costs.
- 34:38 Customer story Depth 200 · Novelty 2/3
Sightful Spacetop: AR travel mode models running on Windows ML Runtime APIs and DXCGC
Daniel Freedman of Sightful presents Spacetop, a private, portable 100-inch virtual workspace, demoed live by the CEO on a Surface device with Intel Panther Lake. Travel mode keeps screens anchored on a moving plane using machine learning models running in real time on the laptop. Sightful is bringing travel mode to Windows ML: the Windows ML Runtime APIs load and run the models while DXCGC compiles them with hardware-specific optimizations across CPU, GPU and NPU, replacing per-vendor integration and validation.
- 38:29 Closing Depth 100 · Novelty 1/3
Summary: GA ONNX Runtime path, experimental Runtime and Task APIs, feedback and related sessions
The speakers recap: for production, use the generally available Windows ML ONNX Runtime APIs across CPU, GPU, NPU and all four silicon vendors; for experimentation, the new Windows ML Runtime APIs with DXCGC and the Task APIs pairing llama.cpp with DXCGC, available in the latest Windows ML experimental release. An update adding local coding scenarios follows in a few days, and the Windows ML CLI supports all workflows. They ask for feedback and point to related local AI sessions (BRK389, THR888, BRK255).
Announcements (14)
-
Windows ML CLI agent skills (use-winml-cli)
New agent skills that teach GitHub Copilot which Windows ML CLI commands to use for downloading, building, optimizing and benchmarking models.
Speaker’s quote (at 07:53)
„Is one of our new skills. Yeah, we've been continuously rolling out new skills based off of what we've been hearing from developers.“
-
Windows ML Runtime APIs (Windows Native Inferencing)
Experimental Windows-native inferencing APIs built on MLIR that preserve Windows data types and are designed to be durable across hardware, frameworks and engines.
Speaker’s quote (at 15:17)
„let me introduce you to our Windows ML Runtime APIs, Windows Native Inferencing built on MLIR, available today for you to experiment with.“
-
DirectX Compute Graph Compiler (DXCGC)
Microsoft's MLIR-based compiler underneath the Windows ML Runtime APIs, providing unified resource management, scheduling, profiling and shader fallbacks via DirectX.
Speaker’s quote (at 15:52)
„Underneath all of this is DirectX Compute Graph Compiler, Microsoft's MLIR-based compiler optimized for that ecosystem.“
-
Windows ML Runtime custom pipelines
Custom pipelines that stitch multiple models together into multi-model experiences.
Speaker’s quote (at 15:52)
„there are custom pipelines that allow you to create multi-model experiences and stitch them together to create new features“
-
Windows ML CLI conversion to portable MLIR
Converts models to the portable MLIR format either offline with the CLI or at runtime with WinML.
Speaker’s quote (at 16:26)
„allows you to convert your models to that portable MLIR format, either offline during preparation with CLI or during runtime with the help of WinML“
-
DXCGC GPU shader fallbacks
GPU shader fallbacks ensure that new operators in new models always run.
Speaker’s quote (at 19:32)
„We also have GPU shader fallbacks, which means that if a new model comes up with new operators using GPU shader fallbacks, they will always work.“
-
DXCGC NPU support
Running Windows ML Runtime/DXCGC workloads on the NPU alongside the GPU, shown as an early preview.
Speaker’s quote (at 23:38)
„GPU is available today and NPU is still early development, but I wanted to show you on my very device“
-
Windows ML Task APIs
Experimental high-level APIs that run new open-source models via llama.cpp and DXCGC at the speed of the open-source ecosystem.
Speaker’s quote (at 25:36)
„we're introducing new experimental Windows ML task APIs that will enable new workloads at the speed of the open source ecosystem“
-
GGUF and Hugging Face safetensors support
GGUF or Hugging Face safetensors artifacts can be run directly with the Windows ML Task APIs.
Speaker’s quote (at 26:02)
„take its GGUF or Hugging Face Save Tensors artifact and bring that directly to run with the Windows ML task APIs“
-
OpenAI-compatible local endpoints (WinMLServer)
Models can be served locally through OpenAI-compatible endpoints and called with the OpenAI SDK.
Speaker’s quote (at 26:02)
„you can run those either directly with the native task APIs or use OpenAI compatible endpoints as well.“
-
Watermarking for Windows ML Task APIs
Watermarking support to help meet regulatory and content provenance requirements.
Speaker’s quote (at 26:34)
„we also have support for capabilities like watermarking to help you meet regulatory and content provenance related requirements.“
-
Speech recognition and decision task APIs
Task APIs beyond LLMs for speech recognition (Whisper) and decision models, following the same calling pattern.
Speaker’s quote (at 27:56)
„We also have support for speech recognition, with the example here using Whisper, as well as for decision models such as Leia.“
-
Local coding support with Windows ML Task APIs
Running GitHub Copilot CLI coding tasks against a large local model served by Windows ML, rolling out after Ignite.
over the next few days
Speaker’s quote (at 28:58)
„This is actually going to be a sneak preview at something we're going to be rolling out over the next few days.“
-
Spacetop travel mode on Windows ML
Sightful moves its real-time travel mode models to the Windows ML Runtime APIs with DXCGC.
Speaker’s quote (at 37:01)
„Every new device means more integration and more validation and less time for us working on space-top features. So we're bringing travel modes to Windows ML.“
Demos (3)
-
A developer prepares an embedding model that suggests FAQ-based replies to customer questions so it meets accuracy and latency targets on a Qualcomm NPU.
Steps (9)
- Open GitHub Copilot CLI with the Windows ML CLI loaded.
- Invoke the use-winml-cli skill so Copilot knows the CLI commands.
- Ask Copilot to download the FP32 ONNX bge-base-en-v1.5 model from Hugging Face.
- Ask it to build the model for the device NPU (optimize, quantize and compile for the QNN execution provider) and save it as the baseline (pre-run in the demo).
- Benchmark the baseline model; observe NPU spikes in Task Manager and a table with cosine 0.38 and about 17 ms per inference.
- Use the auto-optimize skill to optimize the baseline model and save it as npu_optimized (pre-run in the demo).
- Ask Copilot to compare baseline and optimized benchmark results in table form.
- Load the baseline ONNX model in the Fabrikam Agent Assist sample app and observe about 4% accuracy and latency above 11 ms.
- Load the optimized model in the app and observe higher accuracy and latency below the target.
Prerequisites: GitHub Copilot CLI with the Windows ML CLI and its skills loaded; a device with an NPU (shown on a Surface Laptop for Business 8th edition with Qualcomm processors); access to the model on Hugging Face.
-
An offline lost-and-found kiosk that identifies dropped-off items with CLIP and matches lost-item descriptions with a language model, running entirely locally.
Steps (7)
- Turn off Wi-Fi and open Task Manager on the GPU performance page.
- In the app choose I found an item and deposit a photo of a blue water bottle found in the food court.
- The CLIP model identifies a blue bottle with a carrying rope and screw cap; confirm the drop-off.
- Choose I lost an item and describe the lost blue water bottle; the GPU spikes and the item is matched.
- Run the same EXE on NVIDIA, Qualcomm, AMD and Intel devices without changes.
- Run the non-LLM scenario on the GPU and the LLM scenario on the NPU and observe two engine spikes.
- Review the code: create the runtime, add the CLIP model as a pipeline stage, bind inputs and outputs, run, read the text and image vectors.
Prerequisites: Windows PCs with GPU (and NPU for the multi-engine preview); CLIP ViT ONNX model and a Qwen 3.x 4B Instruct model per the slide; experimental Windows ML Runtime APIs.
-
A developer uses GitHub Copilot CLI fully offline with a large local model to fix a data-masking bug and add a UI feature in a customer-support app.
Steps (10)
- Start the local Windows ML server (WinMLServer) serving the Qwen 27B model on the GPU and point GitHub Copilot CLI at it.
- Turn off Wi-Fi.
- Run a curl command against the local /v1/models endpoint to see the served model.
- Ask how the model is being served; it reports the Windows ML server, an OpenAI-compatible local inference server.
- Ask for a bullet summary of GPU vs NPU vs CPU to observe token speed.
- Show the Fabrikam case-notes app where the credit card number is saved to the CRM unmasked.
- Prompt Copilot to find and fix the bug and run the tests; it edits redact.js and all tests pass.
- Refresh the app and save to CRM again to confirm both phone and card numbers are masked.
- Prompt Copilot to add light mode with a toggle; it updates styles.css and client logic.
- Refresh the app and toggle between light and dark mode.
Prerequisites: A PC with a strong GPU (shown on a Lenovo Legion Pro 7 with RTX 5090 and 24 GB VRAM); GitHub Copilot CLI configured for a local endpoint; WinMLServer with a Qwen 27B GGUF model; the upcoming Windows ML update for local coding.