AI Experiments Part 2: Installing and Testing Ollama

Version note: This experiment did not record the exact installed Ollama version in the post. The model identifiers and workstation details describe the August 2026 test.

In Part 1, I compared two larger models in OpenCode. I used a smaller model for autocomplete in Continue.

This part describes the setup for that experiment.

Installing Ollama is simple. The important work is confirming the loaded model, its location, context size, and result comparability.

Installing Ollama on Linux

I used the command from the official Linux installation guide:

curl -fsSL https://ollama.com/install.sh | sh

The same command updates an existing Linux installation. I record the installed version before testing:

ollama --version

On a systemd machine, I check the service status. I do not assume the installation succeeded:

systemctl status ollama --no-pager

If the service is unhealthy, I check the logs next:

journalctl -u ollama --no-pager --follow --pager-end

This separates Ollama problems from model problems before I change anything else.

Pulling the models

These are the three exact models on my workstation:

ollama pull qwen3.6:27b
ollama pull laguna-xs-2.1:q4_K_M
ollama pull qwen2.5-coder:1.5b

At the time of testing:

  • qwen3.6:27b was a 27.8B dense model. It had a 17 GB download.
  • laguna-xs-2.1:q4_K_M was a 33.4B mixture-of-experts model. It had a 20 GB download and 3B active parameters per token.
  • qwen2.5-coder:1.5b was a 1.54B coding model. It had a 986 MB download.

I pull models first. This keeps download time out of load tests.

The normal inspection commands are:

ollama list
ollama show qwen3.6:27b
ollama ps

list shows local models and their IDs. show reports parameters, quantisation, capabilities, and maximum context. ps shows the currently loaded model.

Running a model starts an interactive session:

ollama run qwen3.6:27b

For cleanup, stop unloads a model. rm removes its local files:

ollama stop qwen3.6:27b
ollama rm qwen3.6:27b

Removing a model is not part of benchmarking. Unloading it is.

Size and context are different limits

A model’s download size is not its complete runtime memory requirement.

Weights need memory. The context cache also needs memory. Runtime overhead and GPU support take space too. A 17 GB model does not leave exactly 7 GB free on a 24 GB card.

The two larger models advertise a 262,144-token context window. Qwen2.5-Coder 1.5B supports 32,768 tokens. These are model limits. They do not promise the full context fits on my hardware.

During the Part 1 experiment, ollama ps showed a 32K allocated context. This fitted the common limit of all three models. It did not test the larger models at their maximum.

The Ollama context guide shows the main trade-off. Increasing context increases memory use. If this forces part of the model onto the CPU, performance can change sharply.

Verifying the GPU

My workstation has an RTX 3090. The first check is:

nvidia-smi

This confirms Linux and the NVIDIA driver see the card. It does not prove Ollama loaded a model onto it.

I run a small prompt, then inspect Ollama:

ollama run qwen3.6:27b "Reply with exactly: OK"
ollama ps

The PROCESSOR column reports 100% GPU, 100% CPU, or a CPU/GPU split. The CONTEXT column reports the actual allocation.

The Ollama hardware support page is useful for driver and compatibility checks. ollama ps describes the setup that produced a result. I record both PROCESSOR and CONTEXT with every test.

An unloaded and warm check

ollama run --verbose adds timing and token information to a response.

The first check uses a fixed task. It tests one model at a time. It distinguishes an unloaded run from a resident one:

model='qwen3.6:27b'
prompt='Implement a Python function named group_by_level(records), with type hints, a docstring, and pytest tests.'

ollama stop "$model"
ollama run --verbose "$model" "[unloaded-01] $prompt"
ollama ps
ollama run --verbose "$model" "[warm-01] $prompt"

The first request loads the model. The second runs while it remains in memory. Ollama normally keeps a model loaded for five minutes.

I call the first result an unloaded run. It is not a true cold start. ollama stop unloads the model. Linux may still have its files in the filesystem cache. A first run after reboot is a different storage test.

For repeated trials, I change the prompt prefix. For example, I use [warm-02]. This reduces reuse of an identical prompt prefix. A useful comparison needs several trials and the median result. It does not use the fastest one.

For a strict non-thinking speed comparison, I add --think=false for Qwen3.6 and Laguna. Hiding thinking is not enough. Hidden reasoning still takes tokens and time. I keep default-thinking runs separate. Disabling an intended model behaviour changes the practical test.

This is useful for observing load time and normal command-line behaviour. It is not a controlled cross-model benchmark. Chat templates, output lengths, and sampling defaults can differ.

For an engine-throughput comparison, I use Ollama’s generate API with fixed settings:

curl -sS http://127.0.0.1:11434/api/generate -d '{
  "model": "qwen3.6:27b",
  "prompt": "[trial-01] Explain three trade-offs in local model serving in about 150 words.",
  "raw": true,
  "stream": false,
  "options": {
    "num_ctx": 32768,
    "num_predict": 256,
    "temperature": 0,
    "seed": 42
  }
}'

For each model, I change the trial prefix. I stop unrelated models. I run one warm-up. Then I record at least six trials. The raw prompt removes the models’ chat templates. This measures prefill and generation mechanics. It does not measure which model is the better coding assistant.

Metrics worth recording

The official usage documentation defines the underlying metrics.

I record:

  • total duration, the server-side time for the complete response
  • load duration, the time spent loading the model
  • prompt eval count and prompt eval rate, the input size and prefill speed
  • eval count and eval rate, the output size and generation speed
  • the PROCESSOR and CONTEXT values from ollama ps

Counts matter. Two responses with different lengths cannot be compared by total duration alone. total duration is not time to first token. The verbose output does not report that separately.

What makes a comparison fair

These models are not three versions of the same thing.

Qwen3.6 is dense. Laguna is an MoE model with fewer active parameters per token. All of its expert weights still need to be stored and loaded. Qwen2.5-Coder is much smaller. It is intended here for autocomplete.

Their tokenisers can divide the same text differently. Token speed is not a universal unit of useful output. Thinking also changes how many tokens a model generates before its visible answer.

Chat and autocomplete need separate tests. Qwen2.5-Coder supports fill-in-the-middle completion. An ollama run chat prompt is not the same request Continue sends from an editor.

A model running entirely on the GPU is not directly comparable with one spilling into system memory. Unless that hardware constraint is the point of the test.

Quality still decides the result

The speed test tells me whether a model is practical to run. It does not tell me whether I should use its answer.

For coding tests, I put the result in a throwaway checkout. I inspect the diff. I run known tests that the model did not write. I record correctness, unnecessary changes, factual mistakes, and repair effort.

The takeaway

My baseline is now explicit. I record the exact model tag and ID from ollama list. I confirm GPU placement and context. I record unloaded and warm verbose runs. Then I judge the output with a real task and independent tests.

If a comparison does not include those details, its token speed is not useful enough for me to act on.