All articles

Will the Model Fit? What I’d Test Before Sharing a DGX Spark

The checks I’d run before making a local model available to a team.

VarCamp slide showing an application and two DGX Spark inference nodes
The two-node layout I used to explain where the application ends and model serving begins.

In my case, when I built my deep learning server, testing was simple. I tried a job on the gaming PC I already had and saw if it ran. If it took longer, I was the one waiting. My deep learning server write-up

A model server for a team is different. The question is what happens to everybody else’s requests while one person sends a long file.

At VarCamp I showed a design with two DGX Spark nodes for inference and ordinary servers for the application. I used the drawing to talk about where the work runs. However, a drawing cannot tell me if the setup can serve a team. For that, I need to test the team's own requests on it. VarCamp speaker and session listing

What uses memory when the model is running?

Start with the weights, and leave room for the serving runtime and the operating system. Each active request also takes memory for its attention cache, usually called the KV cache. Longer context and more concurrent requests make that demand bigger. On DGX Spark, the CPU and GPU share the system’s unified memory. So, anything else you run on the same box draws from that pool too. NVIDIA DGX Spark specifications

With two machines, decide how to use them before adding up capacity. For example, you can run one model replica on each node and send different requests to each. In that design, each replica still needs to fit on its own machine. If you want to split one model across both nodes, there is a note to take. Check that the runtime supports it, and measure how much time the nodes spend talking to each other.

Think of a restaurant kitchen. The weights are the stove, and the KV cache is the counter space every order needs. A bigger stove does not help if the counter is full.

Run the work people will actually send

Suppose this is a coding assistant for a small team. Collect three kinds of request: a short question, a request that includes a long file, and a task that produces several pages of output. Then send a mix of them at once. Write down the model version, the serving settings and the request sizes, so the test can be repeated.

There are three things to time or count.

  • Time to first token. How long does somebody wait before the answer starts?
  • Time to finish. What happens to a short request while the server is busy with several long ones?
  • Queue and errors. When people send work faster than it finishes, how long does the queue grow? At what point do requests time out or get rejected?

If you try a smaller model, check quality on the same tasks. If the team has to keep correcting the output, that time counts when you compare the two options.

Try it with one machine unavailable

Say you have told the team the service will stay available during maintenance. In that case, take one inference node out of a test setup and repeat the busy case. Does the application still accept work? How much can the remaining node handle? It is also worth checking that a queued request gets a clear status when there is a capacity limit.

Someone will ask how many users a box can support. So, ask them to bring a few requests from a busy hour. I can pick three models from the cards. Those requests will show whether one box is enough, when a queue starts to hurt, and whether the team needs another replica.

One thing to try

Pick one long file from your own work and send it while a colleague sends short questions. Write down how long the short ones wait. That single number is a good start.

Next, I look at a smaller case: Can a Small Model Run on a CPU-Only Kubernetes Node?