Themis.Inference.Gguf 2.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Themis.Inference.Gguf --version 2.0.3
                    
NuGet\Install-Package Themis.Inference.Gguf -Version 2.0.3
                    
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="Themis.Inference.Gguf" Version="2.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Themis.Inference.Gguf" Version="2.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Themis.Inference.Gguf" />
                    
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 Themis.Inference.Gguf --version 2.0.3
                    
#r "nuget: Themis.Inference.Gguf, 2.0.3"
                    
#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 Themis.Inference.Gguf@2.0.3
                    
#: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=Themis.Inference.Gguf&version=2.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Themis.Inference.Gguf&version=2.0.3
                    
Install as a Cake Tool

Themis.Inference.Gguf

Themis.Inference.Gguf is an optional .NET 10 package for RLCD GGUF decision inference, GGUF model packing, and conversational inference through an external llama.cpp server. It does not contain model weights, start the server, or add ONNX Runtime dependencies.

Install it when using the extracted APIs:

dotnet add package Themis.Inference.Gguf

Applications using GGUF functionality should reference this package directly and use Themis.Inference.Gguf.Runtime. The main Themis.Inference package no longer carries a transitive GGUF dependency.

llama.cpp chat

The chat provider implements IInferenceProvider and uses the OpenAI-compatible /v1/chat/completions endpoint. Configure the endpoint and the model alias used by the server:

using Themis.Inference.Gguf.Runtime;

services.AddThemisLlamaCppChat(options =>
{
    options.ChatCompletionsEndpoint =
        new Uri("http://localhost:8080/v1/chat/completions");
    options.DefaultModel = "Qwen3-0.6B-GGUF";
});

The provider maps Themis chat messages, sampling options, tools, JSON response formats, usage, and cancellation to the endpoint contract. It does not convert arbitrary GGUF output into typed RLCD decisions.

Pinned Qwen3 proof-of-concept

The Qwen3-0.6B-GGUF model card declares Apache-2.0. This example pins the model repository revision and the llama.cpp source commit; check the upstream terms and host requirements before redistribution or deployment. Model weights are downloaded separately and are not part of this package:

$model = Join-Path $env:LOCALAPPDATA 'Themis\models\Qwen3-0.6B-Q8_0.gguf'
Invoke-WebRequest `
  'https://huggingface.co/Qwen/Qwen3-0.6B-GGUF/resolve/23749fefcc72300e3a2ad315e1317431b06b590a/Qwen3-0.6B-Q8_0.gguf' `
  -OutFile $model

# Build llama.cpp from commit 620d2225cc436ab0b001e3200e590e3b286ef9ab
llama-server --model $model --alias Qwen3-0.6B-GGUF --port 8080

The provider is tested with deterministic fake HTTP responses in the normal test suite. Live server/model testing is opt-in and does not establish accelerator execution or support for every model, server build, or device. Configure THEMIS_LLAMACPP_CHAT_ENDPOINT and optionally THEMIS_LLAMACPP_CHAT_MODEL to run that integration test:

dotnet test .\tests\Themis.Tests\Themis.Tests.csproj `
  --artifacts-path .\artifacts `
  --filter "TestCategory=LlamaCppChatIntegration"

The Qwen model card and the pinned llama.cpp server documentation are available at Qwen/Qwen3-0.6B-GGUF and llama.cpp server README.

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
4.3.0 45 11/7/2026
4.2.0 50 11/5/2026
4.1.0 92 11/2/2026
4.0.2 105 10/27/2026
4.0.1 99 10/27/2026
4.0.0 92 10/26/2026
2.0.3 116 10/25/2026 2.0.3 is deprecated because it is no longer maintained.