HartsyInference.Cpu 2.0.0-alpha.57

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

HartsyInference

C#/.NET inference for text, images, video, audio, vision, 3D, and world models, using CUDA, Vulkan, or CPU. No Python runtime is required for inference. GPU backends require compatible drivers and userspace libraries. Libraries target .NET 8 and .NET 10.

Alpha: pin an exact package version. Coverage varies by model, format, backend, and feature; implementation does not imply real-weight verification.

Install and generate

dotnet add package HartsyInference --prerelease

The meta-package includes Engine and the modality/backends. InferenceEngine owns model loading and generation:

using HartsyInference.Engine;
using HartsyInference.Engine.Dispatch;
using HartsyInference.Engine.Requests;

using InferenceEngine engine = new("cuda");
ImageResult image = await engine.Images.GenerateAsync(
    new ModelSpec { Requested = "sdxl", Modality = Modality.Image, LocalPath = "sdxl.safetensors" },
    new ImageRequest { Prompt = "a castle on a mountain at sunset", Steps = 25 });
// image.Rgb contains image.Width * image.Height * 3 RGB24 bytes.

Documentation

Repository and usage · SwarmUI extension · Model status · Benchmarks · Multi-GPU

Code/packages are MIT licensed. Model weights have separate publisher licenses.

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on HartsyInference.Cpu:

Package Downloads
HartsyInference

Meta-package for HartsyInference — a pure C#/.NET AI inference engine for text, diffusion images, speech, music, vision, video, 3D, and interactive world models. Adds all backends (CPU, CUDA, Vulkan) and modality packages in one reference.

HartsyInference.Cuda

CUDA GPU inference backend for HartsyInference with PTX kernels and cuBLAS integration.

HartsyInference.Vulkan

Vulkan compute backend for HartsyInference. Cross-vendor GPU inference (NVIDIA, AMD, Intel, Apple via MoltenVK) via SPIR-V compute shaders and P/Invoke into the Vulkan loader.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-alpha.66 0 9/11/2026
2.0.0-alpha.64 0 9/11/2026
2.0.0-alpha.63 0 9/11/2026
2.0.0-alpha.62 0 9/11/2026
2.0.0-alpha.61 0 9/11/2026
2.0.0-alpha.59 4 9/10/2026
2.0.0-alpha.58 32 9/10/2026
2.0.0-alpha.57 45 9/9/2026
2.0.0-alpha.56 45 9/9/2026
2.0.0-alpha.55 66 9/7/2026
2.0.0-alpha.54 72 9/6/2026
2.0.0-alpha.53 75 9/6/2026
2.0.0-alpha.52 74 9/6/2026
2.0.0-alpha.51 71 9/6/2026
2.0.0-alpha.50 70 9/6/2026
2.0.0-alpha.49 73 9/6/2026
2.0.0-alpha.48 83 9/6/2026
2.0.0-alpha.47 73 9/6/2026
2.0.0-alpha.46 78 9/3/2026
2.0.0-alpha.45 69 9/1/2026
Loading failed