Skip to content
labadoch.net
all posts

blog10 min read

Squeezing tokens per dollar out of eight old V100s

I benchmarked four open models on a rented 8× V100 server. Software mattered more than the hardware, speculative decoding rarely helped under load, and the only model above my quality bar cost 12 to 15 times more per token.

  • AI
  • GPU servers
  • Benchmarks
  • Costs

Is it worth running your own AI models instead of paying per token? I use AI every day, and NovaCloud-Hosting rents out GPU servers, so I wanted an answer from my own tests. This post is about the engine room: how many tokens one rented GPU server actually produces, how much of that number tuning decides, and what a million tokens costs in the end.

Over a week at the end of November and the start of December, I rented 8× V100 servers one after another, ran four open models on two inference engines and benchmarked several hundred configurations. Every number below comes from those runs.

The hardware: old, but cheap per gigabyte#

The V100 came out in 2017. It has no BF16 or FP8 support, and current inference engines are slowly dropping it. What it still has is memory: eight cards with 32 GB each, connected over NVLink, add up to 256 GB of GPU memory. That holds models with a few hundred billion parameters at 4 bits or less.

And it is cheap. A whole 8× V100 server rented for about $0.47 an hour on a GPU marketplace, roughly 6 cents per GPU-hour. Every other server with similar memory cost 4 to 20 times more per GPU. For tokens per dollar, that made the V100 the obvious place to start.

Four models, one quality bar#

All four are mixture-of-experts models: each token runs through only a small part of the network, which makes them fast for their size.

ModelMakerWeights testedIndex
Inkling 2 MiniThinking Machines4-bit, 17.6 GB, fits on one GPU20
MiMo V2.6 FlashXiaomiMXFP4, 167 GB27
GLM-5.3-FlashZ.ai4-bit, 200 GB28
ERNIE 5.5 Flash PreviewBaidu2-bit to 4-bit, 280B parameters, 14B active31
Scores are the Artificial Analysis Intelligence Index at the time of testing. My bar for models I would actually use was 30.

Only ERNIE clears that bar. That is why it gets the most attention further down, even though it was the slowest of the four.

How I measured#

A benchmark that hits the cache measures the cache. So every request started with fresh random text, and the prompt cache was off for all throughput numbers.

  • Load: many requests sent at once, from 1 up to 384.
  • Prompts: two mixes, short (about 30 words) and chat (about 700 words of context).
  • Answers: a fixed length of 512 tokens (256 in the last ERNIE runs), so every configuration did the same work.
  • Metric: output tokens per second across all parallel requests, by wall clock. Cost per million tokens is the hourly rent divided by the tokens produced in that hour, at $0.47 an hour, rent only.

Two caveats. All requests arrive at the same moment, so the wait for the first token is a worst case. And the two rounds used different benchmark scripts and sampling settings, so compare numbers within a round, not across rounds.

Round one: the GPUs were waiting for the CPU#

I started with llama.cpp, the most common way to run quantized models. MiMo began at 313 tokens per second. After tuning, it did 743 on the same hardware.

Most of that did not come from GPU settings. llama.cpp's server picks the next token for each parallel request one after another, on a single CPU thread. With 256 requests in flight, the GPUs sat idle while the CPU caught up. I wrote two small patches for the server:

  1. Parallel sampling: pick the next tokens for all requests at once, on several CPU threads.
  2. Slot order: hand out free request slots lowest number first. Without this, active requests ended up scattered across the slots, and in 8 of 66 measurements throughput dropped by up to three times.

Two more settings mattered. Inkling's model file switched off top-k sampling, so every token was drawn from its full vocabulary of 200,000 entries. Setting top-k back to 40 gave 21% more throughput. And because Inkling fits on a single GPU, eight independent servers, one per GPU, beat one server split across all eight.

ModelLayoutParallel requestsOutput tok/sOne user, tok/s$ per million
Inkling 2 Mini8 servers, one per GPU3841,533430.085
MiMo V2.6 Flashone server over 8 GPUs256743370.18
GLM-5.3-Flashone server over 8 GPUs128242190.54
Round one: llama.cpp with both patches, chat prompts of about 716 tokens, 512 tokens out.

Round two: vLLM on a GPU it no longer supports#

Under load, vLLM is usually much faster than llama.cpp, but current releases no longer run on the V100. I used 1Cat-vLLM, a community fork that still builds for it.

