In June I wrote about a drop-in Ollama replacement in pure C#: an Ollama-compatible server built on SpawnDev.ILGPU.ML, with no llama.cpp and no native binaries. Every GPU kernel is a C# method. Back then it generated text 1.74x slower than Ollama on the same model and GPU.
Here is the same comparison today: same model, same GPU, greedy decoding. June's figures came from the chat client's timing line; today's come from the repo's benchmark tool, and Ollama has a newer version too.
Generating text
Same model as in June (qwen2.5-coder:7b-instruct-q4_K_M), same GPU (RTX 4070), Ollama 0.34.4 with its default settings. Both engines ran in the same session, 5 runs each, medians, 256 tokens generated every run, greedy decoding.
| Ollama | SpawnDev.ILGPU.ML | Ollama is faster by | |
|---|---|---|---|
| June | 89.6 tok/s | 51.4 tok/s | 1.74x |
| Today, default | 94.0 tok/s | 78.6 tok/s | 1.20x |
| Today, int8 activations (opt-in) | 94.0 tok/s | 91.8 tok/s | 1.02x |
With a long prompt (about 1,800 tokens) the numbers are 89.4 for Ollama, 76.1 for ours by default and 88.3 with int8.
A smaller model, qwen3:1.7b, gives the same picture: Ollama 278.1 tok/s, ours 241.5 by default and 268.0 with int8. Across both models and both prompt lengths, ours runs at 0.84 to 0.92 of Ollama's speed by default, and 0.96 to 1.01 with int8. Run-to-run noise on this machine is about 4%, so treat the last digit lightly.
Reading the prompt
Prefill, the work before the first token appears, is where we are still clearly behind. With the long prompt:
| Ollama | Ours, default | Ours, int8 | |
|---|---|---|---|
| 7B | 4,750 tok/s | 2,471 tok/s | 3,987 tok/s |
| 1.7B | 16,017 tok/s | 10,117 tok/s | 14,607 tok/s |
The two sides measure this differently: Ollama reports its own prompt evaluation time, and ours is the time to the first streamed text. Read it as a direction, not a precise ratio. In June, with a prompt of about 700 tokens, ours was 260 tok/s against Ollama's 3,065.
What int8 costs
The int8 mode rounds the activations going into each matrix multiply to 8 bits, in blocks of 32 with a scale. It is the same scheme llama.cpp's CUDA kernels use (q8_1), so I measured both the way llama.cpp measures quantization loss: how far the model's predictions move compared with higher precision.
| Mean KL divergence | llama.cpp | SpawnDev.ILGPU.ML |
|---|---|---|
| qwen3 1.7B | 0.0077 ± 0.0018 | 0.0055 |
| qwen2.5-coder 7B | 0.00093 ± 0.00006 | 0.00035 |
The same top choice was picked 96.8% / 99.2% of the time by llama.cpp and 96.4% / 98.5% by ours, which overlap within llama.cpp's margins. So the loss is of the same order as llama.cpp's for the same technique, not higher on either model, with mean KL a little lower on both.
The two measurements are not identical, so here is everything that differs: llama.cpp's baseline is f16 activations and ours is fp32; llama.cpp scored 128 positions while reading prompts, ours scored 331 positions while generating; and it is one short text, the same file for both. Both used the exact GGUF files Ollama uses. llama.cpp was built from v1.0.0 with CUDA 13.2.
In practice, greedy output with and without int8 is word for word the same for a while, then takes a different but equally coherent path, after 12 to 165 words in our test.
What changed
Since June, generation got faster GEMVs (128-bit loads, one-row kernels for small matrices, split-K for Q6_K layers), a vector kernel for attention, and a second CUDA stream so part of each step overlaps. Prompt reading moved to tensor cores, for attention and for the Q4_K, Q6_K and Q8_0 matrix multiplies. The int8 mode was added. All of it is still C#, compiled by SpawnDev.ILGPU to PTX here, and to WGSL for the browser.
What is next
- Prefill. It is the largest gap left.
- The browser. The same engine runs in Chrome on WebGPU, and there the comparison is with ONNX Runtime Web, and next Transformers.js, instead of Ollama. That work is in progress.
The benchmark is tools/OllamaCompareBench in the repo, so you can run it on your own GPU.
