Cider.Native
0.1.5
See the version list below for details.
dotnet add package Cider.Native --version 0.1.5
NuGet\Install-Package Cider.Native -Version 0.1.5
<PackageReference Include="Cider.Native" Version="0.1.5" />
<PackageVersion Include="Cider.Native" Version="0.1.5" />
<PackageReference Include="Cider.Native" />
paket add Cider.Native --version 0.1.5
#r "nuget: Cider.Native, 0.1.5"
#:package Cider.Native@0.1.5
#addin nuget:?package=Cider.Native&version=0.1.5
#tool nuget:?package=Cider.Native&version=0.1.5
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 sharedSystem + Stateprefix once onseq_id = 0and 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 all151,936vocabulary 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 bySelectiveLmHead.
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 | 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
- Cider.NET (>= 0.1.5)
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.