chapter twelve

12 Comparing and selecting LLM models

 

This chapter covers

  • The five major open-weight model families: Llama, Gemma, Qwen, Mistral, and DeepSeek
  • How model size affects quality, speed, and memory requirements
  • Which models work best for different languages
  • Switching models in your Streamlit chatbot
  • The February 2026 revolution: frontier open models that match proprietary systems

When you first visit the Ollama model library, the sheer number of available models can feel overwhelming: there are dozens of names, cryptic version numbers, and parameter counts ranging from half a billion to hundreds of billions. How do you choose?

This chapter will give you a practical framework for understanding and selecting LLM models. By the end, you will know the major model families, understand the tradeoffs between size and quality, and be able to switch between models in your chatbot with ease.

12.1 Model families and their strengths

12.1.1 Llama (Meta)

12.1.2 Gemma (Google)

12.1.3 Qwen (Alibaba Cloud)

12.1.4 Mistral (Mistral AI)

12.1.5 DeepSeek (DeepSeek AI)

12.1.6 The model ecosystem

12.2 Model size vs. quality tradeoffs

12.2.1 Model comparison quick reference

12.2.2 Understanding tokens per second

12.2.3 Benchmarks: What they tell you (and what they don’t)

12.2.4 The RAM reality check

12.3 Multilingual capabilities

12.3.1 Language strengths by model family

12.3.2 A side-by-side experiment

12.3.3 Multilingual recommendation summary