Four DGX Sparks serve my 4-bit quant of apex-flash-1 at about 105 tokens a second for one coding request at a time, with a context window of one million tokens.

That matters when your code or your findings cannot leave the building. apex-flash-1 is a model that Cantina Security built for security work, and it is a free download on Hugging Face. It is far too big for one DGX Spark, which is a small AI computer from NVIDIA that fits on a desk.

Three measurements stand behind that sentence, all on hardware I own: the quant that fits, its speed under two loads, and how well it codes.

A 4-bit quant makes the model fit on four machines

The model did not fit on one machine, so the first job was a quant. I quantized it, which means I stored its numbers less precisely until it fit on four DGX Sparks. The quant I kept stores the expert sub-networks at 4 bits. Building it took at least seven quants of apex-flash-1 on those four machines.

One request gets about 105 tok/s on four machines and 67 on two

A quant that fits is only useful if it answers fast enough to work in, so speed came next. Speed depends on how many requests run at once, and I measured both ends, on my 203 coding tasks and on short requests.

MachinesRequests at onceSpeed of each requestContext window
41, coding tasks103 to 108 tok/s, median1 million tokens
48, short requestsabout 33 tok/s1 million tokens
21, coding tasks67 to 68 tok/s, median1 million tokens

The middle of that range, about 105 tok/s, is the figure in the title. With eight short requests at once each request is slower, and the four machines write more in total.

A panel named Context window lists one row, 1 million tokens, and it is lit. Three bars stand beside it. The bar named 1 coding request, 4 DGX Sparks is filled almost to the top and reads 103 to 108 tok/s, median. The bar named 8 short requests, 4 DGX Sparks is filled about a third of the way and reads About 33 tok/s each. The bar named 1 coding request, 2 DGX Sparks is filled more than half way and reads 67 to 68 tok/s, median.
  1. Four DGX Sparks serve the quant with a context window of 1 million tokens.
  2. With one coding request at a time, four machines answer at 103 to 108 tok/s, the median on my coding tasks.
  3. With eight short requests at once, each request gets about 33 tok/s, and the four machines write more in total.
  4. Two DGX Sparks answer one coding request at a time at 67 to 68 tok/s, the median, with the same window.
Speed depends on how many requests run at once.

See what 105, 67 and 33 tok/s look like

A speed in tok/s is hard to picture, so the box below writes sample text at the three speeds of the table.

The demonstration needs JavaScript. The three speeds of the table are:

  • 105 tok/s: 4 DGX Sparks, 1 request
  • 33 tok/s: 4 DGX Sparks, 8 requests at once
  • 67 tok/s: 2 DGX Sparks, 1 request

The quant solves about 92 in every 100 of my coding problems

Speed means nothing if the quant codes badly, so the last test was coding. On four DGX Sparks it solves about 92 in every 100 of my 203 coding problems, on average over five context sizes. For scale, Opus 4.6 solved about 96% of the coding problems through Anthropic's API, which is a different setup. Two DGX Sparks serve the same quant with the same window at a lower speed. I also compared what the two setups solve. At about 900,000 tokens, on a sample of 60 of the 203 problems, two machines solved 55 and four solved 58.

A panel named Coding problems lists two rows, 203 problems, five context sizes and 60 at about 900,000 tokens, and both are lit. Three bars stand beside it. The bar named My quant, 4 DGX Sparks is filled almost to the top and reads About 92 in every 100. The bar named Sample, 2 DGX Sparks reads 55 of 60. The bar named Sample, 4 DGX Sparks reads 58 of 60.
  1. The last test was coding, on my 203 coding problems.
  2. On four DGX Sparks the quant solves about 92 in every 100, on average over five context sizes.
  3. On a different setup, Opus 4.6 solved about 96% of the coding problems through Anthropic's API.
  4. At about 900,000 tokens, on a sample of 60 of the 203 problems, two machines solved 55 and four solved 58.
The 55 and the 58 come from a sample of 60 of the 203 problems.

The full video is "Fitting apex-flash-1 on DGX Sparks" on the Hacker Hermanos channel.