AxonML is built as a Rust workspace with 24 specialized crates.
+---------------------------------------------------------------------+
| Application Layer |
+-------------+--------------+--------------+------------------------+
| axonml-cli | axonml-server| axonml-tui | axonml-dashboard |
| (Binary) | (REST API) | (Terminal) | (WASM Web UI) |
+-------------+--------------+--------------+------------------------+
| axonml |
| (Umbrella Crate — Feature Flags + Monitor) |
+---------------------------------------------------------------------+
| Domain Layer |
+-------------+-------------+-------------+--------------+------------+
|axonml-vision|axonml-audio |axonml-text | axonml-llm |axonml-hvac |
| (CV/CNN) |(MFCC/Mel) |(Tokenizers) |(BERT/GPT/ |(Panoptes, |
| | | | LLaMA/Trident| Apollo, |
| | | | /Phi/Mistral)| etc.) |
+-------------+-------------+-------------+--------------+------------+
| Training Layer |
+-------------+-------------+-------------+--------------+------------+
| axonml-nn |axonml-optim |axonml-data |axonml-train |axonml-dist |
| (Modules) |(Adam/LAMB) |(DataLoader) |(Trainer/ |(DDP, FSDP) |
| | | |Benchmark/Adv)| |
+-------------+-------------+-------------+--------------+------------+
| Optimization Layer |
+-------------+-------------+-------------+--------------+
|axonml-quant |axonml-fusion|axonml-jit |axonml-profile|
| (INT8/INT4/ |(Kernel Fuse)|(Cranelift / |(Profiler/ |
| Q4_K/Q6_K) | | IR + trace) | Timeline) |
+-------------+-------------+-------------+--------------+
| Serialization Layer |
+------------------------------+--------------------------------------+
| axonml-serialize | axonml-onnx |
| (SafeTensors, Bincode, | (ONNX Import/Export, Opset 17, |
| StateDict, Checkpoint) | 40+ operators) |
+------------------------------+--------------------------------------+
| Computation Layer |
+---------------------------------------------------------------------+
| axonml-autograd |
| (Dynamic Graph, AMP, Checkpointing, Graph Inspect) |
+---------------------------------------------------------------------+
| axonml-tensor |
| (N-D Arrays, Broadcasting, Matmul, Lazy Tensors, Sparse) |
+---------------------------------------------------------------------+
| axonml-core |
| (Device, DType, Storage, Memory, Backends) |
| CPU | CUDA | Vulkan | Metal | WebGPU |
+---------------------------------------------------------------------+
| Crate | Description | Key Types |
|---|---|---|
| axonml-core | Device abstraction, dtypes, storage, backends | Device, DType, Error, Scalar, Numeric, Float |
| axonml-tensor | N-dimensional tensor operations | Tensor<T>, LazyTensor, Shape, Strides |
| Crate | Description | Key Types |
|---|---|---|
| axonml-autograd | Automatic differentiation | Variable, GradFn, no_grad, autocast, checkpoint |
| Crate | Description | Key Types |
|---|---|---|
| axonml-nn | Neural network modules | Module, Linear, Conv2d, MultiHeadAttention, LSTM, TernaryLinear, SparseLinear, MoELayer |
| axonml-optim | Optimizers + LR schedulers + health monitor | SGD, Adam, AdamW, LAMB, RMSprop, CosineAnnealingLR, OneCycleLR, GradScaler, TrainingMonitor |
| axonml-data | Data loading and batching | DataLoader, Dataset, RandomSampler, SequentialSampler, Transform |
| axonml-train | High-level training glue | TrainingConfig, EarlyStopping, ProgressLogger, benchmark_model, AdversarialTrainer |
| axonml-distributed | Distributed training | DDP, FSDP, Pipeline, ProcessGroup, World, ColumnParallelLinear, NcclBackend |
| Crate | Description | Key Types |
|---|---|---|
| axonml-vision | Computer vision, detection, biometrics | LeNet, ResNet, ViT, DETR, NanoDet, BlazeFace, RetinaFace, Nexus, Phantom, NightVision, AegisIdentity, Argus*, Echo*, Mnemosyne*, Aegis3D, CocoDataset, WiderFaceDataset, FocalLoss, GIoULoss |
| axonml-audio | Audio processing | MelSpectrogram, MFCC, Resample, AddNoise, SyntheticCommandDataset |
| axonml-text | NLP utilities | WhitespaceTokenizer, CharTokenizer, BasicBPETokenizer, Vocab, TextDataset |
| axonml-llm | Large language models | Bert, GPT2, LLaMA, Mistral, Phi, ChimeraModel, HydraModel, SSMBlock, TridentModel, TextGenerator, HFLoader |
| axonml-hvac | HVAC fault-detection models | Panoptes, Apollo, Aquilo, Boreas, Colossus, Gaia, Naiad, Vulcan, Zephyrus |
| Crate | Description | Key Types |
|---|---|---|
| axonml-serialize | Model serialization | StateDict, TensorData, SafeTensors, Bincode |
| axonml-onnx | ONNX import/export (opset 17) | OnnxModel, OnnxExporter, import_onnx, export_onnx |
| Crate | Description | Key Types |
|---|---|---|
| axonml-quant | Model quantization | INT8 (Q8_0), INT4 (Q4_0 / Q4_1), INT5 (Q5_0 / Q5_1), Q4_K / Q6_K GGUF blocks, F16 |
| axonml-fusion | Kernel fusion | FusedLinear (MatMul + Bias + Act), FusedElementwise |
| axonml-jit | JIT compilation | JitCompiler, Graph, CompiledFunction, trace, Cranelift codegen |
| axonml-profile | Profiling | Profiler, MemoryProfiler, ComputeProfiler, TimelineProfiler, BottleneckAnalyzer |
| Crate | Description | Notes |
|---|---|---|
| axonml | Umbrella crate | Feature-gated re-exports, TrainingMonitor (live browser monitor) |
| axonml-cli | Command-line interface | Binary axonml — scaffolding, training, eval, hub, kaggle, W&B, dataset mgmt |
| axonml-server | REST API server | Axum + JWT + PTY WebSocket; Binary axonml-server |
| axonml-tui | Terminal UI | Model/data/training/graph views |
| axonml-dashboard | Leptos/WASM web UI | Dashboard served by axon start |
All 24 crates (from Cargo.toml):
axonml-core axonml-llm
axonml-tensor axonml-hvac
axonml-autograd axonml-train
axonml-nn axonml-distributed
axonml-optim axonml-serialize
axonml-data axonml-onnx
axonml-vision axonml-quant
axonml-audio axonml-fusion
axonml-text axonml-jit
axonml-profile axonml-cli
axonml-tui axonml-server
axonml-dashboard axonml (umbrella)
axonml (umbrella)
├── axonml-core
├── axonml-tensor — axonml-core
├── axonml-autograd — axonml-tensor
├── axonml-nn — axonml-autograd
├── axonml-optim — axonml-nn
├── axonml-data — axonml-tensor
├── axonml-vision — axonml-nn, axonml-data
├── axonml-audio — axonml-data
├── axonml-text — axonml-nn, axonml-data
├── axonml-llm — axonml-nn
├── axonml-hvac — axonml-nn
├── axonml-train — axonml-nn (+ axonml-vision, axonml-llm via features)
├── axonml-distributed — axonml-nn
├── axonml-serialize — axonml-nn
├── axonml-onnx — axonml-nn, axonml-serialize
├── axonml-jit — axonml-tensor
├── axonml-quant — axonml-tensor
├── axonml-fusion — axonml-tensor
└── axonml-profile — axonml-tensor
# Build a specific crate
cargo build -p axonml-nn
# Test a specific crate
cargo test -p axonml-nn
# Generate docs
cargo doc -p axonml-nn --open
# Build with features
cargo build -p axonml-core --features "cuda"
cargo build -p axonml --features "cuda,nccl"
| Feature | Description |
|---|---|
std |
Standard library (default) |
cuda |
NVIDIA CUDA backend (cuBLAS + PTX kernels) |
cudnn |
cuDNN dispatch (requires cuda) |
vulkan |
Vulkan compute shaders |
metal |
Apple Metal backend |
wgpu |
WebGPU (WGSL via wgpu crate) |
| Feature | Pulls in |
|---|---|
full (default) |
Everything listed below |
core |
core + tensor + autograd |
nn |
core + nn + optim |
data |
core + data |
vision |
nn + data + vision |
text |
nn + data + text |
audio |
nn + data + audio |
llm |
nn + llm |
hvac |
nn + hvac |
train |
nn + train |
distributed |
nn + distributed |
nccl |
distributed + NCCL backend |
profile, serialize, quant, fusion, jit, onnx |
matching sub-crate |
cuda, cudnn, wgpu |
GPU backend passthrough |
Per-crate rustdoc is published to docs.rs:
Last updated: 2026-04-16 (v0.6.1)