Choose an Ollama thinking mode on your Mac by running both settings on the same installed model and scoring the final answers against a result you can verify. Enable thinking for a task when it improves the usable answer often enough to justify the wait you observe on your Mac.

This guide uses a short scheduling decision with several constraints. It keeps the model tag, prompt, and runtime settings fixed while changing the request’s thinking setting. You need a local Ollama installation, an Ollama model that supports switching thinking on and off, and Python 3 for the example requests. Download the model first and keep both settings on the same Mac. Install and run Ollama on Mac.

Choose a build that exposes both settings

Ollama documents a thinking control for chat requests. A supported model can produce thinking output separately from its final answer. Some models offer named levels. Others always think to some degree. Look up the values available for your installed model and pick a build with a real on and off choice for this particular comparison. Ollama describes supported values in its model details and documents a Boolean example using Qwen3. Ollama’s thinking controls.

The qwen3:4b tag in Ollama’s library is an example of a local Qwen3 4B build with thinking support. Qwen’s model card describes both modes for the original model. The package tag, quantization, Ollama version, and how the runtime exposes the switch belong in your record. Use the same downloaded tag throughout the trial. A separate instruct checkpoint has its own training and package. Comparing it with a separate reasoning checkpoint can help with model selection, and that setup answers a different question from changing one setting on the same build. Qwen’s Qwen3-4B model card · Ollama’s Qwen3 4B tag.

Make a small task with a definite answer

Use a task that has a clear correct result and a few plausible wrong ones. The following example asks the model to select two sessions. A low fee can look attractive even when a pair has too few seats or a transition is too short. The result also includes a tie-break rule so you can check that the model honored all the instructions.

Save the text below as UTF-8 plain text in workshop-a.txt. The price of each session is a group fee. The same group needs two seats in each session.

Choose one setup session and one packing session for two people.
Each session must have at least two seats. Packing must start
at least 10 minutes after setup ends. Choose the pair with the
lowest combined group fee. Break a fee tie by choosing the
pair with the earliest packing finish.

Session | Start | End   | Group fee | Seats
S1      | 09:00 | 09:35 | $12       | 3
S2      | 09:15 | 09:55 | $9        | 3
S3      | 09:05 | 09:30 | $6        | 1
P1      | 09:43 | 10:15 | $12       | 3
P2      | 10:05 | 10:35 | $8        | 3
P3      | 09:45 | 10:20 | $8        | 3
P4      | 10:00 | 10:30 | $6        | 1

Return the setup ID, packing ID, combined fee, and packing
finish time on one line. S means setup and P means packing.

The answer is S2, P2, $17, 10:35. S2 ends at 09:55, which gives exactly ten minutes before P2. S3 and P4 have too few seats. P1 starts only eight minutes after S1 ends, so that pair is invalid. S1 paired with P3 is valid and costs $20. These checks explain why a cheaper looking session or an earlier finish alone would give the wrong answer.

Make a second UTF-8 file named workshop-b.txt by changing only the S2 group fee to $12. The answer changes to S1, P3, $20, 10:20. The lowest valid fee is now shared by more than one pair, and P3 finishes first among them. This is a useful second trial because it challenges a model that got the first answer by choosing S2 without checking alternatives. Keep both answer keys outside the input files.

If the two modes look equally capable, make a third case from workshop A by changing the required gap from ten to eleven minutes. Keep the original $9 fee for S2. The answer is now S1, P2, $20, 10:35. S2 and P2 become invalid at eleven minutes, as do S1 and P3. The gap from S1 to P2 is thirty minutes. Try this variation if exact cutoffs matter in your work. It checks whether a previously valid pair is still accepted when one eligibility rule changes.

Write down your acceptable wait before you start, using a value that fits the way you expect to use the model. A response you need during a call has a different time constraint from one that helps plan a workshop in the background. Keep the same limit for both settings on the same case. The result should tell you how many complete, correct answers arrived within the limit as well as how long each run took.

Send both settings to the same local endpoint

The script below posts one prompt at a time to Ollama’s local chat endpoint using Python’s standard library. It asks for a non-streaming response so the elapsed time ends when the script receives the complete reply. Save it as compare_modes.py in the same folder as the two prompt files. If your installed build has a different tag, edit the model value once before running both settings. Ollama chat API fields · Python’s elapsed-time clock.

import json
from pathlib import Path
import sys
from time import perf_counter
from urllib.request import ProxyHandler, Request, build_opener

prompt = Path(sys.argv[1]).read_text(encoding="utf-8")
opener = build_opener(ProxyHandler({}))

