ge: a from-scratch Rust inference engine benchmarked against llama.cpp on a 4 GB laptop
- Hardware
- Laptop with a Ryzen 5 5600H and an RTX 3050 (4 GB) running at 35 W, on Windows
- Models & engines
- ge, a single ~4 MB Rust binary, running GGUF models on CPU, Vulkan GPU or both
llama.cpp as the comparison baseline - Key gotcha
- It's an early alpha tested on one laptop on Windows, and the source isn't public yet.
What they built
Atharv Dusane built a local LLM inference engine called ge from scratch in Rust and benchmarked it against llama.cpp on a 4 GB laptop. In his words, it wins some, ties some and loses some.
ge runs GGUF models on the CPU, a Vulkan GPU, or both at once. It ships as one file of about 4 MB with no Python, no CUDA and no installer, and has a built-in OpenAI- and Anthropic-compatible server.
His main goal was good sustained performance on models that don't fit on the GPU, even with large context windows.
Setup
- Laptop with a Ryzen 5 5600H and an RTX 3050 (4 GB) running at 35 W, on Windows
- ge, a single ~4 MB Rust binary, running GGUF models on CPU, Vulkan GPU or both
- llama.cpp as the comparison baseline
How it works
- ge loads GGUF models and can split work between the CPU and a Vulkan GPU at the same time.
- It exposes an OpenAI- and Anthropic-compatible server so local tools can talk to it.
- A ge bench-all command runs the benchmark suite on your own machine.
Results & numbers
- 1.7 to 3 times less RAM than llama.cpp.
- 1.13 to 1.42 times faster prompt processing on CPU.
- An 8B model on the 4 GB GPU at 13.8 tok/s versus 13.0 for llama.cpp, where one more layer runs llama.cpp out of memory.
- 1.68 times faster generation when a 16K context overflows VRAM.
- llama.cpp is still 25 to 35% faster at prompt processing on NVIDIA GPUs and supports far more models and hardware; generation speed is mostly a tie, since on CPU both hit the RAM bandwidth wall.
Gotchas
- It's an early alpha tested on one laptop on Windows, and the source isn't public yet.
- He says the biggest surprise was cutting RAM use almost in half without degrading output quality or using heavy quantization.
“Generation speed is mostly a tie. On CPU both hit the RAM bandwidth wall.”— Atharv Dusane
Do it yourself
- Pick a GGUF model that is slightly too big for your GPU's VRAM.
- Run it in llama.cpp with partial GPU offload and note RAM use, prompt processing and generation speed at a short and a 16K context.
- Repeat the same runs with any alternative engine you want to try, such as ge's bench-all once you have it.
- Keep whichever engine is faster for your actual context length and hardware.
Similar setups
Sharing one local model with several users: parallel-stream tests on a 2020 Radeon RX 6900 XT
Amuro Ray measured how total and per-user speed change when 1 to 8 people share a dense 27B or a 35B-A3B MoE model through llama.cpp's llama-server on a single 16 GB Radeon card.
llama.cpp 1.0 on a handheld PC's integrated GPU: 2x faster long prompts with flash attention
Before-and-after llama.cpp 1.0 tests on an MSI Claw's Intel Arc 140V found long prompts read about twice as fast only with flash attention on, and the new MoE cache lost to full GPU offload.
Letting a coding agent tune llama.cpp on an 8 GB AMD GPU: 3x faster prompt reading for OpenCode
Cliff K had his coding agent benchmark llama.cpp backends and flags for a Qwen3.6 35B MoE on a Radeon RX 6600 XT, at the context depths OpenCode really uses, and turned the process into an open-source skill.
Ollama on an AMD Radeon: five silent ways it falls back to CPU
Marco Orta spent three weeks measuring Ollama on a 24 GB Radeon RX 7900 XTX across Windows, Linux and WSL2, and documented five failures that quietly cost speed or context without any error.