Skip to content
BotServBotServ
Reasoning ModelsDeepSeek-R1QwQo1Chain-of-ThoughtComparison

Reasoning Models Compared

Compare reasoning models for local AI. DeepSeek-R1, QwQ, o1-like models: thinking before answering.

S

schutzgeist

5 min read
Reasoning Models Compared

Reasoning Models Compared

What This Article Covers

  • What reasoning models are and how they work.
  • DeepSeek-R1, QwQ, and other reasoning models side by side.
  • When reasoning pays off and when it doesn’t.
  • Hardware requirements and speed.
  • Real-world examples for math, logic, and complex problems.

Introduction: Understanding Reasoning Models

Standard models answer directly. Reasoning models think first: they show their work (chain-of-thought), check assumptions, correct themselves, and then deliver an answer. This makes them slower, but significantly better for math, logic, and complex problem-solving.

This article is for anyone who wants to understand and use reasoning models. For foundational concepts, see Text Models and Ollama.

Why Use Reasoning Models?

Imagine asking: “If I have 3 apples, eat 2, and buy 5 more, how many do I have?” A standard model might guess wrong. A reasoning model thinks: “3 - 2 = 1, 1 + 5 = 6. Answer: 6.” It shows the work and arrives at the correct answer more reliably.

Reasoning Models Explained Briefly

Reasoning models use chain-of-thought: they work step by step, show their thinking, and then reach a conclusion. DeepSeek-R1 is the most popular local reasoning model. QwQ (Alibaba) is another option. Both run via Ollama.

The core idea: think before you answer.

Who This Article Is For

  • Developers solving complex problems.
  • Analysts who need data and logic.
  • Researchers wanting to understand reasoning.
  • Power users demanding maximum quality.

Some LLM background is helpful.

Key Terms

  • Reasoning - thinking before answering. Useful for: complex problems.
  • Chain-of-Thought - showing your work. Useful for: transparency.
  • Self-Correction - fixing your own mistakes. Useful for: accuracy.
  • DeepSeek-R1 - local reasoning model. Useful for: the industry standard.
  • QwQ - Alibaba’s reasoning model. Useful for: an alternative.
  • Ollama - model server. Useful for: running models.

How Reasoning Works

Standard model:
Question → Answer

Reasoning model:
Question → Thinking process → Answer

Example:
Question: "A train goes 120 km/h. How long for 300 km?"

Thinking process:
- Speed = 120 km/h
- Distance = 300 km
- Time = Distance / Speed
- Time = 300 / 120 = 2.5 hours
- Answer: 2.5 hours

Answer: 2.5 hours

Model Comparison

ModelDeveloperSizesReasoningSpeedBest For
DeepSeek-R1DeepSeek1.5B-70BExcellentSlowMath, logic, code
QwQ-32BAlibaba32BVery goodMediumReasoning + agents
DeepSeek-R1-DistillDeepSeek1.5B-70BGoodFasterCompact reasoning
Marco-o1Alibaba7BGoodMediumSimpler reasoning
Sky-T1NovaSky32BGoodMediumOpen reasoning

Detailed Breakdown

1. DeepSeek-R1

Strengths:

  • Best local reasoning model available
  • Displays complete thinking process
  • Self-corrects while reasoning
  • Excellent for math, logic, and complex problems
  • Distill versions for lower VRAM

Weaknesses:

  • Slow (thinking takes time)
  • Overkill for simple questions
  • Large models demand significant VRAM

Recommendation: deepseek-r1:14b for solid balance, deepseek-r1:7b for speed.

2. QwQ-32B (Alibaba)

Strengths:

  • Excellent reasoning quality
  • Supports tool-calling (for agents)
  • 32B size: good balance of quality and efficiency
  • Faster than DeepSeek-R1 with comparable output

Weaknesses:

  • Only 32B available
  • Alibaba model (check data privacy policies)

Recommendation: qwq:32b for reasoning plus agent work.

3. DeepSeek-R1-Distill

Strengths:

  • Compact versions (1.5B-70B)
  • Faster than the original
  • Good reasoning for its size
  • Llama/Qwen-based (familiar architecture)

Weaknesses:

  • Not as good as original R1
  • Smaller versions (1.5B) are limited

Recommendation: deepseek-r1:7b for quick reasoning, deepseek-r1:14b for quality.

When to Use Reasoning, When Not to

