Multi-node
One copy of a model can span several machines, for a model too large for the GPUs of one. Each machine (a node) runs one server process, and together they work as one server. The nodes can be the trays of a GB200 or GB300 NVL72 rack, or hosts joined by InfiniBand, RoCE or Ethernet.
Multi-node needs a Pro license key on every node.
Running
Start the same command on every node. Only --node-rank changes.
# A 320B model on 8 GPUs, over two nodes of four. This is node 0; node 1 passes --node-rank 1.docker run -d --name layerscale --gpus all --network host \ -e LAYERSCALE_LICENSE_KEY=LSK-... -e LAYERSCALE_API_KEY=KEY \ -v ~/.cache/huggingface:/root/.cache/huggingface \ layerscale/layerscale:latest \ serve 0.0.0.0:8080 --model nvidia/GLM-5.3-Flash-NVFP4 --tp 8 --nnodes 2 --node-rank 0 --dist-init-addr node0:29500| Flag | Meaning |
|---|---|
--tp <N> |
GPUs in total, across all nodes. |
--nnodes <N> |
Number of nodes. Each holds the same share of the GPUs. |
--node-rank <K> |
This node’s number, from 0. |
--dist-init-addr <HOST:PORT> |
Node 0’s address and a free port the other nodes can reach. The same on every node. |
--network host lets the nodes reach each other. They can start in any order.
Node 0 serves the API, /health and /metrics, so point clients and probes at it. The other nodes serve no API and exit when node 0 stops.
Node 0 logs cluster_up once every node has joined, then ready. The other nodes log node_serving.
Network
The nodes exchange through NCCL, which picks the fastest path it finds: NVLink between the trays of an NVL72 rack, then InfiniBand or RoCE, then TCP.
The network sets the speed, because the nodes exchange at every layer of every token. Use NVLink or InfiniBand between the nodes. Plain Ethernet works, but is far slower.
NCCL’s own environment variables tune it. Set them the same on every node, with -e in Docker:
| Variable | Use |
|---|---|
NCCL_SOCKET_IFNAME |
The network interface the nodes reach each other on, such as eth0. Set it when a node has several. |
NCCL_IB_HCA |
The InfiniBand devices to use. |
NVL72 racks
NVLink between trays needs NVIDIA’s IMEX service (nvidia-imex) running on each tray, and its channel in the container:
docker run ... --device /dev/nvidia-caps-imex-channels/channel0 ...Limits
Multi-node serves text. Image and audio inputs, and the NVIDIA Dynamo worker, run on one node.