Playbook · DGX Spark cluster

DGX Spark clusters: the cluster tax, and what both Sparks need.

Two DGX Sparks do not become one bigger computer, and two do not give twice the throughput by themselves. Here is why, how to choose, and what has to be on both.

What was run: nothing on this page has been run by us on hardware. It is written from the makers' documents. The reasoning that is ours is marked, and we give no speed results.

Why two DGX Sparks do not give twice the throughput

  1. Two Sparks are two computers with separate memory, joined by a network link.
  2. Split a model when it will not fit on one. Both Sparks then exchange data over the link and wait for each other: the cluster tax.
  3. If it fits on one, a copy on each avoids most of that, and helps only with enough requests at once. One reply is not twice as fast.
  4. Put the same image on both. The model files can be shared read-only from the first Spark with NFS. Measure one Spark against two.

Checked on 26 November 2026 against: NVIDIA's DGX Spark hardware and clustering pages and NCCL guide, and the current vLLM, Ray, Docker, Ubuntu Server NFS and Hugging Face documentation. We have not yet run this playbook start to finish on our own hardware.

Watch, then follow

The cluster tax, then the files on both Sparks, in two parts.

Part 1 of 2: Why two is not twice

Video, part 1: Why two is not twice. It covers: Two computers, not one; Memory and the link; Split, or copies; The cluster tax; Tensor or pipeline; Not twice as fast; What survives; What Ray adds; Measure it. Chapters and transcript
Read the words of this video

Why two is not twice. Why don't two DGX Sparks give twice the throughput?

The AI stack. We're at the bottom: the machines, and their cable.

Two computers, not one. A cluster of two Sparks is still two computers. A network link joins them. It doesn't merge their memory.

Memory and the link. NVIDIA lists two hundred seventy three gigabytes a second of memory bandwidth in each Spark. Each fast port provides up to two hundred gigabits a second. That's twenty five gigabytes a second.

Split, or copies. You can split one model across both. That can make room for a model too big for one. Or, if it fits on one, run a copy on each.

The cluster tax. When split, the Sparks must send each other data, over a link much slower than their memory. They wait for each other, so the slower one sets the pace. And each one carries its own software, which uses memory and processor time.

Tensor or pipeline. Tensor parallel divides each layer, so the Sparks exchange partial results at every layer. Pipeline parallel gives each one some layers. Less is exchanged, but the stages depend on each other in turn.

Not twice as fast. Two copies avoid most of that tax. But one reply is still made by one Spark, so it isn't twice as fast. The second copy only adds throughput when one Spark has more requests than it handles well.

What survives. If a split model loses a Spark or the link, expect it to stop. With copies, the other can carry on, if the balancer is still running and notices.

What Ray adds. Ray places and coordinates work. It doesn't merge their memory, or make data cross the cable any faster.

Measure it. So measure one Spark against two, with the same requests. Try one request at a time, then many at once.

Choose with care. If it fits, try copies first. Next, what both Sparks need.

Slides for this part, at your own pace:

