Repository navigation
GB10 head-to-head methodology: llama.cpp CUDA vs a clean-room stack, same 27B #31092
Replies: 4 comments 1 reply
|
Good question to ask before running it, because most head-to-head numbers fall apart on setup details rather than on the code. Here is what would make the numbers mean something to me: Same work on both sides. Same model file, same quantization, same prompt, same context size. If either side runs a different quant or a different prompt, the comparison is over before it starts. Report prompt processing and generation separately, never one blended tokens/sec. llama.cpp's own bench tool splits them exactly this way (pp vs tg in tools/llama-bench), and the two phases stress completely different things. A single blended number hides which phase actually differs. State the offload explicitly. On the llama.cpp side that means the -ngl setting and whether every layer is on the GPU. If your runtime splits work differently, say so in the same terms: which layers run where, on what device. Use repetitions and report the spread, not just the best run. llama-bench repeats each test (default 5) and reports mean plus deviation. One lucky run on a quiet machine proves nothing. Check correctness before speed. Run the same prompt through both and compare the tokens produced. If the outputs diverge, the speed comparison is meaningless, no matter how clean the timing looks. Freeze the machine state and publish the recipe. Same GPU clocks and power state, no other load, and the exact commands, the llama.cpp version or commit, and the model file hash, so someone else can reproduce the numbers. Driver version matters too on a GB10. One disclosure to keep in the write-up: llama.cpp CUDA runs against NVIDIA's libraries, yours is clean-room. That does not invalidate the comparison, it is still the same work on the same hardware, but readers should know the stacks differ when they interpret a gap in either direction. |
|
Thanks again, this list is my spec now. I switched to Qwen3.5-9B so I can repeat it more. How I'm covering each point:
Protocol is frozen before any timing: aien-dev/gpu-head-to-head#1 Anything you'd change before I run it? Drake |
|
@drakestapleton Good spec. Two things I would change before running it. Lock the clocks, don't just log them. Logging clocks and power state tells you the runs drifted, it doesn't stop them drifting. NVIDIA's own benchmarking guidance says floating clocks make measurements unstable across inferences. Name the quantization in the protocol. Your engine reads HF safetensors, llama.cpp reads a GGUF, and you checked the tensor values match, but the protocol should state the precision end to end: which GGUF quant on the llama.cpp side, and the same precision on your side, including the KV cache. If one side runs Q4_K_M and the other runs FP16, it is different work even with the same weights. Same for tokenization: same tokenizer, same BOS and chat-template handling, or the prompt token counts differ and the pp numbers are not comparable. Everything else looks right. 3 rounds is thin for mean and sd, but the llama-bench -r 5 cross-check covers it. |
|
@drakestapleton Yes, the GB10 driver accepts The direct evidence: on the NVIDIA Developer Forums (DGX Spark / GB10 section, "How do I throttle my GPU?"), GB10 owners throttle with Three things worth knowing before you rely on it:
One related note: GB10 exposes no power-limit setting ( |
Uh oh!
There was an error while loading. Please reload this page.
I build an independent AI stack at home and direct AI agents to write the code; everything gets verified on my own machine, a DGX Spark (GB10, sm_121). I published an open letter today, 'A Call to Humanity,' about breaking the CUDA grip on the hardware market: https://aienos.com/call-to-humanity (DOI 10.5281/zenodo.23614947). You are one of a small number of builders I am writing to directly, each with an ask fitted to your own work.
Over the last month I replaced the CUDA user stack on it with a clean-room implementation: no nvcc, no libcuda, no cuBLAS at run time. The correctness receipt is here, 1,048,576 of 1,048,576 values correct on the real chip, hash matching the simulator:
aien-dev/CUDApp#2
The write-up with the full method and its limits is on Zenodo:
https://doi.org/10.5281/zenodo.23578453
llama.cpp is the reference I test against, so your fairness standard is the one I want to meet. My question: I am setting up a head-to-head, same 27B model, same quantization, same prompts, llama.cpp CUDA against my runtime. Before I run it, what do you need to see in the setup for the numbers to mean anything to you?
Honest gaps, up front: no head-to-head numbers exist yet, everything is measured on one machine, and my qualification queue is still open.
All reactions