Performance
These figures were measured on particular computers. Other cards, drivers or models give other numbers.
On this page
Long texts do not block others
Plain llama.cpp makes later requests wait almost until a long text has been read. Raubot LM cuts the reading into pieces so everyone takes turns (--prefill-budget, 512 by default).
AMD R9700, 27B model: time to the first word for a short request while a long one reads 20,000 tokens (about 0.23 s normally):
| Setting | Long one ahead | Long one behind | Time of the long request |
|---|---|---|---|
| Off | 23.8 to 25.7 s | 4.9 to 5.1 s | 24.2 to 26.4 s |
| 512 (default) | 0.97 to 1.77 s | 1.5 to 1.65 s | 24.2 to 24.8 s |
| 256 | 0.71 to 0.99 s | 1.0 to 1.04 s | 25.4 to 26.0 s |
NVIDIA RTX 5060, 4B model: with the long one ahead, from 2.3–3.0 s down to 0.22–0.66 s.
Graphics card versions compared
AMD R9700, tokens per second, higher is faster:
| Model | Version | Reading | Answering |
|---|---|---|---|
| 27B Q6 | Vulkan | 931 | 23.5 |
| 27B Q6 | HIP | 1008 | 23.4 |
| Gemma 4B Q8 | Vulkan | 7355 | 98.0 |
| Gemma 4B Q8 | HIP | 10365 | 88.3 |
Going faster
- Keep loaded the models you use often. Reloading a 27B model takes about 16 s.
- Putting models on an SSD is recommended. On a hard disk, image, video, and flow models are automatically read sequentially into the OS file cache before starting the engine (with file-reading progress shown in the status bar) to avoid slow cold random reads.
If this page differs from the Traditional Chinese version, the Traditional Chinese version prevails.