Skip to content

Windows ML 2.7 Experimental Runtime API - #23

Merged
Nick Eubanks (nieubank) merged 1 commit into
mainfrom
release/2.7.2000-experimental
Oct 7, 2026
Merged

Nick Eubanks (nieubank) merged 1 commit into
mainfrom
release/2.7.2000-experimental

Conversation

@nieubank

@nieubank Nick Eubanks (nieubank) commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

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

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>
@nieubank
Nick Eubanks (nieubank) merged commit af42ad3 into main Oct 7, 2026
1 check passed
@nieubank
Nick Eubanks (nieubank) deleted the release/2.7.2000-experimental branch October 7, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants