numr 1.0.0

Numerical computing and tensor library for Rust, in the role of NumPy: n-dimensional arrays, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU
Documentation
# Distributed Computing

numr exposes collective communication through the `Communicator` trait in `numr::runtime`.
The trait covers all-reduce, broadcast, all-gather, reduce-scatter, and point-to-point messages.

| Type | Path | Feature | Use |
| ---- | ---- | ------- | --- |
| `Communicator` | `numr::runtime::Communicator` | - | The collective trait |
| `NoOpCommunicator` | `numr::runtime::NoOpCommunicator` | - (always available) | Single-process stand-in |
| `LocalCommunicator` | `numr::runtime::LocalCommunicator` | - (always available) | In-process group, one rank per thread, for testing data-parallel code on CPU threads. `LocalCommunicator::group(world)` creates the ranks. `abort()` aborts the group |
| `AbortOnPanic` | `numr::runtime::AbortOnPanic` | - (always available) | Guard from `LocalCommunicator::abort_on_panic()`. A panic on its thread while it lives aborts the group |
| `NcclCommunicator` | `numr::runtime::NcclCommunicator` | `nccl` | Multi-GPU collectives through NCCL. `from_streams` creates every rank of a single-process group. `from_rank` joins one rank of a multi-process group. `abort()` aborts the communicator through `ncclCommAbort` |
| `NcclId` | `numr::runtime::NcclId` | `nccl` | NCCL unique id for `from_rank`. One rank creates it with `NcclId::new()`. The other ranks rebuild it with `from_bytes` or `from_slice` |
| `NexarNetCommunicator` | `numr::runtime::NexarNetCommunicator` | `distributed` | Multi-machine runs over pure-Rust QUIC transport through [nexar]https://github.com/ml-rust/nexar |
| `HierarchicalCommunicator` | `numr::runtime::HierarchicalCommunicator` | `distributed-gpu` | NCCL within a node, nexar between nodes |
| `CommunicatorGroup` | `numr::runtime::CommunicatorGroup` | - | Splits a world communicator into sub-groups |
| `BackwardHook` | `numr::autograd::BackwardHook` | - | Triggers cross-node gradient synchronization during `backward()` |

## Parallel Groups

`CommunicatorGroup` splits a world communicator by `ParallelDim`:

| `ParallelDim` | Meaning |
| ------------- | ------- |
| `Data` | Replicate the model, shard the data |
| `Tensor` | Shard weight matrices within a layer |
| `Pipeline` | Shard layers across stages |
| `Expert` | Distribute MoE experts across devices |

## Feature Requirements

Enable the feature for each communicator, as the table shows. `NoOpCommunicator` needs no feature.
`distributed-gpu` enables `distributed` and `nccl`.