TaskReasoning Needed?Recommendation
Math problemsYesdeepseek-r1
Logic puzzlesYesdeepseek-r1
Code debuggingYesdeepseek-r1
Architecture decisionsYesdeepseek-r1
Simple questionsNollama3.1
Chat/assistantNomistral-nemo
Writing textNollama3.1
Quick answersNosmall models

Speed Comparison

ModelThinking TimeResponse TimeTotal
deepseek-r1:7b5-15s2-5s7-20s
deepseek-r1:14b10-30s5-10s15-40s
qwq:32b15-40s5-15s20-55s
llama3.1:8b,2-5s2-5s

Reasoning models run 3-10 times slower than standard models.

Practical Example: Math Problem

# Ollama API with DeepSeek-R1
import requests

response = requests.post("http://ollama:11434/api/chat", json={
    "model": "deepseek-r1:14b",
    "messages": [
        {"role": "user", "content": "A company has 150 employees. 60% work remotely. Of remote workers, 40% use Linux, 35% use Windows, and 25% use Mac. How many use Mac?"}
    ],
    "stream": False
})

# Response includes thinking process + answer
print(response.json()["message"]["content"])
# Output:
# <think>
# 150 * 0.6 = 90 remote
# 90 * 0.25 = 22.5
# ≈ 23 employees use Mac
# </think>
# Answer: approximately 23 employees

Practical Example: Code Debugging

# DeepSeek-R1 for debugging
response = requests.post("http://ollama:11434/api/chat", json={
    "model": "deepseek-r1:14b",
    "messages": [
        {"role": "user", "content": """Debug this code:

def fibonacci(n):
    if n <= 1:
        return n
    return fibonacci(n-1) + fibonacci(n-2)

print(fibonacci(50))

The code runs very slowly. Why and how do I fix it?"""}
    ],
    "stream": False
})

The model reasons through the exponential time complexity and suggests memoization.

Security Notes

  • Exposing the thinking process: The reasoning steps may contain sensitive reasoning. Consider whether you want to display it.
  • Slow is not always better: For simple questions, reasoning is wasteful.
  • Costs: Longer thinking time means more power consumption. For production, weigh cost against benefit.
  • Hallucinations: Reasoning models can still get things wrong. Always validate.

Common Pitfalls

  • Using it for simple questions: Reasoning is overkill for “What is your name?” Save it for truly complex problems.
  • Impatience: Reasoning takes time. Wait for the thinking process.
  • Ignoring the thinking process: The reasoning is the value-add. Read the work, not just the answer.
  • Running too large a model: 70B reasoning on 8GB of RAM will crash. Use distill versions.
  • No fallback plan: If reasoning takes too long, have a fallback to a standard model.

Key Takeaways:

  • Reasoning models think before answering (chain-of-thought).
  • deepseek-r1 is the best local reasoning model.
  • QwQ is solid for reasoning plus agents.
  • Reasoning is slower but better for math, logic, and complex problems.
  • For simple questions, standard models are faster and sufficient.

FAQ

What is a reasoning model?

A model that thinks before answering. It shows its reasoning process (chain-of-thought), checks assumptions, and corrects itself. This makes it slower but more accurate for complex problems.

Which reasoning model can I run locally?

DeepSeek-R1 is the best local reasoning model. QwQ-32B is a solid alternative for reasoning plus agents. Both run via Ollama.

When should I use reasoning?

For math, logic, complex problem-solving, code debugging, and architecture decisions. For simple questions, chat, and writing: standard models are faster and sufficient.

Why are reasoning models slower?

Because they think first (5-40 seconds of reasoning), then answer. The thinking process is the value-add; it makes answers more reliable.

How much VRAM do I need?

deepseek-r1:7b Q4: ~5 GB. deepseek-r1:14b Q4: ~10 GB. qwq:32b Q4: ~20 GB. Use distill versions for lower VRAM requirements.

What is the thinking process?

The model’s step-by-step reasoning before the answer. It shows how the model arrives at its conclusion. Important for understanding and trust.

Reasoning or standard model?

Reasoning for complex problems (math, logic, debugging). Standard model for simple questions, chat, writing. Reasoning is 3-10 times slower.

Can I use reasoning models for agents?

Yes, QwQ and DeepSeek-R1 support tool-calling. Reasoning agents can solve complex problems but are slower than standard agents.

References and Further Reading

Back to Blog
Share:

Related Posts