HartsyInference.Cpu
2.0.0-alpha.57
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
<PackageReference Include="HartsyInference.Cpu" Version="2.0.0-alpha.57" />
<PackageVersion Include="HartsyInference.Cpu" Version="2.0.0-alpha.57" />
<PackageReference Include="HartsyInference.Cpu" />
paket add HartsyInference.Cpu --version 2.0.0-alpha.57
#r "nuget: HartsyInference.Cpu, 2.0.0-alpha.57"
#:package HartsyInference.Cpu@2.0.0-alpha.57
#addin nuget:?package=HartsyInference.Cpu&version=2.0.0-alpha.57&prerelease
#tool nuget:?package=HartsyInference.Cpu&version=2.0.0-alpha.57&prerelease
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 | Versions 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. |
-
net10.0
- HartsyInference.Core (>= 2.0.0-alpha.57)
-
net8.0
- HartsyInference.Core (>= 2.0.0-alpha.57)
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 |