The first result was terrible: Inkling ran at 12.6 tokens per second for a single user. Two switches fixed that. CUDA graphs record the GPU work once and replay it, instead of launching hundreds of small kernels one by one, and NCCL took over the traffic between the GPUs. Together they brought Inkling to 97 tokens per second. A small draft model for speculative decoding raised that to 162, thirteen times the starting point.

Under load, two copies of the model, each split over four GPUs, did 2,468 tokens per second with short prompts and 1,846 with chat prompts, at 96 parallel requests. llama.cpp managed 1,205 and 1,003 in the same test, even with 384 requests. At $0.47 an hour, 2,468 tokens per second is about 5 cents per million.

MiMo needed a patch before it would run at all. Its value heads are smaller than its key heads, and it uses attention sinks. vLLM handles that combination with a FlashAttention 3 path that does not exist on Volta. The patch pads the value heads with zeros so the Triton backend can run them, and strips the padding again afterwards. After that, vLLM beat llama.cpp on MiMo by 30 to 45%.

GLM was fastest for a single user on vLLM, at 54 tokens per second, but its throughput stopped growing beyond four parallel requests, at about 95 tokens per second. Under real load, llama.cpp stayed the better choice for GLM, once I turned off its RAM prompt cache. With that cache on, every request at 64 and 128 parallel timed out.

ModelEngine and layoutOne user, tok/sShort / chat, tok/sParallel requests$ per million (short)
Inkling 2 MinivLLM, 2 × 4 GPUs, with draft1622,468 / 1,846960.053
Inkling 2 Minillama.cpp, 8 servers41.51,205 / 1,0033840.11
MiMo V2.6 FlashvLLM, 8 GPUs49536 / 388640.24
MiMo V2.6 Flashllama.cpp, 8 GPUs47.5371 / 2991280.35
GLM-5.3-Flashllama.cpp, 8 GPUs28185 / 153640.70
Round two: fresh prompts, cache off, 512 tokens out. One-user numbers come from the fastest layout for one user, which was not always the throughput layout.

Speculative decoding helps one user, not a full server#

With speculative decoding, a small, fast draft guesses the next few tokens, and the large model checks all the guesses in one pass. When a single user is waiting, the GPU spends most of its time waiting on memory. Checking several tokens at once costs almost nothing, and every accepted guess saves a full step.

Under load, the GPU is already busy. Every rejected guess is compute that another request needed, and the guesses were rejected a lot: the drafts I tried were accepted only 8 to 46% of the time.

  • Inkling on llama.cpp: a draft cut throughput at 32 parallel requests from 373 to 161 tokens per second.
  • GLM: its built-in multi-token prediction and a separate draft model were both slower than no draft, even for one user.
  • MiMo: multi-token prediction was slower, and a draft model broke even.
  • ERNIE: n-gram drafting, including a version fitted to ERNIE's own outputs, cut throughput under load by almost half.

The one exception was Inkling on vLLM. With the draft, throughput at 96 parallel requests rose by 17% with short prompts and 10% with chat prompts, despite low acceptance. I ran that comparison only once, so I count it as promising, not settled.

Caching: a big win for latency, kept out of the numbers#

A prompt cache keeps processed prompts in memory, so a repeated prefix, such as a long system prompt or a conversation history, is not processed again. For the wait until the first token, that made a large difference:

ModelFirst requestRepeated prefix
ERNIE 5.5 Flash7.51 s0.26 s
GLM-5.3-Flash4.28 s0.38 s
Inkling 2 Mini3.96 s0.59 s
MiMo V2.6 Flash1.87 s0.08 s
Time to first token in llama.cpp for a prompt of 1,200 to 1,400 words: the first request, then a request with the same prefix. Inkling was measured with 8 parallel requests.

Real workloads will hit the cache often, especially agents that resend their whole history on every step. So real throughput will be higher than my numbers. One warning, though: with ERNIE, cached runs never produced exactly the same tokens as uncached ones, in 68 out of 68 comparisons. That may be harmless rounding from different batch shapes, but I did not count it as equivalent without proof.

ERNIE: the long road to 200 tokens per second#

ERNIE 5.5 Flash was the model I cared about most, and it started badly: 20 tokens per second for one user and 64 at 32 parallel requests. Support in llama.cpp was still an unmerged pull request, so I worked from a community port.

