The complete AI platform
for .NET developers.
Train, serve, and monetize AI models entirely in C#. From neural networks to RAG pipelines, computer vision to reinforcement learning — with custom GPU kernels that are up to 500x faster than PyTorch. No Python. No wrappers. No compromises.
Faster than PyTorch. On any GPU.
AiDotNet.Tensors ships custom GPU kernels built on ILGPU — no CUDA lock-in. Your code runs on NVIDIA, AMD, and Intel GPUs with zero configuration.
Adaptive thresholds automatically route small operations to CPU and large operations to GPU for optimal performance.
Every AI domain. One NuGet package.
139 modules covering neural networks, classical ML, computer vision, audio, NLP, reinforcement learning, model serving, and more.
GPU Acceleration
Custom GPU kernels via ILGPU for NVIDIA, AMD, and Intel GPUs. Up to 500x GEMM speedup, 200x Conv2D. Adaptive CPU/GPU routing.
Neural Networks
CNN, RNN, Transformer, GAN, VAE, GNN, Diffusion, NeRF and more. 160 layer types covering every major architecture.
Computer Vision
YOLO v8-11, DETR, RT-DETR, SAM/SAM2, segmentation, OCR, text detection. Full detection-to-recognition pipeline.
Diffusion & Generation
40+ image diffusion models (SD, SDXL, SD3, Flux, ControlNet), 29 video generation models, 7 audio diffusion models.
Classical ML
50 classifiers, 57 regressors, 48 clustering algorithms. Complete traditional ML toolkit with AutoML and NAS.
Audio & Speech
Speech recognition, text-to-speech, music generation, audio classification. 250+ implementations across the full audio pipeline.
Vision-Language Models
LLaVA, InternVL, CLIP, DINOv2/v3, Florence2, Qwen-VL. Instruction-tuned VLMs and vision encoders.
Reinforcement Learning
DQN, PPO, SAC, A3C, TD3, MuZero, Decision Transformer, MADDPG. 50+ agents for games, robotics and optimization.
Model Serving & API
Production REST API with AiDotNet.Serving. Model encryption, license management, API key auth, Stripe billing. Deploy your AI as a product.
LoRA Fine-tuning
LoRA, QLoRA, DoRA, AdaLoRA, VeRA, MoRA and more adapters plus training strategies. Fine-tune models with minimal compute.
Federated & Distributed
FedAvg, FedProx, scaffold, and 30+ distributed training strategies. Train across hospitals, banks, or edge devices while keeping data private.
NER & NLP
BERT, BioBERT, FinBERT, LegalBERT, DeBERTa and 30+ named entity recognition models. BiLSTM-CRF, span-based and transformer NER.
One API for everything
AiModelBuilder is a single fluent API with 130+ configuration methods.
Simple for beginners, fully customizable for experts.
var result = await new AiModelBuilder<double, double[], double>()
.ConfigureModel(new RandomForestClassifier<double>(nEstimators: 100))
.ConfigurePreprocessing()
.BuildAsync(features, labels);
var prediction = result.Predict(newSample); // That's it. Built for your industry
Purpose-built AI pipelines for regulated industries. Complete workflows from data ingestion to production deployment.
Financial Services
FinBERT sentiment, DeepAR forecasting, GARCH volatility, fraud detection. Native .NET performance for trading systems.
Healthcare
Medical imaging with MedSAM, clinical NLP with BioBERT, and federated learning for HIPAA-compliant cross-hospital training.
Document AI
OCR, layout analysis, key-value extraction from invoices, contracts, and medical records. Full pipeline in pure .NET.
How we compare
AiDotNet is the only .NET platform that covers training, serving, and monetization. No compromises.
| Feature | AiDotNet | ML.NET | TorchSharp | PyTorch |
|---|---|---|---|---|
| Language | Pure C# | C# + ONNX | C# wrapper | Python |
| Neural Network Layers | 160+ | ~10 | 50+ | 100+ |
| Classical ML Algorithms | 155+ | ~30 | None | None |
| Computer Vision Models | 115+ | Limited | Via LibTorch | Via torchvision |
| Vision-Language Models | 165+ | None | None | Via HF |
| Diffusion Models | 75+ | None | None | Via diffusers |
| Audio / Speech / TTS | 250+ | None | Limited | Via torchaudio |
| Reinforcement Learning | 50+ | None | Manual | Via SB3 |
| GPU Support | Any GPU (ILGPU) | ONNX only | CUDA only | CUDA only |
| Federated Learning | 180+ | None | None | Via Flower |
| Model Serving | Built-in | Manual | None | TorchServe |
| Runtime Dependency | None | None | ~700MB LibTorch | Python runtime |
Why not TorchSharp?
- ~700MB LibTorch runtime dependency
- Slow startup loading PyTorch runtime
- Array copying between .NET and LibTorch
- No classical ML, no AutoML, no serving
Why not ML.NET?
- Only ~10 neural network architectures
- No computer vision, audio, VLMs, or RL
- No GPU acceleration or custom kernels
- No model serving or monetization tools
Why not Python?
- GIL limits real concurrency
- Separate runtime in production stack
- No native .NET type safety or AOT
- Separate team/skills from your .NET devs
Native .NET performance
No Python runtime. No C++ interop. Pure .NET speed with hardware-level optimizations.
From training to production
AiDotNet covers the entire lifecycle. Train models, deploy as APIs, and manage customers — all in .NET.
AiDotNet
The core library. 7,300+ classes for training, inference, and experimentation. Install from NuGet and start building.
AiDotNet.Tensors
Custom GPU kernels via ILGPU. Works on NVIDIA, AMD, and Intel GPUs. Adaptive CPU/GPU routing for optimal performance.
AiDotNet.Serving
Deploy models as REST APIs. Encrypted model protection, API key auth, license management, and Stripe billing built in.
Ready to build AI in .NET?
Install from NuGet and start training models in minutes. The full library is free and open source.