LMSupply.Generator.Onnx
0.74.0
dotnet add package LMSupply.Generator.Onnx --version 0.74.0
NuGet\Install-Package LMSupply.Generator.Onnx -Version 0.74.0
<PackageReference Include="LMSupply.Generator.Onnx" Version="0.74.0" />
<PackageVersion Include="LMSupply.Generator.Onnx" Version="0.74.0" />
<PackageReference Include="LMSupply.Generator.Onnx" />
paket add LMSupply.Generator.Onnx --version 0.74.0
#r "nuget: LMSupply.Generator.Onnx, 0.74.0"
#:package LMSupply.Generator.Onnx@0.74.0
#addin nuget:?package=LMSupply.Generator.Onnx&version=0.74.0
#tool nuget:?package=LMSupply.Generator.Onnx&version=0.74.0
LMSupply.Generator.Onnx
ONNX Runtime GenAI backend for LMSupply.Generator.
Adds local text generation on ONNX Runtime GenAI models (Phi-4 Mini ONNX and similar) with
CUDA/DirectML GPU acceleration. Optional — LMSupply.Generator alone covers GGUF/llama-server
models without this package.
Quick Start
using LMSupply.Generator;
// Register once at startup, before loading any ONNX model.
LMSupply.Generator.Onnx.OnnxGeneratorBackend.Register();
var generator = await TextGeneratorBuilder.Create()
.WithHuggingFaceModel("microsoft/Phi-4-mini-instruct-onnx")
.BuildAsync();
string response = await generator.GenerateCompleteAsync("What is AI?");
Without registering this package, TextGeneratorBuilder/LocalGenerator throw a
NotSupportedException naming this package when asked to load an ONNX model. The hardware-aware
WithDefaultModel()/"auto" path never silently depends on it either — on a discrete non-NVIDIA
Windows GPU it only prefers ONNX/DirectML when this backend is registered, otherwise it falls back
to its GGUF selection.
GPU Acceleration
# NVIDIA GPU
dotnet add package Microsoft.ML.OnnxRuntime.Gpu
# Windows (AMD/Intel/NVIDIA)
dotnet add package Microsoft.ML.OnnxRuntime.DirectML
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- LMSupply.Generator (>= 0.74.0)
- Microsoft.ML.OnnxRuntimeGenAI (>= 0.13.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.74.0 | 0 | 9/24/2026 |
| 0.73.0 | 0 | 9/23/2026 |
| 0.72.1 | 35 | 9/23/2026 |
| 0.72.0 | 45 | 9/22/2026 |
| 0.71.0 | 65 | 9/22/2026 |
| 0.70.0 | 91 | 9/21/2026 |
| 0.69.0 | 81 | 9/21/2026 |
| 0.68.3 | 110 | 9/18/2026 |
| 0.68.2 | 84 | 9/18/2026 |
| 0.68.1 | 81 | 9/18/2026 |
| 0.68.0 | 91 | 9/17/2026 |
| 0.67.1 | 88 | 9/17/2026 |
| 0.67.0 | 87 | 9/17/2026 |
| 0.66.1 | 88 | 9/16/2026 |
| 0.66.0 | 89 | 9/16/2026 |
| 0.65.1 | 112 | 9/13/2026 |
| 0.65.0 | 107 | 9/12/2026 |
| 0.64.0 | 99 | 9/11/2026 |
| 0.63.0 | 93 | 9/11/2026 |
| 0.62.0 | 106 | 9/10/2026 |