Installation

Basic Installation

Using .NET CLI

dotnet add package AiDotNet

Using Package Manager Console

Install-Package AiDotNet

Using PackageReference

Add to your .csproj file:

<ItemGroup>
  <PackageReference Include="AiDotNet" Version="*" />
</ItemGroup>

Platform Support

PlatformStatusNotes
Windows x64FullRecommended
Linux x64FullUbuntu 20.04+
macOS x64FullmacOS 11+
macOS ARM64FullApple Silicon

.NET Version Support

VersionStatus
.NET 10.0Primary target
.NET 8.0Supported
.NET 7.0Supported
.NET 6.0Supported
.NET Framework 4.7.1+Supported

GPU Acceleration

NVIDIA CUDA

For GPU-accelerated training on NVIDIA GPUs:

  1. Install CUDA Toolkit 12.x+ - Download from NVIDIA CUDA Downloads
  2. Install cuDNN 9.x+ - Download from NVIDIA cuDNN
  3. Verify installation:
    nvcc --version

OpenCL

For AMD/Intel GPU support:

  1. Install OpenCL runtime for your GPU vendor
  2. Install CLBlast for optimized BLAS operations

Optional Packages

Model Serving

dotnet add package AiDotNet.Serving

Dashboard

dotnet add package AiDotNet.Dashboard

Verifying Installation

using AiDotNet;

Console.WriteLine("AiDotNet installed successfully!");
var builder = new AiModelBuilder<double, double[], double>();
Console.WriteLine("AiModelBuilder created.");

Troubleshooting

Package Not Found

Ensure you have the latest NuGet sources:

dotnet nuget list source

GPU Not Detected

  1. Verify CUDA installation: nvcc --version
  2. Check GPU visibility: nvidia-smi
  3. Ensure CUDA path is in environment variables

Build Errors

  1. Clear NuGet cache: dotnet nuget locals all --clear
  2. Restore packages: dotnet restore
  3. Rebuild: dotnet build