Skip to content

[DRAFT] WinML2.0 preview samples#634

Open
bmehta001 wants to merge 1 commit intomainfrom
bhamehta/winml2-preview-samples
Open

[DRAFT] WinML2.0 preview samples#634
bmehta001 wants to merge 1 commit intomainfrom
bhamehta/winml2-preview-samples

Conversation

@bmehta001
Copy link
Copy Markdown
Contributor

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview, Comment May 6, 2026 2:11pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds WinML 2.0 “preview” verification samples across multiple SDKs and updates the SDKs/pipelines to support execution-provider (EP) discovery + download/registration flows and WinML-targeting changes.

Changes:

  • Add new “verify-winml” samples for C++, C#, Python, JavaScript, and Rust, plus update existing audio transcription samples to align with newer streaming/download APIs.
  • Extend the C++ SDK manager to support EP discovery and EP download/registration with optional progress reporting, and invalidate the catalog cache after EP changes.
  • Update WinML target framework/min-version pins across .NET projects and pipeline build steps; adjust JS WinML installer robustness and fix C# catalog ordering behavior.

Reviewed changes

Copilot reviewed 46 out of 48 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
sdk/python/requirements-winml.txt Formatting fix in WinML Python requirements file.
sdk/js/script/install-winml.cjs Adds more robust logic to locate the SDK root when running the WinML installer script.
sdk/cs/test/FoundryLocal.Tests/Microsoft.AI.Foundry.Local.Tests.csproj Updates WinML target framework/min-version for C# tests.
sdk/cs/test/FoundryLocal.Tests/CatalogTests.cs Adds a test ensuring model listing preserves Core-provided ordering.
sdk/cs/src/Microsoft.AI.Foundry.Local.csproj Updates WinML target framework/min-version for the C# SDK package.
sdk/cs/src/Catalog.cs Preserves Core ordering by tracking models in insertion order rather than sorting by alias.
sdk/cpp/src/foundry_local_manager.cpp Adds EP discovery/download APIs, progress callback wiring, bootstrap auto-setting, and catalog cache invalidation.
sdk/cpp/src/core.h Makes execute_command_with_binary optional and returns a descriptive error for unsupported Core versions.
sdk/cpp/src/catalog.cpp Adds InvalidateCache() to refresh the catalog after EP registration changes.
sdk/cpp/include/foundry_local_manager.h Exposes EP discovery/download result structs and download APIs (with progress callback).
sdk/cpp/include/catalog.h Exposes Catalog::InvalidateCache().
sdk/cpp/CMakeLists.txt Adds ole32 link dependency.
samples/rust/verify-winml/src/main.rs New Rust WinML EP verification sample (discover/register EPs, find accelerated variants, streaming chat check).
samples/rust/verify-winml/README.md Documentation for the new Rust WinML verification sample.
samples/rust/verify-winml/Cargo.toml Cargo manifest for the new Rust sample.
samples/rust/live-audio-transcription/src/main.rs Updates the Rust live audio transcription sample to newer SDK APIs/types.
samples/rust/Cargo.toml Adds live-audio-transcription and verify-winml to the Rust samples workspace members.
samples/README.md Adds a C++ samples row to the “Samples by Language” table.
samples/python/verify-winml/src/app.py New Python WinML EP verification script.
samples/python/verify-winml/requirements.txt Adds a WinML-flavored Python SDK dependency for the new sample.
samples/python/verify-winml/README.md Documentation for the new Python WinML verification sample.
samples/js/verify-winml/README.md Documentation for the new JS WinML verification sample.
samples/js/verify-winml/package.json New JS WinML verification sample package with postinstall WinML setup.
samples/js/verify-winml/app.js New JS WinML EP verification script.
samples/cs/verify-winml/VerifyWinML.csproj New C# WinML EP verification sample project.
samples/cs/verify-winml/README.md Documentation for the new C# WinML verification sample.
samples/cs/verify-winml/Program.cs New C# WinML EP verification program.
samples/cs/tutorial-voice-to-text/TutorialVoiceToText.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/tutorial-tool-calling/TutorialToolCalling.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/tutorial-document-summarizer/TutorialDocumentSummarizer.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/tutorial-chat-assistant/TutorialChatAssistant.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/tool-calling-foundry-local-web-server/ToolCallingFoundryLocalWebServer.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/tool-calling-foundry-local-sdk/ToolCallingFoundryLocalSdk.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/nuget.config Formatting/newline normalization.
samples/cs/native-chat-completions/NativeChatCompletions.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/model-management-example/ModelManagementExample.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/live-audio-transcription/LiveAudioTranscriptionExample.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/foundry-local-web-server/FoundryLocalWebServer.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/embeddings/Embeddings.csproj Updates Windows target framework version for WinML acceleration.
samples/cs/Directory.Packages.props Pins Microsoft.AI.Foundry.Local.Core.WinML to 1.0.0 for samples.
samples/cs/audio-transcription-example/AudioTranscriptionExample.csproj Updates Windows target framework version for WinML acceleration.
samples/cpp/verify-winml/README.md Documentation for the new C++ WinML verification sample.
samples/cpp/verify-winml/main.cpp New C++ WinML EP verification sample implementation.
samples/cpp/verify-winml/CMakeLists.txt CMake project for building the new C++ verify-winml sample.
samples/cpp/live-audio-transcription/README.md Switches build instructions to CMake and documents runtime/native DLL placement.
samples/cpp/live-audio-transcription/main.cpp Improves model alias handling and error messaging for missing live-audio model.
samples/cpp/live-audio-transcription/CMakeLists.txt Adds a CMake project for the C++ live-audio-transcription sample.
.pipelines/templates/build-core-steps.yml Updates WinML build/test/publish TFMs used by the pipeline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/cpp/src/foundry_local_manager.cpp Outdated
Comment thread sdk/cpp/src/catalog.cpp Outdated
Comment thread samples/cs/verify-winml/VerifyWinML.csproj
Comment thread samples/python/verify-winml/src/app.py
Comment thread samples/rust/verify-winml/Cargo.toml Outdated
Comment thread samples/README.md Outdated
Add the WinML 2.0 verification samples and the minimal SDK, packaging, and target-framework support required to run them against the preview WinML stack.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants