NLaya 1.0.0

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

NLaya

Typed, calibrated "System 1" decisions with the Laya models. Give it a state (text, JSON or a conversation) and typed questions (choice, score, noul); one forward pass returns typed answers with probabilities. Includes the Router (picks the English, multilingual or typed-decisions checkpoint per request), language detection, email cleaning and question presets.

This package has no inference code of its own. Add a backend:

  • NLaya.TorchSharp: loads model.safetensors directly.
  • NLaya.Onnx: runs laya's ONNX export with ONNX Runtime.

NLaya doesn't download models. Fetch them with the Hugging Face CLI first:

hf download convaiinnovations/laya-multilingual
using NLaya;
using NLaya.TorchSharp;

await using var agent = await Laya.LoadAsync(Laya.MultilingualModel, o => o.UseTorchSharp());
var result = agent.Predict("I was charged twice, please refund me", Presets.Triage());
Console.WriteLine(result.Choice("intent").Choice);

NLaya is a .NET port of laya by Convai Innovations / NandhaKishorM (Apache-2.0). The Laya model weights are theirs, published on Hugging Face under convaiinnovations. Source, docs and samples: https://github.com/ljfio/NLaya.

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

Showing the top 4 NuGet packages that depend on NLaya:

Package Downloads
NLaya.TorchSharp

TorchSharp inference backend for NLaya: loads Laya model.safetensors directly.

NLaya.Onnx

ONNX Runtime inference backend for NLaya (encoder.onnx + head.onnx exports).

NLaya.ML

An ML.NET pipeline stage for NLaya: answer Laya questions over an IDataView, in batches.

NLaya.Extensions.AI

Microsoft.Extensions.AI middleware (guardrail, router, tools) and dependency injection for NLaya.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 220 9/25/2026