Rewrite all examples using standardization#1939
Merged
Merged
Conversation
baijumeswani
reviewed
Feb 2, 2026
baijumeswani
approved these changes
Feb 3, 2026
This was referenced Feb 3, 2026
Closed
kunal-vaishnavi
added a commit
that referenced
this pull request
Feb 11, 2026
### Description This PR adds a missing documentation step to download `common.py` in the Phi-3 tutorial. ### Motivation and Context This PR is a follow-up to [this PR](#1939).
baijumeswani
pushed a commit
that referenced
this pull request
Feb 12, 2026
### Description This PR adds a missing documentation step to download `common.py` in the Phi-3 tutorial. ### Motivation and Context This PR is a follow-up to [this PR](#1939).
This was referenced Feb 16, 2026
baijumeswani
pushed a commit
that referenced
this pull request
Feb 17, 2026
### Description This PR updates all of the examples after the v0.12.0 release of ONNX Runtime GenAI to use new APIs. ### Motivation and Context Some of the new APIs required an official release to be published before the examples could use them (as mentioned [here](#1939 (comment))).
baijumeswani
pushed a commit
that referenced
this pull request
Feb 18, 2026
### Description This PR fixes the Python nightly build of ONNX Runtime GenAI. ### Motivation and Context A [previous PR](#1939) introduced changes to the CIs, and those changes were not brought over to the nightly pipeline.
baijumeswani
pushed a commit
that referenced
this pull request
Mar 4, 2026
This PR updates all of the examples after the v0.12.0 release of ONNX Runtime GenAI to use new APIs. Some of the new APIs required an official release to be published before the examples could use them (as mentioned [here](#1939 (comment))).
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.
Description
This PR rewrites all examples in C/C++, C#, and Python to use standardized approaches for running inference with ONNX Runtime GenAI. It also removes the SLM engine, chat app, and Genny examples since they are now deprecated and not maintained. Users can try out Foundry Local, which is powered by ONNX Runtime GenAI, if interested in similar examples.
Motivation and Context
Examples across the languages and across functionalities are often out-of-sync. For example, a Python example may get updated but its equivalent C/C++ and C# examples do not. This PR fixes this by synchronizing feature parity across the various examples.
We can use this standardization to continue maintaining feature parity in the future.