for mode in sys.argv[2:]:
    if mode not in {"off", "on"}:
        raise SystemExit("Choose on or off for each request.")
    body = {
        "model": "qwen3:4b",
        "messages": [{"role": "user", "content": prompt}],
        "think": mode == "on",
        "stream": False,
        "keep_alive": "5m",
        "options": {"temperature": 0, "num_predict": 1024},
    }
    request = Request(
        "http://127.0.0.1:11434/api/chat",
        data=json.dumps(body).encode("utf-8"),
        headers={"Content-Type": "application/json"},
    )
    started = perf_counter()
    with opener.open(request, timeout=180) as response:
        result = json.load(response)
    elapsed = perf_counter() - started

    message = result.get("message", {})
    print(f"{mode} | Complete reply received in {elapsed:.2f}s")
    print("Final answer:", message.get("content", "").strip())
    print("Thinking present:", bool(message.get("thinking")))
    print("Done:", result.get("done"), "End:", result.get("done_reason"))
    print("Load duration (ns):", result.get("load_duration"))

Start Ollama and make sure the tag is downloaded. Open Terminal in the test folder and run an initial pair. Then check that the final answers came back and whether the thinking output was present in each response. An unsupported setting, server error, or a build that still reports thinking in both requests calls for verifying the tag and runtime capability before comparing accuracy.

python3 compare_modes.py workshop-a.txt off on
python3 compare_modes.py workshop-a.txt on off
python3 compare_modes.py workshop-b.txt on off
python3 compare_modes.py workshop-b.txt off on

Each request contains one fresh user message. Reversing the order can reveal that the first request carries an extra model load or that repeated text benefits from caching. Check the reported load duration and keep the first load in a separate row if your everyday tasks typically use a model that is already loaded. For a comparison of the wait on arrival, begin each mode from an equivalent unloaded state. Hold the rest of the setup steady and note what you were able to control.

If you want a comparison with the model already loaded, run a brief warm-up with the same tag before your measured pair. Use a different prompt so the warm-up has its own clearly identified record. Leave the Mac in its normal working state throughout. Start the two requests close together enough that the model remains loaded, or verify that it was loaded before each request. A single local request can also be affected by other apps running at the time, so repeat the pair before drawing a conclusion from a small difference.

Keep the same prompt file for both modes of each case. The script sends the text as it reads it, so you can keep an original copy beside your working files and compare them if results change unexpectedly. If you adjust generation options for a later trial, create a new record and use those settings on both modes. Keeping the same model tag, request fields, and output cap makes it easier to explain what the two settings changed.

Compare complete answers against your budget

Use the final answer field to grade the reply. For each case, mark whether the IDs, fee, and finish time match the answer key. Check any explanation the model appends if you intend to share it. A complete reply whose final answer omits the fee is a failed task even when it contains a long account of the session choices.

Record the end reason and keep failed or timed-out runs. A model can run out of generation budget while producing thinking output. If a run is cut off, record the incomplete answer under the original settings. If you want to see how it does with more room, raise the output allowance for both modes and run a separate pair. Keep those results with their own settings and time budget. Ollama’s generation parameters.

The script measures elapsed time to a complete response at the client. Its elapsed time includes the local request and some response handling. The returned load duration is a separate server measurement in nanoseconds. A streaming app can display thinking or the first answer words earlier than this script returns. For the choice in this guide, compare elapsed time with the time at which you actually have all required fields. If the user experience depends on phases of the wait, measure them separately. Separate loading, prompt processing, and generation in Ollama.

Make a separate row for each completed run and label the fixture and mode. Include the IDs and figures exactly as returned and mark the failed rule when the answer differs. That gives you something more diagnostic than a correct answer count. If one mode often chooses a low-fee pair that has too few seats, it struggles with eligibility. If its pairs are all valid but it repeatedly picks the wrong finish during a fee tie, concentrate on the comparison rule when you add a representative case. Use the same grading rules for both modes.

Choose a mode for the task you will repeat

If both modes repeatedly return correct answers in your time budget, keep the mode that usually completes sooner or is simpler to use in your app. If thinking corrects a repeatable error on a meaningful case and the longer reply still meets your budget, keep it for that kind of task. A mode that works on the main case and fails the altered one has a narrower use. Record which condition caused the trouble before using it on more complex work.

If both modes fail the same constraint, verify the input and rewrite the instruction once to make that constraint explicit. Rerun both modes with the same revised prompt. If the model still misses it, use a deterministic checker for the decision or try a different model and keep it as a separate comparison. For example, a spreadsheet can list all valid workshop pairs and give you an independent result when the rule will be repeated.

Keep the model tag, Ollama version, exact prompt files, settings, and answer record. Repeat the fixtures after a runtime update if the settings or response fields change. A published comparison of separate Thinking and Instruct checkpoints can help you decide which models deserve their own trial. Your same-build record gives you a setting for the short work the Mac actually has to complete. See a published Thinking and Instruct checkpoint comparison.