[dotnet-ai] ONNX Runtime + local LLM inference#243
Draft
luisquintanilla wants to merge 2 commits intodotnet:mainfrom
Draft
[dotnet-ai] ONNX Runtime + local LLM inference#243luisquintanilla wants to merge 2 commits intodotnet:mainfrom
luisquintanilla wants to merge 2 commits intodotnet:mainfrom
Conversation
Adds two inference skills: onnx-runtime-inference (standalone and ML.NET ONNX, execution providers, tensors reference) and local-llm-inference (Ollama and Foundry Local through IChatClient). Fixes dotnet#231 Part of dotnet#225 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
5 tasks
.NET 10 is the current LTS (released Nov 2025). .NET 8 reaches end-of-support Nov 2026. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
This PR has been automatically marked as stale because it has no activity for 30 days. It will be closed if no further activity occurs within another 7 days of this comment. If it is closed, you may reopen it anytime when you're ready again.
|
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.
Fixes #231
Part of #225
Dependencies
Summary
Adds two inference skills covering model execution at the edge:
onnx-runtime-inferenceRunning pre-trained ONNX models via standaloneInferenceSessionor ML.NET'sApplyOnnxModel(), with execution provider selection (CPU, CUDA, DirectML). Includesreferences/tensors.mdfor tensor I/O patterns and a text preprocessing section usingMicrosoft.ML.Tokenizersfor BERT/WordPiece models.local-llm-inferenceRunning LLMs locally via Ollama and Foundry Local, both surfacing models through MEAI'sIChatClientabstraction (provider-agnostic).Changes
plugins/dotnet-ai/skills/onnx-runtime-inference/SKILL.mdplugins/dotnet-ai/skills/onnx-runtime-inference/references/tensors.mdplugins/dotnet-ai/skills/local-llm-inference/SKILL.mdtests/dotnet-ai/onnx-runtime-inference/eval.yamltests/dotnet-ai/local-llm-inference/eval.yamlKey Packages
Microsoft.ML.OnnxRuntime/.Gpu/.DirectMLMicrosoft.ML.OnnxTransformerOllamaSharpMicrosoft.AI.Foundry.LocalValidation