RecursiveAI.OneModel 1.3.0

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

OneModel

A neural-network runtime for .NET in pure managed C#, with no native binaries and no dependency beyond the shared framework.

  • RecursiveAI.OneModel: ONNX import, graph optimization and SIMD CPU kernels (AVX2, AVX-512, NEON, portable SIMD) for inference in fp32, fp16/bf16 and int8; thread-safe sessions; an opt-in exact mode with bit-identical results on every platform; its own memory-mappable model format. NativeAOT-, trim- and WebAssembly-compatible.
  • RecursiveAI.OneModel.Gpu: the same sessions on the GPU (Vulkan, Metal, browser WebGPU), with per-operator CPU fallback.
  • RecursiveAI.OneModel.Training: reverse-mode autodiff, modules, losses, SGD/Adam/AdamW, data loading, checkpoints, and tracing a trained module into a graph.
using RecursiveAI.OneModel;

using var m = Model.Load("model.onnx");
float[] v = m.Run(tokens);   // names and shapes come from the model

Several inputs, tensors, exact mode, training, tracing and migration notes from ONNX Runtime and TorchSharp: the usage guide.

using RecursiveAI.OneModel;
using RecursiveAI.OneModel.Graph;
using RecursiveAI.OneModel.Tensors;

using var session = Session.Load("model.onnx", new ModelOptions { Mode = ArithmeticMode.Exact });
using Tensor x = Tensor.FromSpan<float>(values, 2, 16);
using SessionOutputs outputs = session.Run(new Dictionary<string, Tensor> { ["x"] = x });
float[] y = outputs["y"].ToArray<float>();

The public API follows Semantic Versioning. Documentation, supported operators, source and issues: https://github.com/recursive-ai-oss/onemodel-csharp.

Licensed MIT OR Apache-2.0.

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.
  • net10.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on RecursiveAI.OneModel:

Package Downloads
RecursiveAI.OneModel.Training

Training for the OneModel runtime, on the tensor layer's reverse-mode autodiff: modules (linear, convolution, batch and layer norm, embedding, dropout, multi-head attention, transformer encoder layer), losses, SGD, Adam and AdamW with gradient clipping and learning-rate schedules, bit-exact checkpoints, and gradient checking.

RecursiveAI.OneNlp.Neural

spaCy-class NLP for .NET: the neural layer on OneModel. Fast and transformer encoders, tagger, morphologizer, lemmatizer, dependency parser, entity recognizer, text classifier and span categorizer, Train for training and fine-tuning in C#, saved pipelines and sentence embeddings. Unaffiliated with other projects named OneNLP.

RecursiveAI.OneSpeech

Speech recognition for .NET. Managed transcription, timing and speaker recognition. Unaffiliated with other products or companies named OneSpeech.

RecursiveAI.OneIndex.Models

Embedders and rerankers for the OneIndex embedded search engine: a WordPiece tokenizer, the default English dense embedder (bge-small-en-v1.5, MIT licence, weights included) and the default cross-encoder reranker (ms-marco-MiniLM-L6-v2, Apache-2.0 licence, weights included), running on OneModel. Unaffiliated with other products named OneIndex, OneSearch or similar.

RecursiveAI.OneModel.Gpu

Runs RecursiveAI.OneModel models on the GPU: Vulkan, Metal and browser WebGPU from pure C#, with per-operator CPU fallback.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 93 11/13/2026
1.2.0 661 11/8/2026
1.0.0 492 10/31/2026
0.3.0-preview.1 263 10/30/2026

See CHANGELOG.md in the repository.