LMSupply.Generator
0.35.1
dotnet add package LMSupply.Generator --version 0.35.1
NuGet\Install-Package LMSupply.Generator -Version 0.35.1
<PackageReference Include="LMSupply.Generator" Version="0.35.1" />
<PackageVersion Include="LMSupply.Generator" Version="0.35.1" />
<PackageReference Include="LMSupply.Generator" />
paket add LMSupply.Generator --version 0.35.1
#r "nuget: LMSupply.Generator, 0.35.1"
#:package LMSupply.Generator@0.35.1
#addin nuget:?package=LMSupply.Generator&version=0.35.1
#tool nuget:?package=LMSupply.Generator&version=0.35.1
LMSupply.Generator
Local text generation and chat with ONNX Runtime GenAI and GGUF (llama-server).
Features
- Zero-config: Models download automatically from HuggingFace
- GPU Acceleration: CUDA, Vulkan, DirectML, CoreML, Metal
- GGUF Support: Load any GGUF model via llama-server (auto-downloaded)
- Server Pooling: Reuses llama-server instances for fast model switching
- MIT Models: Phi-4 and Phi-3.5 models with no usage restrictions
- Chat Support: Built-in chat formatters for various models
Quick Start
using LMSupply.Generator;
// Using the builder pattern
var generator = await TextGeneratorBuilder.Create()
.WithDefaultModel()
.BuildAsync();
// Generate text
string response = await generator.GenerateCompleteAsync("What is AI?");
Console.WriteLine(response);
await generator.DisposeAsync();
Chat Completion
var messages = new[]
{
new ChatMessage(ChatRole.System, "You are a helpful assistant."),
new ChatMessage(ChatRole.User, "Explain quantum computing.")
};
string response = await generator.GenerateChatCompleteAsync(messages);
Available Models
| Model | Parameters | License | Description |
|---|---|---|---|
| Phi-4 Mini | 3.8B | MIT | Default, best balance |
| Phi-3.5 Mini | 3.8B | MIT | Fast, reliable |
| Phi-4 | 14B | MIT | Highest quality |
| Llama 3.2 1B | 1B | Conditional | Ultra-lightweight |
| Llama 3.2 3B | 3B | Conditional | Balanced |
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.Core (>= 0.35.1)
- LMSupply.Llama (>= 0.35.1)
- Microsoft.ML.OnnxRuntimeGenAI (>= 0.13.2)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on LMSupply.Generator:
| Package | Downloads |
|---|---|
|
FluxIndex.Providers.LMSupply
LMSupply local AI embedding, reranking, and text completion provider for FluxIndex |
|
|
IronHive.Cli.Core
IronHive CLI Core - Agent loop, tools, session management, and provider integrations for building AI-powered CLI tools |
|
|
IronProw.LMSupply
iron-prow local-provider safety adapter: model-ID preflight, readiness gate, and length-bounding for lm-supply local inference. |
|
|
PulsaLLM.SDK
Pulsa LLM SDK for language model inference |
|
|
IronHive.Host.Core
IronHive Host Core - Agent loop, tools, session management, and provider integrations for building reusable AI agent hosts (CLI, server, embedded) |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.35.1 | 105 | 6/29/2026 |
| 0.35.0 | 99 | 6/26/2026 |
| 0.34.31 | 106 | 6/21/2026 |
| 0.34.30 | 105 | 6/21/2026 |
| 0.34.29 | 101 | 6/21/2026 |
| 0.34.28 | 124 | 6/21/2026 |
| 0.34.27 | 100 | 6/20/2026 |
| 0.34.22 | 106 | 6/20/2026 |
| 0.34.21 | 108 | 6/20/2026 |
| 0.34.20 | 99 | 6/2/2026 |
| 0.34.19 | 137 | 5/25/2026 |
| 0.34.18 | 121 | 5/21/2026 |
| 0.34.17 | 523 | 5/20/2026 |
| 0.34.16 | 118 | 5/15/2026 |
| 0.34.15 | 108 | 5/14/2026 |
| 0.34.13 | 112 | 5/12/2026 |
| 0.34.12 | 262 | 5/11/2026 |
| 0.34.3 | 105 | 5/7/2026 |
| 0.34.2 | 100 | 5/5/2026 |
| 0.34.1 | 113 | 5/3/2026 |