Repository navigation
Windows ML 2.7 Experimental Runtime API - #23
Merged
Merged
Conversation
Bringing a model to a Windows app should leave room to grow: from a first prediction to a conversation, from one model to a pipeline, and from a familiar inference engine to another that better fits the workload. This experimental release adds samples and documentation for the Windows ML Runtime, Task APIs, and local Server, with a shared Windows-native execution foundation underneath each level of control. The Runtime API is the native path for developers who need to own the details of inference: how data reaches a model, where each stage runs, and how state and resources move through a multi-model workload. The samples bring images, video frames, audio, and text into that model and show explicit CPU, GPU, and NPU target selection, pipeline composition, and compilation and reuse of prepared artifacts where supported. Native data integration makes efficient paths possible; zero-copy and acceleration depend on the actual layout, device, and backend. ONNX and GGUF models take part in the same Runtime programming model, through ONNX Runtime and experimental llama.cpp support. The familiar ONNX Runtime APIs remain supported alongside this native path. The goal is a foundation that can keep improving as engines and hardware evolve, without making applications rebuild their integration at every turn. Tasks build on that foundation rather than introducing a separate execution stack. For expert developers and middleware authors, they share the work of tokenization, generation, streaming, cancellation, results, and state coordination while retaining access to the Runtime objects executing the workload. Text generation, multi-turn chat, Whisper speech recognition, and speech-to-generation samples show how to start with reusable task behavior and reach for finer control when the application needs it. For a familiar way to experiment, the local Server exposes an OpenAI-compatible Chat Completions endpoint over those same components. In-process and executable hosts, with C++, C#, and Python clients, show how to connect local models to existing client workflows, including streaming and client-managed tool calls. Explore the C++ and Python samples, tutorials, API reference, model preparation guides, and x64 and Arm64 build and run scripts. The llama.cpp backend tooling supports experimenting with additional ggml backends. These APIs are experimental and will evolve; model, provider, and device capabilities determine which paths are available. Try the samples with your own models and share what you need from the next step in local AI on Windows. Co-authored-by: Nick Eubanks <nieubank@microsoft.com> Co-authored-by: Siyuan Peng <siyuanpeng@microsoft.com> Co-authored-by: Maha Bayana <mahabayana@microsoft.com> Co-authored-by: Darshak Harisinh Bhatti <dabhatti@microsoft.com>
Nick Eubanks (nieubank)
requested review from
adrastogi,
Jason Holmes (jaholme) and
Zarana Kiran Desai (zadesai)
October 7, 2026 15:48
Darshak Bhatti (dabhattimsft)
approved these changes
Oct 7, 2026
adrastogi
approved these changes
Oct 7, 2026
Jason Holmes (jaholme)
approved these changes
Oct 7, 2026
Zarana Kiran Desai (zadesai)
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bringing a model to a Windows app should leave room to grow: from a first prediction to a conversation, from one model to a pipeline, and from a familiar inference engine to another that better fits the workload. This experimental release adds samples and documentation for the Windows ML Runtime, Task APIs, and local Server, with a shared Windows-native execution foundation underneath each level of control.
The Runtime API is the native path for developers who need to own the details of inference: how data reaches a model, where each stage runs, and how state and resources move through a multi-model workload. The samples bring images, video frames, audio, and text into that model and show explicit CPU, GPU, and NPU target selection, pipeline composition, and compilation and reuse of prepared artifacts where supported. Native data integration makes efficient paths possible; zero-copy and acceleration depend on the actual layout, device, and backend.
ONNX and GGUF models take part in the same Runtime programming model, through ONNX Runtime and experimental llama.cpp support. The familiar ONNX Runtime APIs remain supported alongside this native path. The goal is a foundation that can keep improving as engines and hardware evolve, without making applications rebuild their integration at every turn.
Tasks build on that foundation rather than introducing a separate execution stack. For expert developers and middleware authors, they share the work of tokenization, generation, streaming, cancellation, results, and state coordination while retaining access to the Runtime objects executing the workload. Text generation, multi-turn chat, Whisper speech recognition, and speech-to-generation samples show how to start with reusable task behavior and reach for finer control when the application needs it.
For a familiar way to experiment, the local Server exposes an OpenAI-compatible Chat Completions endpoint over those same components. In-process and executable hosts, with C++, C#, and Python clients, show how to connect local models to existing client workflows, including streaming and client-managed tool calls.
Explore the C++ and Python samples, tutorials, API reference, model preparation guides, and x64 and Arm64 build and run scripts. The llama.cpp backend tooling supports experimenting with additional ggml backends. These APIs are experimental and will evolve; model, provider, and device capabilities determine which paths are available. Try the samples with your own models and share what you need from the next step in local AI on Windows.
Co-authored-by: Nick Eubanks nieubank@microsoft.com
Co-authored-by: Siyuan Peng siyuanpeng@microsoft.com
Co-authored-by: Maha Bayana mahabayana@microsoft.com
Co-authored-by: Darshak Harisinh Bhatti dabhatti@microsoft.com