Skip to content
mentoor

Topic 2 of 5 · 4 min read

Base, instruct and reasoning model variants

Goal: Pick the right variant of one open model for a chat, completion or reasoning task and name the chat template it expects.

One model name usually hides several variants, and picking the wrong one, or feeding it the wrong template, quietly ruins output quality.

Check yourself · 1 of 3

You send a question to a base model and it replies with more questions in the same style. What is the most likely reason?

Choose one answer

Why it matters

On the hub, a family such as Qwen or Llama lists many repositories with suffixes: -Base, -Instruct, -Thinking, -GGUF, -AWQ. They share a name but not a behaviour. A base model asked a question may continue it with more questions. A reasoning model may spend thousands of tokens thinking before it answers.

The variants

Variant What it is Use it for
Base Trained only to predict the next token Fine-tuning, plain text completion
Instruct / chat Base plus training to follow instructions Chat, extraction, most apps
Reasoning / thinking Trained to write a chain of thought first Maths, hard code, multi-step problems
Community fine-tune Someone else's further training Niche styles or domains; quality varies

The chat template

An instruct model was trained on text with special markers around each turn: who is the system, who is the user, where the answer starts. That layout is its chat template, and it differs between families. Libraries such as Hugging Face Transformers store the template with the model and apply it for you. Hand-built prompts or a server configured for another family can leave the markers out or wrong, and the model gets worse in ways that are hard to see.

from transformers import AutoTokenizer

tok = AutoTokenizer.from_pretrained("org/model-Instruct")
messages = [{"role": "user", "content": "Summarise this log in one line."}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

Before and after

Weak: download the -Base model, send "Write unit tests for this function", and get rambling text that repeats the instruction.

Better: use the -Instruct variant, build the prompt with its own chat template, and use a -Thinking variant only for tasks where the extra reasoning tokens pay off.

What goes wrong

  • Using a base model for chat and blaming the family.
  • Reasoning models on simple tasks: the extra thinking costs time and tokens for no gain.
  • A mismatched template in a runner, so quality drops with no error message.
  • Trusting a random fine-tune without testing it against the original.

Examples

Wrong variant, odd output

A team sends "Classify this ticket as bug or feature" to a -Base model. It returns the ticket text followed by three more invented tickets. Switching to the -Instruct repository with the template applied returns one word, as asked.

Reasoning where it does not pay

A support bot extracts an order number from an email. A thinking variant writes 800 tokens of reasoning to return a 6-digit number. The instruct variant returns it directly, faster and cheaper, with the same accuracy on 20 test emails.

Key points

  • Base models predict text; instruct models follow instructions; reasoning models think before answering.
  • Use an instruct variant for most apps and keep base models for fine-tuning or raw completion.
  • Reasoning variants cost more tokens and time, so reserve them for hard multi-step tasks.
  • Each family has its own chat template, and the right one must wrap every message you send.
  • Community fine-tunes can help but must be tested against the original release.

Common mistakes

  • Downloading a base model and expecting it to behave like a chat assistant.
  • Using a reasoning model for simple extraction and paying for thinking tokens.
  • Building prompts by hand with another family's role markers.
  • Adopting a community fine-tune without comparing it to the official instruct model.

Check yourself · 2 of 3

What is a chat template?

Choose one answer

Check yourself · 3 of 3

Which variant best fits extracting an order number from short emails at high volume?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic