User Guide¶
The guide covers everything from installation and interactive notebooks to compiled transforms, mixed-precision training, Hugging Face integration, and export.
Start Here¶
- Getting StartedInstall Jacobi, run your first tensor ops, and train a compiled neural network.
- NotebooksRun interactive Rust notebooks in VS Code or JupyterLab with inline SVG plots and tensor previews.
- Hardware BackendsSelect CPU, CUDA, Metal, ROCm, or TPU and configure caching or offline mode.
Core Concepts¶
- Tensors and RandomnessCreate tensors, sample with implicit RNG, run linear algebra and FFT, and browse the operations table.
- TransformsCompile with
jit, differentiate withgrad,jvp,hvp,checkpoint, andcustom_vjp, vectorize withvmap, and use compiled loops and conditionals. - Models and OptimizersDefine structs with
#[module], compose vision and transformer layers, load batches withDataLoader, and train withSgd,Adam,AdamW,RMSprop,Muon, andEma. - Mixed PrecisionUse
jit_autocastforBF16andFP16, train inFP8andFP4, or run quantizedINT8andUINT8workloads. - Distributed TrainingScale from single-node
pmapto multi-node SPMDshard_mapand hybrid DP x EP, AOT compile with zero HBM, run FlashAttention and XLA FFI kernels, exchange DLPack buffers, and profile withdebug_nansandmemory_stats.
Ecosystem and Deployment¶
- Hugging FaceLoad pretrained tokenizers, sharded safetensors weights, and datasets from the Hub.
- Export and ServingSave checkpoints, export to ONNX or StableHLO MLIR, and run an HTTP inference server.
- Data Formats and PlottingRead and write
.npy,.png,.wav,.csv, and MNIST files, and render SVG plots.