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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LMSupply.Generator.Onnx" Version="0.65.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LMSupply.Generator.Onnx" Version="0.65.1" />
                    
Directory.Packages.props
<PackageReference Include="LMSupply.Generator.Onnx" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LMSupply.Generator.Onnx --version 0.65.1
                    
#r "nuget: LMSupply.Generator.Onnx, 0.65.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LMSupply.Generator.Onnx@0.65.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LMSupply.Generator.Onnx&version=0.65.1
                    
Install as a Cake Addin
#tool nuget:?package=LMSupply.Generator.Onnx&version=0.65.1
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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