DEV Community

✨Nimmo✨
✨Nimmo✨

Posted on

Ollama Models Comparison : Compare LLM Responses Side-by-Side

Hey Dev.to community! 👋

Have you ever wondered which local LLM is better at answering your specific questions? Or if that fancy new model is actually worth the disk space? Well, I've been tinkering with Ollama lately, and I wanted an easy way to put different models head-to-head.

So I built the Ollama Model Comparator - a super simple but surprisingly useful tool that lets you compare responses from different Ollama models side by side.

Ollama Model Comparator Interface

What does it do?

It's pretty straightforward:

  • Pick any two Ollama models from a dropdown (or add custom ones)
  • Enter your prompt
  • Hit "Compare" and watch the magic happen
  • Check out not just the responses, but also the generation time and token counts

Tech stuff (for the curious)

The app is built with:

  • Python and Gradio for the UI (super easy to use!)
  • Requests library to talk to Ollama's API
  • A sprinkle of passion for local LLMs

Getting started in 30 seconds

  1. Make sure you have Ollama running
  2. Clone the repo: git clone https://github.com/your-username/ollama-model-comparator.git
  3. Install deps: pip install gradio requests
  4. Run it: python app.py
  5. Open your browser to http://127.0.0.1:7860

That's it! No API keys, no complicated setup.

What's next & how you can help

This is just v1, and I'd love to make it better with your help! Some ideas I'm thinking about:

  • Adding response streaming (because waiting is boring)
  • Supporting more than two models at once (royal rumble style)
  • Adding more detailed comparison metrics
  • Making the UI prettier (I'm a backend person, can you tell? 😅)

If you're into local LLMs and want to contribute, I'd love your help! The code is simple enough that even if you're new to Python, you can probably jump in.

Try it out!

The project is available on GitHub under the MIT license.

Would love to hear what you think! Which models are you comparing? Any surprising results? Drop a comment below!

Happy comparing! 🚀

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay