TensorStack.OnnxRuntime.LLM
0.15.0
Prefix Reserved
dotnet add package TensorStack.OnnxRuntime.LLM --version 0.15.0
NuGet\Install-Package TensorStack.OnnxRuntime.LLM -Version 0.15.0
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="TensorStack.OnnxRuntime.LLM" Version="0.15.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TensorStack.OnnxRuntime.LLM" Version="0.15.0" />
<PackageReference Include="TensorStack.OnnxRuntime.LLM" />
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 TensorStack.OnnxRuntime.LLM --version 0.15.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TensorStack.OnnxRuntime.LLM, 0.15.0"
#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 TensorStack.OnnxRuntime.LLM@0.15.0
#: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=TensorStack.OnnxRuntime.LLM&version=0.15.0
#tool nuget:?package=TensorStack.OnnxRuntime.LLM&version=0.15.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TensorStack.OnnxRuntime.LLM
ONNX text generation pipelines for small language, vision and speech models, with greedy and beam search decoding.
Nuget Package
For GGUF language models with tool calls and image/audio input see TensorStack.LlamaCpp.
Pipelines
| Pipeline | Models | Use |
|---|---|---|
| LlamaPipeline | Llama 3.2 | Text generation |
| Phi3Pipeline | Phi-3 | Text generation |
| WhisperPipeline | Whisper | Speech recognition and translation |
| SupertonicPipeline | Supertonic | Text to speech |
| FlorencePipeline | Florence-2 | Captioning, OCR, object detection and segmentation |
| SummaryPipeline | T5 style encoder/decoder | Text summarization |
Decoding
Each text pipeline has two RunAsync overloads:
GenerateOptionsreturns a singleGenerateResultusing greedy or sampled decodingSearchOptionsreturns aGenerateResult[], one per beam, using beam search
| Option | Description |
|---|---|
MinLength / MaxLength |
The generated length in tokens |
Beams |
Number of beams for beam search |
TopK / TopP / Temperature |
Sampling |
LengthPenalty |
Beam score length penalty |
NoRepeatNgramSize |
Blocks repeated n-grams |
DiversityLength |
Beam diversity window |
EarlyStopping |
None, BestBeam or BeamCount |
Seed |
Random seed |
Florence Example
var provider = Provider.GetProvider();
using (var pipeline = FlorencePipeline.Create(provider, "M:\\Models\\Florence-2-base", FlorenceType.Base))
{
var result = await pipeline.RunAsync(new FlorenceOptions
{
TaskType = TaskType.DETAILED_CAPTION,
Image = new ImageInput("Image.png")
});
Console.WriteLine(result.Result);
}
Region tasks (OD, DENSE_REGION_CAPTION, CAPTION_TO_PHRASE_GROUNDING etc) also return CoordinateResults.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows10.0.17763 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows10.0.17763
- MathNet.Numerics (>= 5.0.0)
- Microsoft.ML.Tokenizers (>= 2.0.0-preview.1.25125.4)
- System.Linq.Async (>= 7.0.1)
- TensorStack.Common (>= 0.15.0)
- TensorStack.OnnxRuntime (>= 0.15.0)
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.15.0 | 48 | 11/18/2026 |
| 0.14.14 | 51 | 11/17/2026 |
| 0.14.13 | 64 | 11/16/2026 |
| 0.14.12 | 59 | 11/15/2026 |
| 0.14.11 | 54 | 11/15/2026 |
| 0.14.10 | 65 | 11/14/2026 |
| 0.14.9 | 64 | 11/13/2026 |
| 0.14.8 | 61 | 11/10/2026 |
| 0.14.7 | 62 | 11/8/2026 |
| 0.14.6 | 66 | 11/5/2026 |
| 0.14.5 | 90 | 11/1/2026 |
| 0.14.4 | 133 | 10/29/2026 |
| 0.14.3 | 78 | 10/28/2026 |
| 0.14.2 | 111 | 10/20/2026 |
| 0.14.1 | 86 | 10/16/2026 |
| 0.13.13 | 79 | 10/11/2026 |
| 0.13.12 | 74 | 10/10/2026 |
| 0.13.10 | 91 | 10/6/2026 |
| 0.13.9 | 72 | 10/5/2026 |
| 0.13.8 | 84 | 10/4/2026 |
Loading failed