NewsCrawler.org

Ollama, llama.cpp, LM Studio and vLLM compared on an RTX 3090 with Qwen3.8-27B

Ollama, llama.cpp, LM Studio and vLLM compared on an RTX 3090 with Qwen3.8-27B
Bar chart of writing speed for one request with a 32,768-token context on every server, in tokens per second. 70-token prompt, 512-token answer: Ollama 43.5, Ollama MTP download 57.1, llama.cpp 43.7, llama.cpp with MTP 71.1, LM Studio 65.6, vLLM 43.3. 4,121-token prompt, 256-token answer: Ollama 42.8, Ollama MTP download 65.0, llama.cpp 43.0, llama.cpp with MTP 79.7, LM Studio 76.9, vLLM 42.4.
Bar chart of total output in tokens per second, 70-token prompts and 256-token answers. 8 requests at once: Ollama defaults 40.6, Ollama MTP download 51.9, Ollama 4 at a time 100.3, llama.cpp defaults 121.4, llama.cpp 32 at a time 194.8, llama.cpp with MTP 164.4, LM Studio 143.0, vLLM 287.9. 32 requests at once: Ollama defaults 38.1, Ollama MTP download 49.3, Ollama 4 at a time 96.3, llama.cpp defaults 117.9, llama.cpp 32 at a time 295.4, llama.cpp with MTP 160.1, LM Studio 138.9, vLLM 345.8.
Bar chart of the median wait for the first word with 32 requests at once, 70-token prompts and 256-token answers: Ollama defaults 100.6 s, Ollama MTP download 79.4 s, Ollama 4 at a time 37.6 s, llama.cpp defaults 30.8 s, llama.cpp 32 at a time 6.6 s, llama.cpp with MTP 19.8 s, LM Studio 26.4 s, vLLM 9.3 s.
Image: Reddit

The test ran Ollama, llama.cpp, LM Studio and vLLM one after another on the same RTX 3090, each with Qwen3.8-27B, and sent them the same requests: one at a time, then up to 32 at once. With one request at a time, Ollama, llama.cpp and vLLM wrote 43.3 to 43.7 tokens per second, and the context size did not change the speed. MTP[1] made the biggest difference: LM Studio, which turns it on by default, wrote 65.8 tokens per second at an 8k context, and llama.cpp with MTP wrote 70.9. Ollama with its separate MTP download wrote 57.1 at 32k.

With 32 requests at once, vLLM produced the most, 345.8 tokens per second in total. llama.cpp with a shared 32k context produced 295.4, LM Studio 138.9, and Ollama at most 96.3. On the 24 GB card, the largest context that fit was 106,496 tokens on llama.cpp, 65,536 with MTP and 32,768 on vLLM.

The three llama.cpp-based servers read GGUF[2] files, so one GGUF file was loaded into all three. vLLM used a different file, a 4-bit AWQ[3] upload, because it loads models in the Hugging Face format. llama.cpp was ready in 4 s, LM Studio in about 8 s and vLLM in 46 s, while Ollama answered its first request after 88 s.

Repository Ollama github.com

Open source tool for running LLMs locally on your own computer, with a simple CLI and a local API server.

Stars: 187,791Forks: 19,128License: MITUpdated:

Repository llama.cpp github.com

Open source LLM inference engine written in C/C++ that runs language models locally, including GGUF files, on CPUs and GPUs.

Stars: 135,926Forks: 25,871License: MITUpdated:

Read the original homebrewserver.clubDiscussion

Discussion

Commenters mostly say that Ollama is a wrapper around llama.cpp and uses the same engine, though one notes it is more beginner friendly. Others call MTP a game changer, and one suggests sending a one-token request at startup and raising keep alive so the model loads before the first user request.

Sources

  • homebrewserver.club

    Ollama 0.40 vs llama.cpp, LM Studio and vLLM on a 3090 with Qwen3.8-27B: least GPU memory (17 GiB at 32k), but the lowest output at 32 requests and 88 s to the first answer

    4 comments

Published: First seen: Читать по-русски

Open as a page