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
| Platform | Status | Notes |
|---|---|---|
| Windows x64 | Full | Recommended |
| Linux x64 | Full | Ubuntu 20.04+ |
| macOS x64 | Full | macOS 11+ |
| macOS ARM64 | Full | Apple Silicon |
.NET Version Support
| Version | Status |
|---|---|
| .NET 10.0 | Primary target |
| .NET 8.0 | Supported |
| .NET 7.0 | Supported |
| .NET 6.0 | Supported |
| .NET Framework 4.7.1+ | Supported |
GPU Acceleration
NVIDIA CUDA
For GPU-accelerated training on NVIDIA GPUs:
- Install CUDA Toolkit 12.x+ - Download from NVIDIA CUDA Downloads
- Install cuDNN 9.x+ - Download from NVIDIA cuDNN
- Verify installation:
nvcc --version
OpenCL
For AMD/Intel GPU support:
- Install OpenCL runtime for your GPU vendor
- 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
- Verify CUDA installation:
nvcc --version - Check GPU visibility:
nvidia-smi - Ensure CUDA path is in environment variables
Build Errors
- Clear NuGet cache:
dotnet nuget locals all --clear - Restore packages:
dotnet restore - Rebuild:
dotnet build