BRK255 · Breakout
Build private, responsive on-device AI agents with Foundry
Speakers: Sam Kemp, Baiju Meswani
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Sam Kemp and Baiju Meswani from the Foundry Local team explain the Foundry Local architecture: an embedded runtime of about 10 MB, language SDKs over a C ABI, ONNX Runtime, the Foundry catalog and WinML execution providers. Since last Ignite the team added decision and ranking modalities, bring-your-own-model, a Java binding and an MIT open-source release. Demos cover GitHub Copilot voice dictation, a local-vs-cloud router driven by a decision model, and a coding agent running fully on a local GPU in the GitHub Copilot app. The main technical focus is runtime work for local coding agents: DFlash speculative decoding, KV cache quantization, prefix caching and request-aware scheduling, with ONNX Runtime claimed to be ~2.5x faster at decode than Llama CPP. On the roadmap are a built-in Foundry Local provider in GitHub Copilot, optimized local models in Copilot Fusion, and support for AMD GPUs and macOS.
Best for: Developers and architects building on-device or hybrid AI apps and agents, especially local coding agents on GPUs.
New material starts at 07:49. After the intro and an architecture overview that largely repeats known material, the chapter at 07:49 lists the SDK usage and the concrete changes since last Ignite.
Where to skip: Skip to 07:49 for what changed since last Ignite; the routing demo at 13:43, the coding-agent runtime section at 20:24 and the GitHub Copilot demo from 26:40 to 36:15 are the core. The customer videos (17:34) can be skipped; the Q&A at 39:35 on Copilot Fusion and the Foundry model router is worth a look.
Chapters (12)
- 00:00 Recap Depth 100 · Novelty 0/3
Welcome, agenda and the case for local AI
Sam Kemp (PM) and Baiju Meswani (engineer) from the Foundry Local team open the last session of Ignite 2026 and present the agenda: local AI overview, Foundry Local details and agentic workflows. Sam frames local AI as 'unmetered intelligence' available in disconnected and bandwidth-constrained scenarios. He notes the growth of local AI from a couple of sessions at Build 18 months ago to roughly 15-20 sessions at this Ignite, driven by on-prem, robotics, more powerful devices such as RTX Spark, and better distilled and quantized models.
- 03:20 Deep dive Depth 300 · Novelty 1/3
Foundry Local architecture: embedded runtime, SDK, ONNX Runtime, catalog and WinML EPs
Foundry Local runs Foundry on infrastructure you own, from on-prem clusters and edge gateways to robots and PCs/Macs/Linux, with curated model tiers per target; this session focuses on devices. The runtime is embedded in the app (about 10 MB compressed) so no external tool like Llama server or Ollama is needed. Language SDKs (C#, Python, JavaScript, Rust) wrap a C ABI that handles the model lifecycle and inference via ONNX Runtime and model acquisition from the Foundry catalog over the Azure backbone with region-aware downloads and geo fallback. On Windows, WinML delivers plug-in execution providers (CUDA, QNN, Vitis, OpenVINO) registered at runtime, so drivers are handled automatically.
- 07:49 New Depth 300 · Novelty 2/3
Using the SDK and CLI, plus what changed since last Ignite
Adding local AI requires installing the SDK via the language package manager and a few lines of code: get a model from the catalog, download it, start a session (chat, embedding, audio transcription, decision, ranking) and use OpenAI-compliant request/response types; hardware selection falls back from GPU/NPU to CPU automatically. The optional CLI is a developer tool for testing models and exposes a persisted OpenAI-compliant HTTP endpoint, useful e.g. for local dev inner loops to reduce token spend. Since last Ignite the team added ranking and decision modalities, more model families, bring-your-own-model via ONNX conversion tools, a Java binding in preview, smaller packages, region-aware downloads, runtime improvements, and open-sourced Foundry Local under MIT.
- 11:51 Demo Depth 200 · Novelty 1/3
Demo: GitHub Copilot voice dictation powered by embedded Foundry Local
Sam shows that GitHub Copilot's voice dictation runs on Foundry Local embedded in the app, so users only pick and download a transcription model (Nemotron or a multilingual variant) without installing anything else. Recording runs locally; the team optimized the Nemotron audio model for CPU, using about 2% CPU on the demo machine with good latency and word error rate.
- 13:43 Demo Depth 300 · Novelty 2/3
Demo: local-vs-cloud routing with a small model, tool calling and a decision model
A sample 'Foundry router' app wired to a GitHub repo uses a small Qwen 1.5B model with tools (search repo, read file) to gather context, then a typed decision model returns probabilities for secrets present, too big for local, and needs deep reasoning. An e-mail regex prompt stays on device; a checkout timeout prompt finds a TypeScript file with secrets and needing deep reasoning, so it is redacted and sent to the cloud. The code follows the same pattern: chat session with tool definitions plus a decision session.
- 17:34 Customer story Depth 100 · Novelty 1/3
Customer videos: Care to Translate, Lucy, Foxit, grid restoration, AirGap AI
A video montage shows production apps on Foundry Local: Care to Translate for offline, HIPAA-compliant speech translation in hospitals; Lucy as an on-device context layer for agents; Foxit PDF Editor with offline agentic retrieval over confidential documents; a Restoration Sequencing Advisor using on-device RAG for grid technicians without connectivity; and AirGap AI Transcribe for local transcripts and summaries with Intel optimizations and AMD and Qualcomm support.
- 20:24 New Depth 400 · Novelty 2/3
Local coding agents: runtime speedups, curated coding models, GitHub Copilot roadmap
Coding agents need fast sustained inference, long context, parallel tasks and reliable tool calling, so the team worked on the runtime, models and GitHub Copilot integration, targeting GPUs like RTX Spark (128 GB unified memory, up to 1 petaflop FP4) and RTX 5090. ONNX Runtime is claimed ~2.5x faster at decode than Llama CPP through DFlash speculative decoding, prefill caching, kernels and fusions, tool-calling fixes and KV cache quantization, benefiting all Foundry Local apps. Models are selected from ~10 candidates via internal benchmarks (throughput, tool calls, SWE-bench, Terminal-Bench) and optimized with Olive tooling; done for Qwen, Qwen Flash, MAI Code Flash on device and Nemotron Bolt. GitHub Copilot moves from bring-your-own inference to a built-in provider 'coming soon', then into Copilot Fusion for hybrid routing on Windows.
- 26:40 Demo Depth 300 · Novelty 2/3
Demo: Foundry Local as managed model provider in the GitHub Copilot app
Baiju shows the preview experience in the GitHub Copilot app where Foundry Local is a managed model provider bundled with the app, offering Qwen 3.8 27B, MAI Code Flash on device, Nemotron Bolt and Qwen 3.8 Flash Next. Hardware awareness marks MAI Code Flash as needing more memory than the 32 GB GPU, while the large Qwen 3.8 Flash Next fits via ONNX Runtime CPU offloading between GPU and CPU. He asks Copilot to build an arcade game with a glowing spaceship, which completes in a few minutes, and explains kernel optimizations, aggressive quantization, concurrent request scheduling and DFlash 2 speculative decoding with a small drafter model proposing tokens for the target model.
- 31:43 Demo Depth 300 · Novelty 2/3
Demo continued: long-context scheduling, PR creation and cross-platform roadmap
Baiju explains request-aware scheduling that prioritizes decode over prefill across concurrent jobs, and shows a context of about 40,000 tokens (system prompt, ~29,000 tokens of tools, MCP tools, messages) processed locally. The agent builds another visualization and then creates a pull request through multi-turn tool calls, with prefix caching reusing earlier computation in repeated agentic workflows. He states the experience is coming soon and will extend beyond NVIDIA to AMD GPUs and macOS, cross-platform across Windows, macOS and Linux.
- 36:15 Closing Depth 100 · Novelty 0/3
Wrap-up and feedback
Sam summarizes that Foundry Local handles many on-device scenarios beyond chat and LLMs, including demanding agentic workflows. He points to recorded sessions online, asks for session feedback via a QR code and opens Q&A at the microphone.
- 37:08 Q&A Depth 300 · Novelty 1/3
Q&A: NPUs and onboarding other hardware vendors via execution providers
Asked about NPUs such as Snapdragon, Sam says NPUs target power efficiency and now have more kernel coverage, but are too small for ~27B coding models and suit smaller models like decision models. Asked about other hardware vendors, Baiju explains that any vendor with an ONNX Runtime execution provider library for its hardware could potentially deploy it as runtime acceleration with Foundry Local.
- 39:35 Q&A Depth 300 · Novelty 1/3
Q&A: hybrid routing via Copilot Fusion, Foundry model router and local router idea
Sam explains that Copilot's Fusion router already includes some local models via the Windows team and will add the optimized models, while the demo's decision model was an open-source model rather than an MAI decision model. Including local models in the Azure Foundry model router is 'on our radar' but not on the roadmap, having only been discussed. The attendee's idea of Foundry Local itself acting as a router is logged as feedback, and the session closes.
Announcements (12)
-
Decision and ranking model modalities
Foundry Local now supports decision and ranking models in addition to chat, embeddings and audio, along with more model families.
Speaker’s quote (at 10:26)
„So as mentioned before, things like the ranking models, decision models. We've been adding in more model families.“
-
Bring your own model to Foundry Local
Models outside the curated catalog can be converted to ONNX and optimized with a set of tools and then used in Foundry Local.
Speaker’s quote (at 10:26)
„But another key thing that we've brought into Foundry Local is the ability for you to bring your own model in.“
-
Foundry Local Java language binding
A Java binding was added to the Foundry Local SDK and is described as being in preview.
Speaker’s quote (at 10:53)
„We've added a couple of extra language bindings with Java being in preview.“
-
Foundry Local open source under MIT
Foundry Local has been fully open-sourced under the MIT licence.
MIT
Speaker’s quote (at 11:21)
„And also, we fully open sourced Foundry Local under MIT as well.“
-
DFlash speculative decoding in ONNX Runtime
ONNX Runtime adds DFlash speculative decoding and prefill caching to speed up decode for coding and other agent workloads.
Speaker’s quote (at 22:51)
„And we've done that in the ONNX runtime by adding like D flash speculative decoding, prefill caching.“
-
KV cache quantization in ONNX Runtime
ONNX Runtime adds support for quantizing the KV cache to handle long contexts more efficiently.
Speaker’s quote (at 23:16)
„And we've added support for like KV cache quantization.“
-
Optimized on-device coding models in Foundry Local
A curated set of coding models (Qwen, Qwen Flash, MAI Code Flash on device, Nemotron Bolt) optimized with fusions, quantization and hardware-specific kernels.
Speaker’s quote (at 25:45)
„So we've done this for Qwen, Qwen Flash, MAI Code Flash on device, and Neotron Bolt.“
-
Built-in Foundry Local provider in GitHub Copilot
GitHub Copilot will include Foundry Local as a single embedded provider, so no separate CLI installation is needed.
Speaker’s quote (at 25:45)
„What will be coming soon is a single provider where you don't have to install anything.“
-
Optimized local models in Copilot Fusion
The optimized coding models will be brought into the Copilot Fusion router to enable hybrid routing on Windows.
Speaker’s quote (at 26:11)
„And then what we'll work on next is bringing these highly optimized models into Copilot Fusion. so that you can do hybrid routing on Windows.“
-
Foundry Local managed model provider in GitHub Copilot app
The GitHub Copilot app includes Foundry Local as a managed model provider, so it does not need to be downloaded separately; shown as a preview experience.
Speaker’s quote (at 27:10)
„And under model providers, We have the Foundry Local as a managed model provider. This means that you don't need to download Foundry Local separately.“
-
Local coding on AMD GPUs
The optimized local coding experience will be extended beyond NVIDIA to AMD GPUs.
Speaker’s quote (at 35:42)
„What's more interesting is that this is going to come soon, and it's not limited to NVIDIA GPUs. We're going to deliver on AMD GPUs“
-
Cross-platform local coding on macOS, Windows and Linux
The local coding experience is planned to be cross-platform across macOS, Windows and Linux.
Speaker’s quote (at 35:42)
„We're going to deliver on AMD GPUs and on Mac OS. And this is going to be cross-platform, so Mac OS, Windows, and Linux.“
Demos (4)
-
Show developers how an app can ship on-device speech transcription without external dependencies, using GitHub Copilot voice dictation as the example.
Steps (4)
- Open the GitHub Copilot settings and select voice dictation.
- Choose a transcription model (Nemotron or the multilingual version) and download it.
- Click the record button and speak; transcription runs locally on Foundry Local.
- Observe CPU usage (about 2%) and latency.
Prerequisites: GitHub Copilot app with voice dictation; a downloaded transcription model.
-
Developers route each prompt either to an on-device model or to the cloud based on a decision model that checks for secrets, context size and reasoning needs.
Steps (6)
- Connect a GitHub repo to the sample router application.
- Submit a prompt; a Qwen 1.5B model calls tools such as search repo and read file to gather context.
- The context is passed to a typed decision model that returns probabilities for 'has secrets', 'too big for local' and 'needs deep reasoning'.
- For the e-mail regex prompt, all probabilities are low and the request runs on the device.
- For the checkout timeout prompt, the tool finds the checkout TypeScript file, secrets and deep reasoning are flagged, and the request is redacted and sent to the cloud.
- Review the code: a chat session with added tool definitions and a decision session created from catalog models.
Prerequisites: Foundry Local SDK, a small chat model with tool calling, a decision model, and a connected GitHub repo.
-
A developer runs a coding agent fully on a local GPU by selecting Foundry Local models inside the GitHub Copilot app.
Steps (5)
- Open the GitHub Copilot app and go to model providers.
- Select Foundry Local as the managed model provider.
- Review the model list; models that do not fit device memory (MAI Code Flash on device on a 32 GB GPU) are marked as requiring more memory.
- Select a local model (Qwen 3.8 Flash Next is selected in the chat) and ensure it is loaded.
- Ask Copilot to build an arcade game with a glowing spaceship and watch it generate the game on the device.
Prerequisites: GitHub Copilot app with the Foundry Local provider; a powerful GPU device (demo machine with 32 GB GPU memory, NVIDIA).
-
A developer uses a local model through Foundry Local for multi-turn agentic coding, including creating a pull request.
Steps (4)
- Run a previously selected prompt with the local model and let it build a visualization.
- Inspect the context breakdown: system prompt, system tools (~29,000 tokens), MCP tools and messages, about 40,000 tokens in total.
- Ask the agent to create a pull request.
- Watch the agent call the tools across multiple turns and create the pull request.
Prerequisites: GitHub Copilot app with the Foundry Local provider, a loaded local coding model, a GPU device and a repository connection for the pull request.