News for hackers. Stuff that matters.
Re:Stop Using Ollama by anakaine on Thursday April 16, 2026 @03:10AM (#47789672)
Llama.cpp now has a gui installed by default. It previously lacked this. Times have changed.
Re:Stop Using Ollama by nikodunk on Thursday April 16, 2026 @03:21AM (#47789755)
Having read above article, I just gave llama.cpp a shot. It is as easy as the author says now, though definitely not documented quite as well. My quickstart:

brew install llama.cpp

llama-server -hf ggml-org/gemma-4-E4B-it-GGUF --port 8000

Go to localhost:8000 for the Web UI. On Linux it accelerates correctly on my AMD GPU, which Ollama failed to do, though of course everyone's mileage seems to vary on this.

Re:Stop Using Ollama by teekert on Thursday April 16, 2026 @03:55AM (#47790000)
Was hoping it was so easy :) But I probably need to look into it some more.

llama_model_load: error loading model: error loading model architecture: unknown model architecture: 'gemma4' llama_model_load_from_file_impl: failed to load model

Re:Stop Using Ollama by roosgit on Thursday April 16, 2026 @04:40AM (#47790325)
I just hit that error a few minutes ago. I build my llama.cpp from source because I use CUDA on Linux. So I made the mistake of trying to run Gemma4 on an older version I had and I got the same error. It’s possible brew installs an older version which doens’t support Gemma4 yet.
Re:Stop Using Ollama by teekert on Thursday April 16, 2026 @04:50AM (#47790396)
Ah it was indeed just that!

I'm now on:

$ llama --version version: 8770 (82764d8) built with GNU 15.2.0 for Linux x86_64

(From Nix unstable)

And this works as advertised, nice chat interface, but no openai API I guess, so no opencode...

Re:Stop Using Ollama by homarp on Thursday April 16, 2026 @05:00AM (#47790466)
check on same port, there is an OpenAI API https://github.com/ggml-org/llama.cpp/tree/master/tools/serv...
Re:Stop Using Ollama by teekert on Thursday April 16, 2026 @05:33AM (#47790740)
Good stuff, thanx!
Re:Stop Using Ollama by zozbot234 on Thursday April 16, 2026 @04:45AM (#47790362)
And that's exactly why llama.cpp is not usable by casual users. They follow the "move fast and break things" model. With ollama, you just have to make sure you're getting/building the latest version.
Re:Stop Using Ollama by Eisenstein on Thursday April 16, 2026 @06:20AM (#47791046)
Its not possible to run the latest model architectures without 'moving fast'. The only thing broken here is that they are trying to use an old version with a new model.
Re:Stop Using Ollama by cyanydeez on Thursday April 16, 2026 @06:38AM (#47791160)
and Ollama suffered the same fate when wanting to try new models
Re:Stop Using Ollama by Eisenstein on Thursday April 16, 2026 @09:31AM (#47792711)
What fate?
Re:Stop Using Ollama by cyanydeez on Thursday April 16, 2026 @01:18PM (#47796560)
the impedance mismatch between when models are released and the capability of Ollama and other servers capability for use.
Re:Stop Using Ollama by Eisenstein on Thursday April 16, 2026 @02:17PM (#47797361)
I'm a bit unsure what that has to do with someone running an outdated version of the program while trying to use a model that is supported in the latest release.
Re:Stop Using Ollama by adrian_b on Thursday April 16, 2026 @07:14AM (#47791422)
As it has been discussed in a few recent threads on HN, whenever a new model is released, running it successfully may need changes in the inference backends, such as llama.cpp.

There are 2 main reasons. One is the tokenizer, where new tokenizer definitions may be mishandled by the older tokenizer parsers.

The second reason is that each model may implement differently the tool invocations, e.g. by using different delimiter tokens and different text layouts for describing the parameters of a tool invocation.

Therefore running the Gemma-4 models encountered various problems during the first days after their release, especially for the dense 31B model.

Solving these problems required both a new version of llama.cpp (also for other inference backends) and updates in the model chat template and tokenizer configuration files.

So anyone who wants to use Gemma-4 should update to the latest version of llama.cpp and to the latest models from Huggingface, because the latest updates have been a couple of days ago.

Re:Stop Using Ollama by OtherShrezzing on Thursday April 16, 2026 @03:12AM (#47789686)
While that might be true, for as long as its name is “.cpp”, people are going to think it’s a C++ library and avoid it.
Re:Stop Using Ollama by eterm on Thursday April 16, 2026 @03:38AM (#47789879)
This is the first I'm learning that it isn't just a C++ library.

In fact the first line of the wikipedia article is:

> llama.cpp is an open source software library

Re:Stop Using Ollama by figassis on Thursday April 16, 2026 @03:43AM (#47789912)
This is correct, and I avoided it for this reason, did not have the bandwidth to get into any cpp rabbit hole so just used whatever seemed to abstract it away.
Re:Stop Using Ollama by RobotToaster on Thursday April 16, 2026 @03:36AM (#47789862)
It would make sense to just make the GUI a separate project, they could call it llama.gui.
Re:Stop Using Ollama by homarp on Thursday April 16, 2026 @05:02AM (#47790479)
Re:Stop Using Ollama by adrian_b on Thursday April 16, 2026 @07:19AM (#47791454)
LlamaBarn is the MacOS app, not the HTTP API server, which is "llama-server".

On non-Apple PCs, "llama-server" is what you use, and you can connect to it either with a browser or with an application compatible with the OpenAI API.

Perhaps using "llama-server" as the name of the project would have been less confusing for newbies than "llama.cpp".

I confess that when I first heard about "llama.cpp" I also thought that it is just a library and that I have to write my own program in order to implement a complete LLM inference backend.

Re:Stop Using Ollama by mastermage on Friday April 17, 2026 @03:35AM (#47803414)
this looks nice but is macos only.
Re:Stop Using Ollama by gettingoverit on Thursday April 16, 2026 @12:58PM (#47796270)
It would make even more sense to rename it to ollama, get a copyright for the name, and see how thieves complain they've been robbed :>
Re:Stop Using Ollama by marssaxman on Friday April 17, 2026 @11:58AM (#47807341)
Wait, it isn't? The name very strongly suggests that it is a text file containing C++ source code; is that not the case?
Re:Stop Using Ollama by mijoharas on Thursday April 16, 2026 @03:22AM (#47789762)
Frankly I think the cli UX and documentation is still much better for ollama.

It makes a bunch of decisions for you so you don't have to think much to get a model up and running.

Re:Stop Using Ollama by zombot on Thursday April 16, 2026 @09:45AM (#47792862)
I don't care about the GUI so much. Ollama lets me download, adjust and run a whole bunch of models and they are reasonably fast. Last time I compared it with Llama.cpp, finding out how to download and install models was a pain in Llama.cpp and it was also _much_ slower than Ollama.
Re:Stop Using Ollama by throwa356262 on Thursday April 16, 2026 @11:02AM (#47794185)
That is not true.

If you today visit a models page on huggingface, the site will show you the exact oneliner you need to run to it on llama.cpp.

I didn't measure it, but both download and inference felt faster than ollama. One thing that was definitely better was memory usage, which may be important if you want to run small models on SCB.

Re:Stop Using Ollama by anakaine on Sunday April 19, 2026 @05:44AM (#47823058)
Having picked it up recently and compared to both llama and lm studio - the models I was using ran faster, used less memory, and had a few extra confif options available that the others hadn't implemented yet but were suggested by the model authors.

It was easy to install, run, and access the gui to get going.