10 steps

  1. Diagram for step 1, Count two computers, not one: Two computers, not one
    Diagram: Two computers, not one, for step 1

    What it is

    1. Count two computers, not one

    Each Spark keeps its own 128 GB of memory (NVIDIA's figure). The link lets them send each other data. It does not give one program a single bigger memory.

  2. Diagram for step 2, Compare the maker's two figures: Memory and the link
    Diagram: Memory and the link, for step 2

    What it is

    2. Compare the maker's two figures

    NVIDIA lists 273 GB/s of memory bandwidth in each Spark, and up to 200 Gb/s for each QSFP port, which is 25 GB/s. These are peak figures from the maker, not test results.

    NVIDIA's hardware page

  3. Diagram for step 3, See whether the model fits on one: Split, or copies
    Diagram: Split, or copies, for step 3

    Choose

    3. See whether the model fits on one

    If it fits, with your context length and number of users, you can run a copy on each. If it does not, you can split it, or pick a smaller version.

  4. Diagram for step 4, Count the exchange: The cluster tax
    Diagram: The cluster tax, for step 4

    The cluster tax

    4. Count the exchange

    A split model sends data between the Sparks while it works. The cable is much slower than each Spark's own memory.

  5. Diagram for step 5, Add the waiting and the overhead: The cluster tax
    Diagram: The cluster tax, for step 5

    The cluster tax

    5. Add the waiting and the overhead

    The side that finishes first waits. Each Spark also runs its own copy of the software, which takes memory and processor time. Expect less than twice what one Spark does.

  6. Diagram for step 6, Know which kind of split you use: Tensor or pipeline
    Diagram: Tensor or pipeline, for step 6

    The cluster tax

    6. Know which kind of split you use

    Tensor parallel exchanges partial results at every layer. Pipeline parallel hands work from one group of layers to the next. Which is better depends on the model and software.

  7. Diagram for step 7, Expect gains only with enough requests: Not twice as fast
    Diagram: Not twice as fast, for step 7

    Two copies

    7. Expect gains only with enough requests

    Two copies can work on different requests. One reply is still made by one Spark. With one request at a time, the other Spark waits.

    How to set up two copies

  8. Diagram for step 8, Plan for one machine stopping: What survives
    Diagram: What survives, for step 8

    Choose

    8. Plan for one machine stopping

    A split model should be expected to stop. With two copies, the other can carry on if the balancer is running and notices. If the balancer is on the stopped Spark, the one address stops too.

  9. Diagram for step 9, Do not expect Ray to remove the tax: What Ray adds
    Diagram: What Ray adds, for step 9

    Ray

    9. Do not expect Ray to remove the tax

    A Ray cluster runs whatever code it is sent. Never expose its dashboard, job or client services.

    Ray places and coordinates work. It does not merge memory or speed up the cable.

    The Ray cluster page

  10. Diagram for step 10, Test one Spark against two: Measure it
    Diagram: Measure it, for step 10

    Measure

    10. Test one Spark against two

    Use the same model, settings and requests. Time one request at a time, then many at once. If the model only fits when split, there is no one-Spark result.

Part 2 of 2: What both Sparks need

Video, part 2: What both Sparks need. It covers: Image and weights; Check the image; Save, send, load; Share the whole hub; Export it read-only; Who may read; Mount and test; Come back, don't hang; Same path, offline; What it costs; Second Spark first. Chapters and transcript
Read the words of this video

What both Sparks need. What must be on both DGX Sparks?

Image and weights. Both need the same container image, stored on each. The model files can have one copy, on the first Spark.

Check the image. Compare image IDs. A matching name isn't enough. If they differ, check each image store, and compare layers.

Save, send, load. To copy it, send docker save through SSH into docker load. Loading can move a tag on the second Spark, so check its images first. Or pull the same digest on both.

Share the whole hub. Share the whole Hugging Face hub folder, because its snapshots are links within it. Don't share the folder above, which by default holds your access token.

Export it read-only. Installing the NFS server starts a network service, and you'll edit a system file. In the exports file, share the hub folder only with the second Spark's link address, read-only, root squashed, no space before the bracket.

Who may read. NFS goes by user numbers, and a root user on the second Spark is treated as nobody. So the files must be readable to others, or the export must map requests to your own user.

Mount and test. On the second Spark, mount it into an empty folder. Check that links open, and that writing to the share fails.

Come back, don't hang. Back up the boot file before you edit it. The no fail option lets boot carry on, and automount connects when the folder is first used.

Same path, offline. Give both containers the model folder at the same path inside. Offline mode stops the second one trying to download. So download on the first.

What it costs. The second Spark now depends on the first, and on the link. Loading goes over the network, so time it yourself.

Second Spark first. To undo, stop the containers, unmount the second Spark, and remove its boot line. Only then remove the export on the first.

Check, then trust. We haven't run these on hardware, so check each.

Slides for this part, at your own pace:

16 steps

  1. Diagram for step 1, Compare the image on both: Check the image
    Diagram: Check the image, for step 1

    Image

    1. Compare the image on both

    Run this on each Spark. The IDs should match.

    docker image inspect --format '{{.Id}} {{.Os}}/{{.Architecture}}' IMAGE:TAG
  2. Diagram for step 2, If the IDs differ, compare the layers: Check the image
    Diagram: Check the image, for step 2

    Image Only if the IDs differ

    2. If the IDs differ, compare the layers

    Docker's two image stores may report different IDs. Check the store and compare the layer lists. Layers do not cover the image's settings.

    docker info -f '{{ .DriverStatus }}'
    docker image inspect --format '{{json .RootFS.Layers}}' IMAGE:TAG
  3. Diagram for step 3, Copy the image over the cluster link: Save, send, load
    Diagram: Save, send, load, for step 3

    Image

    3. Copy the image over the cluster link

    Loading restores tags. Expect a matching name on the second Spark to point to the new image.

    Run on the first Spark. Check free space and existing images on the second first. Or pull the same digest on each Spark instead.

    docker image save IMAGE:TAG | ssh USER@SECOND-SPARK-LINK-ADDRESS docker image load
  4. Diagram for step 4, Download the model into the cache: Share the whole hub
    Diagram: Share the whole hub, for step 4

    First Spark

    4. Download the model into the cache

    Run on the first Spark, then note your user and group numbers. Sign in for gated models here only. You will share the whole hub folder, and not the folder above it.

    hf download ORG/NAME
    id -u; id -g
  5. Diagram for step 5, Check who can read the files: Who may read
    Diagram: Who may read, for step 5

    First Spark

    5. Check who can read the files

    If these list anything, either map the second Spark's requests to your user in the export, or give others read access. The page explains both.

    find ~/.cache/huggingface/hub -type d ! -perm -o=rx
    find ~/.cache/huggingface/hub -type f ! -perm -o=r
  6. Diagram for step 6, Install the NFS server: Export it read-only
    Diagram: Export it read-only, for step 6

    First Spark

    6. Install the NFS server

    This installs and starts a network service, and the next step changes a system file.

    Keep a copy of the exports file before you change it.

    sudo apt update
    sudo apt install nfs-kernel-server
    sudo cp /etc/exports /etc/exports.before-sparkhub
  7. Diagram for step 7, Add one export line: Export it read-only
    Diagram: Export it read-only, for step 7

    First Spark

    7. Add one export line

    No space before the bracket, and never * as the client. A space changes what the line means.

    Open the file with sudoedit /etc/exports and add this as one line.

    /home/USER/.cache/huggingface/hub SECOND-SPARK-LINK-ADDRESS(ro,sync,root_squash,no_subtree_check)
  8. Diagram for step 8, Apply and look: Export it read-only
    Diagram: Export it read-only, for step 8

    First Spark

    8. Apply and look

    This changes what other machines can reach. Check the line for spaces first.

    You should see one entry for the folder, for the second Spark's link address only, with ro and root_squash.

    sudo exportfs -ra
    sudo exportfs -v
  9. Diagram for step 9, Mount it once by hand: Mount and test
    Diagram: Mount and test, for step 9

    Second Spark

    9. Mount it once by hand

    This installs software. Anything already in the mount folder is hidden while the share is mounted.

    Install the client and mount into an empty folder.

    sudo apt update
    sudo apt install nfs-common
    sudo mkdir -p /mnt/sparkhub
    sudo mount -t nfs -o ro FIRST-SPARK-LINK-ADDRESS:/home/USER/.cache/huggingface/hub /mnt/sparkhub
  10. Diagram for step 10, Check links and read-only: Mount and test
    Diagram: Mount and test, for step 10

    Second Spark

    10. Check links and read-only

    The find should print nothing and the files should open without permission errors. The touch should fail. If it succeeds, stop and check your options.

    findmnt /mnt/sparkhub
    find /mnt/sparkhub/models--ORG--NAME/snapshots/ -xtype l
    find /mnt/sparkhub/models--ORG--NAME/snapshots/ -type l -exec head -c 1 {} + >/dev/null
    touch /mnt/sparkhub/should-fail
  11. Diagram for step 11, Back up the boot file and open it: Come back, don't hang
    Diagram: Come back, don't hang, for step 11

    After a reboot

    11. Back up the boot file and open it

    This changes /etc/fstab, used at boot. A wrong line can cause boot problems. Have a screen and keyboard within reach.

    Keep the copy, then open the file.

    sudo cp /etc/fstab /etc/fstab.before-sparkhub
    sudoedit /etc/fstab
  12. Diagram for step 12, Add the boot line: Come back, don't hang
    Diagram: Come back, don't hang, for step 12

    After a reboot

    12. Add the boot line

    Check every part of this boot-time line before you save.

    Add this as one line in the open file, and save. It is not a command. The 30 seconds is our example.

    FIRST-SPARK-LINK-ADDRESS:/home/USER/.cache/huggingface/hub /mnt/sparkhub nfs ro,_netdev,nofail,x-systemd.automount,x-systemd.mount-timeout=30s 0 0
  13. Diagram for step 13, Check it and start the automount: Come back, don't hang
    Diagram: Come back, don't hang, for step 13

    After a reboot

    13. Check it and start the automount

    This unmounts the share and reloads system settings. Stop anything using the share first.

    Read what the check says before you go on. Then look at the folder.

    sudo findmnt --verify
    sudo umount /mnt/sparkhub
    sudo systemctl daemon-reload
    sudo systemctl start mnt-sparkhub.automount
    ls /mnt/sparkhub
    findmnt /mnt/sparkhub
  14. Diagram for step 14, Give both containers the same path: Same path, offline
    Diagram: Same path, offline, for step 14

    Containers

    14. Give both containers the same path

    Add these to your own docker run command on the second Spark. On the first, use its hub folder as the source and the same inside path. Check the share is mounted before you start.

    --mount type=bind,src=/mnt/sparkhub,dst=/root/.cache/huggingface/hub,readonly
    -e HF_HUB_OFFLINE=1
  15. Diagram for step 15, Undo the second Spark first: Second Spark first
    Diagram: Second Spark first, for step 15

    Undo

    15. Undo the second Spark first

    This stops access to the shared files. Stop the containers that use them first.

    Delete only your line in the editor.

    sudo systemctl stop mnt-sparkhub.automount
    findmnt /mnt/sparkhub
    sudo umount /mnt/sparkhub
    sudoedit /etc/fstab
    sudo findmnt --verify
    sudo systemctl daemon-reload
    sudo rmdir /mnt/sparkhub
  16. Diagram for step 16, Remove the export: Second Spark first
    Diagram: Second Spark first, for step 16

    Undo

    16. Remove the export

    Applying changes what the other Spark can reach. Finish the second Spark's steps first.

    On the first Spark, delete only your line, apply, and check. Skip umount on the second if nothing was mounted.

    sudoedit /etc/exports
    sudo exportfs -ra
    sudo exportfs -v

Written from the makers' own documents, linked below, as read on 27 November 2026. Set the cable link up first, with the cluster setup guide.

The basics

What a two DGX Spark cluster is, and is not.

It is two computers that can reach each other quickly. NVIDIA lists for each DGX Spark 128 GB of unified memory with 273 GB/s of memory bandwidth. NVIDIA's clustering page says each QSFP port provides up to 200 Gb/s, and that the cable also affects the speed. These are the maker's figures, not our measurements.

First Sparkprocessor and GPUIts own 128 GB memoryNVIDIA: 273 GB/s bandwidthSecond Sparkprocessor and GPUIts own 128 GB memoryNVIDIA: 273 GB/s bandwidthnetwork cableNVIDIA: up to 200 Gb/s a portno shared memory
Two computers, each with its own memory, joined by a network link. The figures are NVIDIA's. Our own drawing.

It is

Two machines, each with its own operating system, processor, GPU and memory, joined by a network link.

It is not

One computer with 256 GB of memory. A program on one Spark cannot simply use the other's memory or GPU.

What joins the work

Software made to run across machines. It decides what each one holds and what they send each other.

Link speed and memory bandwidth are in different units.

The link figure is in gigabits a second (Gb/s) and the memory figure in gigabytes a second (GB/s). A byte is eight bits, so 200 Gb/s is 25 GB/s, against 273 GB/s for each Spark's own memory. Both are the maker's peak figures. What your software gets over the cable can be lower, and only a test shows it: see how to test the link. NVIDIA also explains that each port appears in Linux as two network interfaces, so the link has to be set up properly.

Choose

Split one model across two DGX Sparks, or run a copy on each?

Split means one model whose parts are on both machines. Two copies means each Spark holds the whole model and answers its own requests. Two copies are only possible if the whole model, with the context length and number of users you need, fits on one Spark.

One model, splitOne requestPart of modelfirst SparkPart of modelsecond Sparkthey talk during every replyA whole copy on eachMany requestsWhole modelfirst SparkWhole modelsecond Sparkeach request stays on one Spark
Split one model across both Sparks, or give each a whole copy. Our own drawing.
QuestionOne model, splitA whole copy on each
How big a model?Can take a model that is too big for one Spark, if each Spark's share fitsNo bigger than one Spark can hold
Is one reply faster?It depends on the model, the software and the settings. It can be slower than one Spark. Measure itNot twice as fast. One reply is made by one Spark
Many users at once?One model server. Both Sparks serve the same requestsRequests are shared out. This helps when there are more than one Spark handles well
If one Spark stops?Expect the whole model to stop. So too if the cable failsThe other copy can carry on if your balancer notices. Replies under way on the stopped one are lost
Data over the cableThroughout every replyRequests and replies for the second Spark, if the balancer is on the first. No data from inside the calculation
To keep matchingImage, packages, model files, settingsThe same, so that both give the same service

When to choose each.

It fits on one, many users

Our advice: start with a copy on each, behind one address. See two copies.

It does not fit on one

Split it, with a tested recipe for that model if there is one. See split one model. A smaller or more compressed version that fits on one is the other choice.

It fits, one user at a time

Our advice: use one Spark, and the other for something else, such as a second model. Split only if your own test shows a gain that matters to you.

NVIDIA's hardware page says one DGX Spark supports AI models of up to 200 billion parameters, and two up to 405 billion. That is the maker's statement. It does not say that your model fits at your precision, context length and number of users.

If the balancer is on the first Spark.

Two copies do not remove every single point of failure. If the one address lives on the first Spark and that Spark stops, the address stops with it, even though the second copy is still running. The failover table goes through each case.

The cluster tax

Why two DGX Sparks do not give twice the throughput.

We use "cluster tax" for the extra work and waiting that exist only because a model is on two machines. The phrase is ours, not a measurement or a maker's term.

One Spark aloneall the GPU work of the stepSplit: firstits share of the workwaitexchangeSplit: secondits share, finishing laterexchangenext step startsNot to scale. The lengths are made up to show the parts, not how long they take.
Where the extra time in a split step comes from. The lengths mean nothing. Our own drawing.
  1. The GPUs must exchange data over a much slower road.

    Inside a Spark, the GPU works from that Spark's memory. What it needs from the other Spark has to cross the cable. By the maker's figures above, the port's peak is far below the memory's peak. Many small messages also pay a delay each time, which a bandwidth figure does not show.

  2. They wait for each other.

    A shared calculation needs both halves. In an all-reduce, an operation NVIDIA's NCCL library provides, every GPU puts in its own numbers and receives the combined result. By our reasoning, the result cannot be complete until the later GPU has put its numbers in.

  3. The slower side sets the pace.

    If one Spark is busy with another program, or its share of the work is larger, the other one waits. Our reasoning: two matching Sparks help, but only if they are doing matching amounts of work.

  4. Each node adds its own overhead.

    Each Spark runs its own operating system, container, worker process and GPU software, plus the code that communicates. All of that uses processor time and memory on both. So the space left for the model and its cache is less than the two memory figures added together. How much less depends on your setup.

The arithmetic, with letters in place of numbers.

This is our own simplification, to show the shape of the problem. Say one Spark needs a time W to do one step. Split it perfectly in two, and each side has W ÷ 2. Then add X for exchanging data and Y for waiting and other overhead:

one Spark:   W
two, split:  W / 2  +  X  +  Y

The step would take half as long only if X and Y were zero. If X and Y together are as large as W ÷ 2, the second Spark has gained nothing. If they are larger, two are slower than one. Real software can overlap some exchange with some work, so this is not a way to predict a speed. And when a model does not fit on one Spark at all, there is no W to compare with: the split is what lets it run.

Tensor parallel and pipeline parallel send different things.

Tensor parallel

The work inside each layer is divided, and each GPU holds part of the layer's weights. Hugging Face's Transformers guide says GPUs exchange partial results at each layer and need fast communication. So the cable is used many times for each new piece of text.

Pipeline parallel

The layers are divided: one GPU holds the earlier ones, the next the later ones, and the work passes through in order. Our reasoning: what crosses at the join is the first part's output, which the second part needs, and while writing a reply something has to come back for the next step. That is fewer exchanges. But the stages depend on each other in turn.

With one request and nothing overlapped, our reasoning is that one pipeline stage waits while the other works, so one reply does not get two GPUs at once. Keeping both stages busy needs enough work in flight, and software that overlaps it. NVIDIA's Megatron Bridge page on parallelism, which is mainly about training, calls pipeline idle time a bubble and says tensor parallel works best within a single node, while pipeline parallel can work across nodes with careful batch tuning.

vLLM says efficient tensor parallelism needs fast communication between nodes. Its general advice for a model too big for one machine is tensor parallel within a machine and pipeline parallel across machines. NVIDIA's two-Spark vLLM recipes use tensor parallel across the cable instead. The split-model page sets both out. Neither mode wins for every model, and we have measured neither.

Two copies avoid most of the tax, and still do not double everything.

Where Ray fits

What does a Ray cluster add on two DGX Sparks, and what does it not?

Ray is software that places and coordinates work across machines. A Ray cluster has one head node and worker nodes. vLLM can use Ray to run a split model across machines, and it can also use its own multi-node options without Ray.

What Ray adds

It places tasks and actors on a node that can fit what they ask for, coordinates them, and moves their objects between nodes when needed.

What Ray does not do

It does not merge the two memories, make one task use both GPUs by itself, or move an ordinary program. A model split by vLLM on Ray still sends its data over the same cable, so it still pays the cluster tax.

A Ray cluster runs whatever code it is sent. Ray expects a controlled network and trusted code. Never expose its dashboard, job or client services. Read the Ray cluster page before you start one.

Measure your own

Measure one DGX Spark against two, with the same requests.

No general figure can tell you what your model will do. Test your own case before you decide. Generating text uses the GPUs, so do it when the machines are free.

  1. Fix what stays the same.

    The same model and revision, the same image, the same precision and context setting, the same prompts and the same output length. Write down every setting that has to differ.

  2. One request at a time.

    Record the time to the first output and the time for the whole reply, on one Spark and then on two. This shows what happens to one reply.

  3. Many requests at once.

    Try several levels, up to more than you expect in real use. Record how many requests and how much output finish each second, and how long the slowest replies take.

  4. Repeat, and check where the work went.

    Our advice: do each case more than once and keep the first run after loading separate. Repeated prompts can be answered partly from cache, so treat both setups alike. Watch both Sparks, to see that both really worked.

If the model only fits when split, there is no one-Spark result for it. You can then compare split settings with each other, or with a smaller model on one Spark, and say which you did.

On both Sparks

What must be on both DGX Sparks: the same container image.

A container image is stored by the Docker on each machine. The second Spark does not see the first one's images, and sharing the model folder below does not share them. For a split model, vLLM asks for an identical execution environment on every node, and recommends containers for that. In the commands, IMAGE:TAG is your image, USER your user name, and words in capitals are yours to replace. The commands assume your user can run docker without sudo on both.

How to check that both DGX Sparks have the same image.

Run these on each Spark and compare. docker image inspect prints details of an image, and docker image ls can show digests.

docker image ls --digests --no-trunc
docker image inspect --format '{{.Id}} {{.Os}}/{{.Architecture}}' IMAGE:TAG
docker image inspect --format '{{json .RepoDigests}}' IMAGE:TAG
docker image inspect --format '{{json .RootFS.Layers}}' IMAGE:TAG

What success looks like: the same ID on both. The same tag name alone proves nothing, because a tag can be moved to different content. A registry digest appears when the image came from a registry. An image that arrived as a file may show none.

Docker has two ways of storing images. The containerd image store is the default on new installs of version 29.0 and later, while upgraded installs keep the older one. Our understanding is that the two can report different IDs for the same content. If the IDs differ, check each Spark with the command below, and compare the layer lists from the last command above. Matching layers mean matching files in the layers, but they do not compare the image's settings. Do not switch stores just to make IDs match: Docker says switching hides the images and containers made with the other store.

docker info -f '{{ .DriverStatus }}'

How to copy an image from one DGX Spark to the other.

docker image save writes an image as an archive to its output, and docker image load reads one from its input and restores the images and tags. Joining the two through SSH, over the cluster link address, copies the image without a registry and without leaving an archive file behind. Check free space on the second Spark first, with docker system df and df -h.

ssh USER@SECOND-SPARK-LINK-ADDRESS 'docker system df; df -h'

Loading restores tags. If the second Spark already uses the same name and tag for something else, expect the name to point to the new image afterwards. Look with docker image ls there first. A container already running keeps the image it started with, by our understanding.

Run this on the first Spark:

docker image save IMAGE:TAG | ssh USER@SECOND-SPARK-LINK-ADDRESS docker image load

What success looks like: the load reports the loaded image, and the checks above agree. If your image was pulled by digest and has no tag of your own, give it one first, and save that name.

docker image tag IMAGE@sha256:DIGEST IMAGE:MYTAG

Or pull the same digest on each Spark.

If both can reach the registry, you can instead pull by digest on each. A digest names exact content. A pinned digest also does not pick up later fixes until you change it.

docker pull IMAGE@sha256:DIGEST

Undo: on the second Spark, docker image rm IMAGE:TAG removes the image you added. Check first that nothing there needs it, and note that it does not bring back where an older tag pointed.

Model files

Share the Hugging Face cache between two DGX Sparks with NFS.

You do not have to download or keep the model weights twice. The first Spark can keep the only copy and let the second read it over the cluster link with NFS, a standard way to share folders over a network. This is one choice: a second local copy is the other. vLLM's multi-node guide allows either: the same path on every node, or a shared file system.

First Spark: containerimage stored herehub cache folderthe one real copySecond Spark: containerimage stored here too/mnt/sparkhuba read-only NFS mountNFS over the cluster linkread-onlysame path inside both containers
One copy of the model files, two copies of the image. Our own drawing.

What you accept by sharing.

You gain

One copy on one drive, one place to download, and the same files on both.

The second depends on the first

If the first Spark, its drive, its NFS server or the link is down, the second cannot read the model. With two copies for failover, both then depend on the first.

Loading

The second Spark reads over the network, not from its own drive. Loading time may differ. We have not measured it: time it yourself.

Privacy

In this plain form NFS is not encrypted, and the server does not cryptographically check who the client says it is. Use it only on the private cable. Ubuntu's guide covers Kerberos for stronger protection, which we do not set up here.

Why you must share the whole hub cache, not one folder inside it.

Hugging Face's cache guide describes folders for each repository: refs, blobs with the real files, and snapshots, whose entries are links into blobs. It also says some files are now stored once in a blobs folder at the top of the cache, shared between repositories, with links to them. Share only a snapshot folder, or one model's folder, and a link can point outside what the other Spark can see. Share the whole hub folder. By default it is ~/.cache/huggingface/hub; HF_HOME or HF_HUB_CACHE can put it elsewhere.

Do not share the folder above it. By default your Hugging Face access token is saved in HF_HOME, in a file called token, one level above the hub folder. Sharing only hub leaves that file out.

  1. Fill the cache on the first Spark.

    Check where the cache is, and make sure the model is fully downloaded. The hf command line tool comes with huggingface_hub. Add --revision with a commit to fix the exact version. Empty lines from the first command mean the two variables are not set in this shell; a container or service may set its own.

    printf '%s\n' "$HF_HOME" "$HF_HUB_CACHE"
    hf download ORG/NAME
    ls ~/.cache/huggingface/hub
    id -u; id -g

    Note the two numbers from the last line, your user and group numbers on the first Spark. For a gated or private model, accept its terms and sign in on the first Spark only. The second Spark reads the files and does not need your token for that. The model's licence and access terms still apply to your use of it.

  2. Decide how the second Spark may read the files.

    NFS in this form judges access by user and group numbers, not names. By default NFS squashes root: requests from root on the second Spark are treated as an unprivileged user, number 65534. Many containers run as root. So files that only your own user can read give permission denied. List what others cannot read:

    find ~/.cache/huggingface/hub -type d ! -perm -o=rx
    find ~/.cache/huggingface/hub -type f ! -perm -o=r

    If both print nothing, the permissions inside the folder allow it. If they print files, there are two choices. This guide's export line below keeps root squashing and relies on read permission for others. The other choice is to map every request from the second Spark to your own user, with all_squash,anonuid=OWNER-UID,anongid=OWNER-GID added in the brackets. Then the second Spark reads as you, and file permissions stay as they are.

    Our advice: use the mapping rather than loosening permissions on many files. Either way, limit the export to one folder, one address and read-only. Never use no_root_squash for this. Files downloaded by a container running as root may belong to root; with the mapping, your user must still be able to read them.

  3. Install the NFS server on the first Spark.

    This installs and starts a network service, and the next step changes a system file. Do it only on machines you look after, and not while you need the Spark undisturbed.

    sudo apt update
    sudo apt install nfs-kernel-server
    sudo cp /etc/exports /etc/exports.before-sparkhub

    Ubuntu Server's NFS guide is the reference. DGX OS is based on Ubuntu, but we have not run these steps on it.

  4. Export the folder to the other Spark only, read-only.

    No space before the bracket. The exports file's own manual says no space is allowed between a client and its options. With a space, the line means something else, and options can apply to clients you did not mean. Never use * as the client here.

    Open /etc/exports with sudoedit /etc/exports and add one line, all on one line. SECOND-SPARK-LINK-ADDRESS is the second Spark's address on the cluster link.

    /home/USER/.cache/huggingface/hub SECOND-SPARK-LINK-ADDRESS(ro,sync,root_squash,no_subtree_check)

    ro allows no changes, root_squash keeps the second Spark's root unprivileged, and no_subtree_check turns off an extra check that Ubuntu's guide and the manual describe. If your link has more than one address, use the two that are on the same subnet. Apply and look:

    sudo exportfs -ra
    sudo exportfs -v

    What success looks like: one entry for the hub folder, naming only the second Spark's link address, with ro and root_squash. The export limits which client addresses may mount. It does not replace keeping other machines off that network. We give no firewall rules, because we have not tested any.

  5. Mount it on the second Spark, once, by hand.

    Use an empty folder as the mount point. Ubuntu warns that anything already in it is hidden while the share is mounted. This does not move or delete the second Spark's own cache.

    sudo apt update
    sudo apt install nfs-common
    sudo mkdir -p /mnt/sparkhub
    sudo mount -t nfs -o ro FIRST-SPARK-LINK-ADDRESS:/home/USER/.cache/huggingface/hub /mnt/sparkhub
  6. Check the mount, the links and read-only.

    findmnt /mnt/sparkhub
    ls /mnt/sparkhub
    find /mnt/sparkhub/models--ORG--NAME/snapshots/ -xtype l
    find /mnt/sparkhub/models--ORG--NAME/snapshots/ -type l -exec head -c 1 {} + >/dev/null
    touch /mnt/sparkhub/should-fail

    What success looks like: findmnt shows an NFS mount from the first Spark's link address with ro. You see the models-- folders. The first find prints nothing, so no link is broken. The second prints no permission errors, so the linked files can be opened. The last command fails with a read-only message. If it succeeds, stop and check the export and mount options.

  7. Make the mount come back after a reboot, without hanging the boot.

    This changes /etc/fstab, a file used at boot. A wrong line can cause boot problems. Keep the copy, check before you reload, and have a screen and keyboard within reach.

    sudo cp /etc/fstab /etc/fstab.before-sparkhub
    sudoedit /etc/fstab

    Add this as one line:

    FIRST-SPARK-LINK-ADDRESS:/home/USER/.cache/huggingface/hub /mnt/sparkhub nfs ro,_netdev,nofail,x-systemd.automount,x-systemd.mount-timeout=30s 0 0
    OptionWhat it does
    roThe second Spark mounts it read-only, on top of the read-only export
    _netdevTells systemd the mount needs the network
    nofailBoot carries on without waiting for the mount, even if it cannot be made
    x-systemd.automountThe share is mounted when something first uses the folder
    x-systemd.mount-timeout=30sHow long systemd waits for the mount command. The 30 seconds is our example, not a tested value

    Check the file, unmount the manual mount, and start the automount. findmnt --verify checks that /etc/fstab can be read and used. Read its messages before going on.

    sudo findmnt --verify
    sudo umount /mnt/sparkhub
    sudo systemctl daemon-reload
    sudo systemctl start mnt-sparkhub.automount
    ls /mnt/sparkhub
    findmnt /mnt/sparkhub

    The unit name comes from the mount point's path. We chose a name without a hyphen to keep it simple. We have not rebooted a Spark with this line.

    Why not a soft mount? By default an NFS mount is hard: requests are retried until the server answers, so a program reading the share can appear to hang while the first Spark is away. The NFS manual warns that a soft timeout can silently corrupt data in some cases. Our advice: keep the default.

  8. Give both containers the same path, and keep the second offline.

    On each Spark, mount its view of the hub folder at the same path inside the container. vLLM's Docker page mounts the Hugging Face folder under /root/.cache/huggingface for its default image, so the hub folder goes in hub below that. These are only the options to add to your own, tested docker run command:

    # first Spark
    --mount type=bind,src=/home/USER/.cache/huggingface/hub,dst=/root/.cache/huggingface/hub,readonly \
    -e HF_HUB_OFFLINE=1
    
    # second Spark
    --mount type=bind,src=/mnt/sparkhub,dst=/root/.cache/huggingface/hub,readonly \
    -e HF_HUB_OFFLINE=1

    HF_HUB_OFFLINE=1 tells the Hugging Face library to make no calls to the Hub and to use cached files only. If a file is missing you get an error, instead of an attempt to download into a folder it cannot write to. So download on the first Spark first. Other download tools may not follow this setting.

    The path matters most when you give the model as a folder. vLLM says to pass a path in place of the repository name when you rely on local or shared files across nodes. A snapshot path then has this shape, and works on both because the inside path matches:

    /root/.cache/huggingface/hub/models--ORG--NAME/snapshots/COMMIT

    If your image uses another user or home folder, change the inside path, or set HF_HUB_CACHE to the folder you mounted. HF_HOME names the folder above hub: setting it moves the cache and, by default, the token file, so keep it somewhere the container can write.

    Our caution: run ls /mnt/sparkhub and findmnt /mnt/sparkhub on the second Spark before you start the container. If the share is not mounted, Docker may see only an empty folder, and the model will seem to be missing. For the same reason, do not count on a container that starts by itself at boot. Docker's bind mount page explains the --mount and read-only options. We have not tested a container on an automounted NFS folder.

Changing or deleting models later.

Our advice: stop the model on the second Spark before you download a new version, or delete anything from the cache, on the first. Removing files that the other machine is reading can break it. A new download may also take a moment to show on the other side.

Undo

How to stop sharing the model folder, and undo the changes.

Undo the second Spark first, while the first is still serving. Removing the server first can leave the second one waiting on a share that no longer answers.

This stops anything that uses the share. Stop the containers that use the model first. Edit only the lines you added. Do not copy an old backup over a file that has changed since.

On the second Spark.

sudo systemctl stop mnt-sparkhub.automount
findmnt /mnt/sparkhub
sudo umount /mnt/sparkhub
sudoedit /etc/fstab
sudo findmnt --verify
sudo systemctl daemon-reload
sudo rmdir /mnt/sparkhub

Skip umount if findmnt shows nothing mounted there. In the editor, delete your one line. If unmounting says the folder is busy, find what is still using it and stop that.

On the first Spark.

sudoedit /etc/exports
sudo exportfs -ra
sudo exportfs -v

Delete your line, apply, and check that the hub folder is no longer listed. Only if this Spark shares nothing else with NFS, you can also turn the server off:

This stops every NFS share from this Spark.

sudo systemctl disable --now nfs-kernel-server

The model files on the first Spark stay where they are. If you changed file permissions yourself, undoing the share does not change them back.

Fixes

If the shared model folder does not work.

What you seeCheckWhat to do
The mount is refused, or access deniedsudo exportfs -v on the first SparkThe client address and folder path must match what you mount
The mount waits, then times outPing the first Spark's link address; systemctl status nfs-kernel-server thereFix the link or start the server. A firewall may be in the way
Permission denied on filesThe two find checks; which user the container runs asUse the user mapping, or give read access, as in step two
Files listed, but "no such file" when openedfind … -xtype l for broken linksShare the whole hub folder. A link must not point outside it
The model is not found on the second Sparkfindmnt /mnt/sparkhub; the path inside the container; the revisionMount first, match the inside path, and download on the first Spark
Read-only file system errorWhich setting makes the software write into the hub folderKeep offline mode on, and point other caches somewhere writable
A program hangs on the second SparkWhether the first Spark and the link are upBring them back. A hard mount keeps retrying
Split model fails though files matchThe image checks on both SparksMake the images the same, then see model hangs while loading

Next

Keep going.

About Server AI Hub

Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.

See what Server AI Hub does

Sources

Check the makers’ own pages.

Read on 27 November 2026. These projects change often; if their pages differ from this one, follow them.

General guidance only, in our own words. Back up before you start; you use these steps at your own risk. NVIDIA, DGX, DGX Spark, ConnectX, NeMo and CUDA are trademarks of NVIDIA Corporation; Docker, Hugging Face, Ray, vLLM, Ubuntu, Linux and other names belong to their owners. 6ixLabs is not affiliated with or endorsed by NVIDIA or any of these projects.