[dotnet-ai] ONNX Runtime + local LLM inference - #243
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>
.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>
|
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 pull request has been automatically closed because it has been open for more than 30 days with no recent activity. If you believe this work is still relevant, please feel free to reopen or create a new pull request. Thank you for your contribution! Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "awmgmcpg"See Network Configuration for more information.
|
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