NLaya.TorchSharp
1.0.0
dotnet add package NLaya.TorchSharp --version 1.0.0
NuGet\Install-Package NLaya.TorchSharp -Version 1.0.0
<PackageReference Include="NLaya.TorchSharp" Version="1.0.0" />
<PackageVersion Include="NLaya.TorchSharp" Version="1.0.0" />
<PackageReference Include="NLaya.TorchSharp" />
paket add NLaya.TorchSharp --version 1.0.0
#r "nuget: NLaya.TorchSharp, 1.0.0"
#:package NLaya.TorchSharp@1.0.0
#addin nuget:?package=NLaya.TorchSharp&version=1.0.0
#tool nuget:?package=NLaya.TorchSharp&version=1.0.0
NLaya.TorchSharp
TorchSharp inference backend for NLaya: runs the ModernBERT
encoder and Laya decision head, reading model.safetensors directly.
This package references the managed TorchSharp package only. Add a libtorch runtime to your app:
TorchSharp-cpu, TorchSharp-cuda-linux or TorchSharp-cuda-windows.
await using var agent = await Laya.LoadAsync(Laya.DefaultModel, o => o.UseTorchSharp("cpu")); // or "cuda", "mps", "auto"
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
- NLaya (>= 1.0.0)
- TorchSharp (>= 0.107.0)
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.0.0 | 190 | 9/25/2026 |