Cider.Native 0.1.8

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

Cider.Native

In-process GGUF v3 weight loader, selective $K$-row LM-head engine, and libllama Metal/CPU backend for Cider.NET.

Cider.Native runs System One decisions (Choice, Score, Noul) directly in-process from .gguf files or local Ollama model blobs (~/.ollama/models/blobs/) without requiring an external inference server.

Installation

dotnet add package Cider.Native

Key Components

  • LlamaCppBackend: Direct @DllImport("llama") P/Invoke backend supporting Apple Metal 4 GPU offload (nGpuLayers = -1) and CPU execution. Evaluates the shared System + State prefix once on seq_id = 0 and reuses/branches prefix KV and recurrent SSM states (llama_memory_seq_rm / llama_state_seq_get_data_ext) across all question suffixes.
  • SelectiveLmHead: Projects the final normalized hidden state $h_{\text{last}} \in \mathbb{R}^d$ only against the $K \le 255$ permitted option token rows (F32, F16, BF16, Q8_0, Q4_0, Q4_K, Q6_K) rather than all 151,936 vocabulary rows (~38,000× output-head speedup).
  • GgufFile & GgufTokenizer: Zero-dependency memory-mapped GGUF v2/v3 parser and byte-level BPE tokenizer with Qwen ChatML special-token support.
  • Qwen3ManagedBackend: Pure managed G# GGUF execution backend powered by SelectiveLmHead.

Quick Start (G#)

package Demo

import Cider
import Cider.Native
import System

// Resolves local Ollama GGUF blob for "qwen3:0.6b" automatically without needing `ollama serve`
using let backend = LlamaCppBackend("qwen3:0.6b", nGpuLayers: -1)
let client = DecisionClient(backend, "qwen3:0.6b")

let pRefund = client.DecideNoul(
    "Returns are allowed within 30 days. Purchase was 12 days ago.",
    "Is this purchase eligible for a return?"
)
Console.WriteLine("P(eligible) = $pRefund")

License

MIT — see LICENSE.

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 (1)

Showing the top 1 NuGet packages that depend on Cider.Native:

Package Downloads
Hyperplane.Cider

Optional reader adapter for Hyperplane.NET: CiderEmbedder turns any Cider.NET IEmbeddingBackend (including Cider.Native's in-process llama.cpp LlamaEmbedder over GGUF models) into a Hyperplane IEmbedder with an honest, provenance-derived experimental profile.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.52 0 12/4/2026
0.1.51 0 12/4/2026
0.1.35 103 11/29/2026
0.1.34 218 11/28/2026
0.1.33 295 11/25/2026
0.1.13 118 11/18/2026
0.1.11 128 11/16/2026
0.1.9 126 11/16/2026
0.1.8 127 11/16/2026
0.1.5 112 11/14/2026
0.1.2 115 11/13/2026