NNUE.Net 1.0.0

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

NNUE.Net

A feature-agnostic NNUE library: evaluation, incremental updates, training, quantization and storage of efficiently updatable neural networks, the kind of network Stockfish uses. The library does not know what the features mean, so it works for any game or domain with sparse binary inputs.

  • SIMD kernels for AVX512-VNNI (net11.0 build), AVX-512, AVX-VNNI, AVX2, SSSE3 and NEON, plus a scalar reference; all bit-identical, chosen automatically for the CPU.
  • Incremental accumulator updates: child = parent - removed + added in one call, going back to the parent is free.
  • Int16 networks with one output layer, or Stockfish-style Int8 networks with hidden layers, pairwise and squared activations, dense and skip connections and output buckets.
  • A float model, an Adam trainer and a quantizer for small networks; import of networks trained with bullet.
  • Loading from files, streams, memory, asynchronously or memory-mapped. Trimming- and AOT-compatible.
using Nnue.Configuration;
using Nnue.Evaluation;
using Nnue.Models;

using var model = NnueModel.Load("net.nnue");
var evaluator = new NnueEvaluator(model);                    // best SIMD backend of this CPU
using var accumulators = model.CreateAccumulators(256);      // e.g. one per slot and search ply

evaluator.RefreshAccumulator(accumulators[0], featuresOfSlot0);
evaluator.RefreshAccumulator(accumulators[1], featuresOfSlot1);
evaluator.UpdateAccumulator(accumulators[0], accumulators[2], removedFeatures, addedFeatures);
int score = evaluator.Evaluate(accumulators[2], accumulators[1], bucket);

Declare networks with NetworkSpec.CreateSimple, NetworkSpec.CreateInt8, NetworkSpec.CreateStockfishLike or the fluent NetworkSpec.CreateBuilder; train them with Nnue.Training (FloatModel, NnueTrainer, NnueQuantizer). Every public member is documented in the IDE; the repository contains a user guide, an architecture description and a runnable demo.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net11.0

    • No dependencies.
  • net8.0

    • No dependencies.

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
1.1.0 63 11/18/2026
1.0.0 59 11/18/2026
0.1.0 67 11/18/2026