LMSupply.Generator.Onnx
0.65.1
dotnet add package LMSupply.Generator.Onnx --version 0.65.1
NuGet\Install-Package LMSupply.Generator.Onnx -Version 0.65.1
<PackageReference Include="LMSupply.Generator.Onnx" Version="0.65.1" />
<PackageVersion Include="LMSupply.Generator.Onnx" Version="0.65.1" />
<PackageReference Include="LMSupply.Generator.Onnx" />
paket add LMSupply.Generator.Onnx --version 0.65.1
#r "nuget: LMSupply.Generator.Onnx, 0.65.1"
#:package LMSupply.Generator.Onnx@0.65.1
#addin nuget:?package=LMSupply.Generator.Onnx&version=0.65.1
#tool nuget:?package=LMSupply.Generator.Onnx&version=0.65.1
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.65.1)
- 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.65.1 | 82 | 9/13/2026 |
| 0.65.0 | 93 | 9/12/2026 |
| 0.64.0 | 85 | 9/11/2026 |
| 0.63.0 | 81 | 9/11/2026 |
| 0.62.0 | 92 | 9/10/2026 |
| 0.61.0 | 78 | 9/9/2026 |
| 0.60.0 | 73 | 9/9/2026 |
| 0.59.1 | 75 | 9/8/2026 |
| 0.59.0 | 82 | 9/8/2026 |
| 0.58.0 | 113 | 9/7/2026 |
| 0.57.0 | 88 | 9/7/2026 |
| 0.56.0 | 93 | 9/7/2026 |
| 0.55.5 | 88 | 9/7/2026 |
| 0.55.4 | 103 | 9/7/2026 |
| 0.55.0 | 96 | 9/5/2026 |
| 0.45.0 | 91 | 9/3/2026 |
| 0.44.0 | 96 | 9/3/2026 |