Skip to content

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 with grad, jvp, hvp, checkpoint, and custom_vjp, vectorize with vmap, and use compiled loops and conditionals.
  • Models and OptimizersDefine structs with #[module], compose vision and transformer layers, load batches with DataLoader, and train with Sgd, Adam, AdamW, RMSprop, Muon, and Ema.
  • Mixed PrecisionUse jit_autocast for BF16 and FP16, train in FP8 and FP4, or run quantized INT8 and UINT8 workloads.
  • Distributed TrainingScale from single-node pmap to multi-node SPMD shard_map and hybrid DP x EP, AOT compile with zero HBM, run FlashAttention and XLA FFI kernels, exchange DLPack buffers, and profile with debug_nans and memory_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.