NLaya 1.0.0
dotnet add package NLaya --version 1.0.0
NuGet\Install-Package NLaya -Version 1.0.0
<PackageReference Include="NLaya" Version="1.0.0" />
<PackageVersion Include="NLaya" Version="1.0.0" />
<PackageReference Include="NLaya" />
paket add NLaya --version 1.0.0
#r "nuget: NLaya, 1.0.0"
#:package NLaya@1.0.0
#addin nuget:?package=NLaya&version=1.0.0
#tool nuget:?package=NLaya&version=1.0.0
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.safetensorsdirectly. - 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 | 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
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.ML.Tokenizers (>= 2.0.0)
- System.Numerics.Tensors (>= 10.0.12)
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.Extensions.AI
Microsoft.Extensions.AI middleware (guardrail, router, tools) and dependency injection for NLaya. |
|
|
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 207 | 9/25/2026 |