Repository navigation
Tags
Tags
Pin the samples to Windows ML 2.9.42 experimental (#46) * Pin the samples to Windows ML 2.9.42 experimental Microsoft.Windows.AI.MachineLearning moves to 2.9.42-experimental and the LibLlama packages to 0.7.0.113-experimental, which come from the same release. Text generation from published weights can now hold its key and value cache as INT8 or 16-bit floating point, and a capacity that doesn't fit in dedicated GPU memory fails with an error that names the largest one that fits. Only WinMLTextGenerationTask.h and the metadata change, with methods appended to two existing interfaces. llama.cpp stays at build 11847 with backend API 3. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca5b72cf-ae75-4384-9fc4-a6081b9fddea * Document the key and value cache type in the text generation reference 2.9.42 adds SetKeyValueCacheType and GetKeyValueCacheType to IWinMLModelTextGenerationConfiguration, and GetKeyValueCacheType to IWinMLTextGenerationSession. The rules for sessions from a model, composed models and llama.cpp sessions now say which types each holds and how CreateSession fails, and the Python section names the new methods. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca5b72cf-ae75-4384-9fc4-a6081b9fddea * Say which windowsml release has the key and value cache type methods The 2.9.42a0 wheels aren't on PyPI yet, and 2.9.36a0 has no set_key_value_cache_type, so the reference names the release that does. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca5b72cf-ae75-4384-9fc4-a6081b9fddea --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca5b72cf-ae75-4384-9fc4-a6081b9fddea
Windows ML 2.7 experimental: one native foundation for local AI (#23) 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: Siyuan Peng <siyuanpeng@microsoft.com> Co-authored-by: Maha Bayana <mahabayana@microsoft.com> Co-authored-by: Darshak Harisinh Bhatti <dabhatti@microsoft.com>
PreviousNext