These steps moved the number, in this order:

  1. Weight format. The V100 has no BF16 support, and parts of the model ship in BF16. Converting them exactly to FP16 and using the MXFP4 weights gave 79% more throughput with short prompts and 33% with long ones.
  2. Smaller weights, two copies. At 2 bits (IQ2_XXS), two copies on four GPUs each reached 236 tokens per second at 64 parallel requests. Splitting the model by layers beat splitting every layer across GPUs.
  3. Kernels. A profile showed quantized matrix multiplications taking 52 to 72% of GPU time, and attention only about 2%. A fused kernel for ERNIE's SiTU activation gave 3% with identical output. Packing the router and retiling the matrix kernels for Volta brought the total to 8%, but changed the output tokens, so I did not count it.
  4. Fewer slots. At 32 parallel requests, 16 slots per copy instead of 32 gave 14 to 33% more throughput. At 64 parallel requests, the 16-slot setup on a new server was 32% slower than the earlier 32-slot run. Part of that may be the server change, but the lesson stands: a win at one load level is not a win in general.

On the last server, tuning plateaued at 160 to 173 tokens per second at 32 parallel requests. One run reached 180, and the repeat with new prompts got 165.

The last lever was the model itself. ERNIE sends every token through 10 of its 512 experts. Fewer experts means less work per token, but also a different model. So I measured throughput and perplexity on WikiText-2, where lower is better:

Active expertsOutput tok/sRepeat runPerplexityvs. default
10 (default)1641603.60–
8175–3.68+2.4%
7–1873.79+5.3%
62022063.90+8.4%
ERNIE 5.5 Flash at 2 bits, two copies on four GPUs each, 32 parallel short prompts, fresh tokens, cache off, 256 tokens out. Perplexity has an uncertainty of about ±0.14.

With six experts, ERNIE passed 200 tokens per second in two independent runs. But I got there by making the model worse, not the server faster. For real use I would probably pick eight experts, at 2.4% higher perplexity, or keep all ten and accept about 160 tokens per second.

What a million tokens costs#

An API bills every token, and if nothing runs, nothing is billed. A rented server is the opposite: it costs the same every hour, busy or idle. Its price per token is the rent divided by the tokens it actually produced. So all figures below assume the server is busy around the clock.

Cost per token: rented GPU server against an APISchematic. The API costs the same per token at any load. The rented server costs the same per hour, so its cost per token is very high when it is mostly idle and falls as the load rises. Only far to the right, under sustained load around the clock, does it drop below the API.cost per token →a few chats a dayoffice hours24/7, many agentsload on the GPUs →the API is cheaperself-hosting is cheaperbreak-even

Schematic, not to scale. A rented server costs the same every hour, busy or idle, so its price per token depends on how much work it gets. Where the break-even sits depends on the hardware, the model and the API you compare against.

At low load, every idle hour lands on the few tokens you do produce, and an API wins by a wide margin. Your own server only gets cheaper once its GPUs stay busy day and night, for example with many AI agents working in parallel. These are the best prices per token I measured at full load:

ModelIndexOutput tok/s$ per million
Inkling 2 Mini, vLLM202,4680.053
MiMo V2.6 Flash, llama.cpp277430.18
GLM-5.3-Flash, llama.cpp282420.54
ERNIE 5.5 Flash, 10 experts, 32 parallel311600.81
ERNIE 5.5 Flash, 6 experts, 32 parallel–2060.63
Best confirmed result per model at $0.47 an hour, rent only. The rounds used different scripts, so each row is that model's best. The index applies to the unmodified model.

The gap between the rows is the real finding. Going from an index of 20 to 31 made each token 12 to 15 times more expensive on this hardware.

What went wrong along the way#

Not every problem was technical:

  • One server stopped answering over SSH while the marketplace still listed it as running. I cancelled it and moved to another host.
  • At one point, every 8× V100 server on the marketplace, around 515 of them, was rented out, and I had to wait.
  • Between two rounds, the GPUs sat idle for three hours because nothing started the next run. From then on, a monitor started the next round as soon as one finished. With hourly billing, an idle GPU is the most expensive bug there is.
  • Results moved between hosts with identical settings, and single best runs did not always repeat. I counted a result only once a second run with new prompts confirmed it.

What I took away#

  1. Measure the whole server under load. Speed for one user says almost nothing about cost.
  2. Look at the CPU. The biggest single win in llama.cpp was not on the GPU at all.
  3. If a model fits, run more copies. Several small servers beat one large split.
  4. Use vLLM where it runs. With CUDA graphs, it beat llama.cpp under load by up to two times.
  5. Treat speculative decoding as a latency tool. It rarely adds throughput.
  6. Measure quality whenever you change the model. Expert counts and quantization trade answers for speed, and that trade has to be visible.

And the V100? Cards from 2017 still delivered tokens for a few cents per million, as long as the software was tuned and the queue never ran empty.