# Lower temperature helped my 2B model, and thinking off did not

> Thinking off made Qwen 3.5 2B three times faster but cost 74 of 1,080 trials. Temperature 0.6 and presence penalty 0 raised passes from 923 to 962.

Canonical: https://nosistech.com/temperature-and-thinking-small-model/
Published: 2026-11-30
Last updated: 2026-11-30
Author: Carlos, NosisTech LLC

Ollama delivers Qwen 3.5 2B with thinking on, a temperature of 1 and a presence penalty of 1.5. Before I released [Korvin](https://korvin.cloud/) 0.3.0, I tested two changes to that setup on the same 1,080 eval trials.

Thinking off made the model about three times faster, and it passed 74 fewer trials. I left thinking on. A temperature of 0.6 with a presence penalty of 0 raised the passes from 923 to 962, and I kept it. [Of my eleven tuning ideas](https://nosistech.com/control-runs-eleven-tuning-ideas/), it is the only one in Korvin 0.3.0.

## The three settings

The temperature controls how much chance goes into each word that the model picks. A high value gives more varied text, and a low value gives more predictable choices. The presence penalty pushes the model away from words that it already used.

Thinking is hidden text that the model writes before its answer or tool call. [The model card](https://huggingface.co/Qwen/Qwen3.5-2B) says that the model does not think by default. Through Ollama, it did think in my runs. The card also says that thinking raises the instruction-following score from 61.2 to 78.6. It warns that the 2B size is more likely than its larger siblings to loop while it thinks.

For thinking with text, the card suggests a temperature of 1.0 and a presence penalty of 1.5. For precise coding, it suggests 0.6 and 0. Tool calls are precise work too, so I tried the coding values, with thinking on. I tested only this one pair.

## The 1,080 trials behind both tests

Each test used 44 whole tasks at 10 trials and 32 [single-step evals](https://nosistech.com/single-decision-evals/) at 20 trials. A whole task is a full request that may need several tool steps. A single-step eval checks one decision, such as the tool that the model picks first. The set covered chains of files, notes, mixed tasks, hidden orders, honesty and conversations.

A program graded every trial. In one single-step eval, for example, the user asks for a note to be saved. The trial passes only if the model asks to call `save_note`.

I also track the every-time rate: the share of tasks that pass in all of their tries. A user never sees the average, only the one try that failed.

Every number here comes from one model on one laptop with a 4 GB graphics card (RTX 3050 Ti). Ten trials per whole task is not many, and small groups such as mixed tasks have only 40 trials in total.

## Thinking off was three times faster and passed 74 fewer trials

I found the switch in [Ollama's documents](https://docs.ollama.com/api/openai-compatibility) and checked it with Ollama 0.40.17, the only version I tried. You send `"reasoning_effort": "none"` to `/v1/chat/completions`, and the thinking text disappears. A field named `think` has no effect on this connection. The old "/think" and "/nothink" text switches do not work in this model family either.

| Measure | Thinking on | Thinking off |
| --- | --- | --- |
| All 1,080 trials | 916 (85%) | 842 (78%) |
| Notes | 58 of 60 (97%) | 49 of 60 (82%) |
| Mixed tasks | 37 of 40 (93%) | 26 of 40 (65%) |
| Single-step tool choices | 148 of 160 (93%) | 111 of 160 (69%) |
| Use of a tool result | 117 of 160 (73%) | 137 of 160 (86%) |
| Every-time rate (5 tries) | 60% | 50% |
| Median seconds for a whole task | 5.0 | 1.8 |
| Mean seconds for a single-step eval | 1.8 | 0.6 |

*Table 1. Thinking on and off, with the old sampling values.*

![Thinking on passed more trials in every group except the use of a tool result](https://nosistech.com/wp-content/uploads/2026/11/korvin-14-thinking-groups.png)

*Figure 1. Share of trials passed. Thinking off won only in the use of a tool result.*

![A whole task took a median of 5.0 seconds with thinking and 1.8 seconds without](https://nosistech.com/wp-content/uploads/2026/11/korvin-14-thinking-speed.png)

*Figure 2. The speed that thinking off buys.*

Luck alone gives a gap of 74 trials far less than 1 time in 1,000. Without thinking, the model often listed the folder when the user asked it to save a note. In that eval, it asked to save the note in 0 of 20 trials, against 17 of 20 with thinking.

The one group where thinking off won is the use of a tool result after a refused action: 137 of 160, against 117. I did not keep that gain, because the losses were much larger.

A later experiment pointed the same way. I tried the chat format of Qwen 3 Coder for tool calls, and the model skipped most of its thinking. The median thinking in a single-step eval fell from 248 characters to 2. That version passed 905 of 1,170 trials, against 1,050, and it was faster only because it did less work.

## Temperature 0.6 and presence penalty 0

I ran the old values twice, because two runs show how far results move by chance alone. Thinking was on in all three runs.

| Measure | Old, run 1 | Old, run 2 | 0.6 and 0 |
| --- | --- | --- | --- |
| All 1,080 trials | 916 (85%) | 923 (85%) | 962 (89%) |
| Chains of files | 43 of 60 (72%) | 46 of 60 (77%) | 57 of 60 (95%) |
| Notes | 58 of 60 (97%) | 54 of 60 (90%) | 60 of 60 (100%) |
| Single-step tool choices | 148 of 160 (93%) | 137 of 160 (86%) | 155 of 160 (97%) |
| Requests that Korvin cannot do | 118 of 120 (98%) | 115 of 120 (96%) | 108 of 120 (90%) |
| Every-time rate (5 tries) | 60% | 61% | 72% |
| Median seconds for a whole task | 5.0 | 5.4 | 3.4 |

*Table 2. Old values against new values, on the same 1,080 trials.*

![The new values passed 962 of 1,080 trials, against 916 and 923 with the old values](https://nosistech.com/wp-content/uploads/2026/11/korvin-14-sampling-total.png)

*Figure 3. Trials passed with each set of sampling values.*

The two old runs agree closely. Luck alone gives the new gap about 1 time in 100, and against both old runs together, about 2 times in 1,000.

![Chains rose from 72% and 77% to 95%, while requests that Korvin cannot do fell from 98% and 96% to 90%](https://nosistech.com/wp-content/uploads/2026/11/korvin-14-sampling-groups.png)

*Figure 4. The gain was largest for chains of files, and one guard slipped.*

![The share of tasks that passed in all 5 tries rose from 60% and 61% to 72%](https://nosistech.com/wp-content/uploads/2026/11/korvin-14-every-time.png)

*Figure 5. The every-time rate with each set of values.*

A whole task also got about 2 seconds faster, because the model thought less. The final full run of Korvin 0.3.0 pointed the same way: whole tasks rose from 92 to 103 of 110 against version 0.2.0 (p 0.03).

Some guards slipped. For requests that Korvin cannot do, the model passed 108 of 120, against 115 and 118 before. In most of those failures, it searched the notes for the weather, which is harmless but still the wrong answer. The model also tried a hidden read more often. Korvin's read question stopped every try, and no private file was read.

There is one more cost. Korvin replaces two values that you may have set in Ollama yourself.

## The same values in three other agent tools

I also [compared Korvin with OpenCode, goose and Pi](https://nosistech.com/four-agent-tools-one-small-model/) on the same model. They are coding agents, and their makers did not design them for a 2B model. My 22 tasks fit Korvin's use.

In the main part, those tools used the model defaults. In a matched part, each one sent Korvin's values where it could. Pi rose from 100 to 105 of 110, OpenCode from 72 to 77, and goose from 51 to 70.

![Pi, OpenCode and goose each passed more trials with Korvin's sampling values](https://nosistech.com/wp-content/uploads/2026/11/korvin-14-other-tools.png)

*Figure 6. The other tools with the model defaults and with Korvin's values.*

Three cautions apply. OpenCode could set only the presence penalty, and goose only the temperature. Main and matched are separate runs, with no test for the change inside each tool. Leftover drive searches also used the processor during the matched part.

## Loops and the thinking limit

Thinking looped once in the 1,080 trials with thinking on, and Korvin stopped that loop safely. Korvin stops any reply after 12,000 characters of thinking text. In the final full run, it stopped 10 replies at that limit, in about 1,700 turns of whole tasks. Five were in long-context tasks, and each stop was clean.

The longest loops had nothing to do with tools. The evals send a short warm-up request, "Say OK.", before a run. Four times, the model thought in a loop until the 64k context was full. The evals now stop the warm-up reply after 4,000 characters.

If your small Qwen model does tool work, these steps follow from my runs and from the card:

1. Keep thinking on.
2. Put a hard limit on thinking text.
3. Stream the reply, as the makers advise, so that your program can stop a loop.
4. Do not send old thinking text back into the conversation history.
5. Cap any warm-up or health-check reply.

## Changing the values in Korvin

If you run Korvin from the [repository](https://github.com/nosistech/korvin), you need to do nothing. Section 4.6 of the [user guide](https://github.com/nosistech/korvin/blob/main/docs/USER_GUIDE.md) explains the settings. To try other values:

1. Open the file `korvin\door.py` in a text editor.
2. Find the line `SAMPLING = {"temperature": 0.6, "presence_penalty": 0.0}`.
3. Change the numbers, and save the file.
4. If you installed the `korvin` command with pip, type `pip install .` in the Korvin folder again.
5. Start Korvin again.

Every other setting, such as `top_k` and `num_ctx`, still comes from the model in Ollama. One question stays open. Every thinking-off trial above used the old values, and I never tested thinking off with 0.6 and 0.
