← Back to Writing

Ollama on Orange Pi 6 Plus: Setup, Speed, and Limits

About this artifact

essayon-the-recordmaintained

method · since 2026

My Orange Pi 6 Plus could answer questions about my blog, but a 14B model made long answers painful. I saw roughly one or two tokens per second in the original runs. Asking it to find a passage and write a short answer gave the machine a useful job.

This account draws on my June 2026 build notes, including failures recorded after the original publication. I have not rerun the board for this revision. The speeds are observations from that build, and the setup check below is a proposed starting point for a new install.

The setup I actually recorded#

Component June 2026 record
Board Orange Pi 6 Plus, twelve ARM CPU cores
Memory 32GB tier, about 30 GiB usable
Storage 465.8GB NVMe drive
Operating system Ubuntu 26.04 LTS
Kernel 7.0.0-37-cix, aarch64
Ollama Version 0.30.4
Inference backend CPU; logs showed library=cpu and tensors in CPU buffers
Original larger model qwen2.5-coder:14b
Retrieval models nomic-embed-text for embeddings; qwen2.5-coder:7b for answers

The OS and kernel identify the machine I used. They are historical configuration, not a recommendation to install those versions today. I am also not providing a tested OS-image flashing recipe. Getting a working ARM64 Linux installation on this board comes before the Ollama check.

Neither the GPU nor the NPU contributed to the inference described here. Installed drivers and advertised accelerator capability would not establish otherwise. For this workload, the useful question was which backend Ollama actually loaded.

Start with one short local request#

For a fresh attempt, I would follow the ARM64 section of Ollama's Linux installation instructions. After the server is running, I would keep its listener and the CLI client on localhost for the first check. A chat interface and access from another computer can wait until one local request works.

The commands below are for a terminal on the Linux board, using the default local Ollama server. They are an instructional example, not a fresh successful run on mine. gemma2:2b was among the smaller models installed during the June build; it gives this check a specific model tag without starting at 14B.

uname -m
ollama --version
ollama pull gemma2:2b
timeout 300s ollama run gemma2:2b \
  "In two sentences, explain why backups should be tested."

I would expect aarch64 from the architecture check. The prompt requests a short answer, and the Linux timeout command limits the CLI run to five minutes. That bounds the command's wait; it is not a server-side cancellation guarantee. A timeout would call for inspecting the service and its logs before adding more work. The Ollama CLI reference documents the pull and run commands.

While the model is loaded, a second terminal can show its placement:

ollama ps
journalctl -u ollama --no-pager -n 100

In ollama ps, the PROCESSOR column distinguishes CPU, GPU, and mixed placement. Ollama's FAQ explains these values. The log command assumes a systemd service and permission to read its journal. My historical logs established CPU inference; these commands let a reader inspect their own installation.

For a later timed test, the generation API returns timing fields alongside the answer. eval_count / (eval_duration / 1e9) gives generated tokens per second for a completed request. I would also record total wall-clock time, since model loading and prompt processing affect the wait at the keyboard. An answer confirms one request worked. It says little about sustained load or recovery after reboot.

Retrieval gave the slow model less to write#

The useful experiment was asking a question about my own writing: what rule do I use for letting an LLM make decisions, and how is it enforced? The retrieval program printed matching passages from my posts before asking the local model to compose an answer. I could inspect the source text directly.

The June record says the index held seventeen posts and 171 chunks. The saved code makes the path straightforward:

Stage Configuration in the saved implementation
Split documents Group paragraphs toward a 900-character target; a long paragraph can exceed it
Embed Send each chunk to local nomic-embed-text
Retrieve Embed the question and rank chunks by cosine similarity
Build context Take the four highest-ranked chunks with their source filenames
Generate Ask local qwen2.5-coder:7b for an answer, capped at 200 tokens

A local RAG query displays matching blog passages and an answer generated from the retrieved context A saved query from the build. The displayed sources make this answer inspectable; they do not establish accuracy across other questions.

The prompt asks the model to use only the supplied context and say when it lacks the answer. The code does not validate that instruction, enforce citations, or check whether every assertion follows from a passage. I still have to read the result.

Short answers made the generation delay tolerable for this use. Retrieval also let me find the passage without depending on the generated summary. For a first corpus, I would choose a few documents with known answers and include a question they cannot answer. That tests whether the search finds useful evidence and whether the model invents an answer when the evidence is missing.

The tuning notes do not prove a twofold speedup#

I originally attributed a slowdown to KV-cache quantization. The record is less tidy: q8_0 cache quantization and flash attention changed together. The notes report a 7B rate moving between 1.2 and 3.1 tokens per second, but they also disagree about whether the measurements were taken on an idle or contended machine.

Those numbers cannot isolate quantization overhead or establish a repeatable speedup. I removed the earlier causal claim. The roughly one-to-two-token rate for the 14B model remains an anecdotal reason I preferred short answers, rather than a benchmark another owner should expect to reproduce.

For another tuning attempt, I would save the prompt, model digest, context length, output cap, thread settings, and runtime version. I would measure repeated warm runs with the machine otherwise idle, changing one setting at a time. The old provisioning settings are not a reliable recipe to copy forward.

I have no controlled power, thermal, or price comparison from this build. It does not support a claim that this board is the fastest or cheapest way to run the workload.

Remote access was still a problem in June#

The board sometimes answered ping while SSH could not complete a session. Early notes attributed that to CPU starvation and recorded a login-service priority change and watchdog configuration. Later failures outlasted that explanation.

The June 23 audit recorded restored access after a power-cycle. The June 24 audit recorded another SSH hang, with Ollama also accepting a TCP connection but failing to return an HTTP response. Power-cycling had cleared symptoms; it had not established a cause or a durable fix. These are dated observations, not a claim about the board's current condition.

That changes what I would verify before leaving it unattended. I would test a new SSH login during inference, check that the intended services return after reboot, and confirm monitoring output can be read afterward. The June record never established the monitoring task's effect end to end. A queued task and a reachable port were insufficient evidence.

The hosted maintainer had a separate boundary#

I also added a resident Claude Code agent that called a hosted model. The local retrieval path kept its documents, embeddings, and generation on the board. Running the maintainer process there did not make its inference local; context sent to that model crossed a separate data boundary.

The maintainer ran under a restricted account with command checks and an approval queue. Those checks covered recognized commands on the intercepted action channel. Unrecognized command forms and other channels remained outside their coverage.

The agent control plane shows recognized privileged requests waiting for a human decision The approval queue for requests routed through the command checks.

Its scheduled audit could compare observed state with the written record and update a backlog. That was useful bookkeeping. It did not establish that proposed repairs completed or that the board could recover itself.

I use the same written-rule approach in my software projects. The spec-directory lesson shows how I keep intent, acceptance criteria, and approval in files that a fresh coding session can read.

A saved nightly audit shows observations, reconciled backlog items, and a commit One recorded audit. The later access failures limited what subsequent audits could inspect.

Before expanding that agent's authority, I would require a monitoring task to finish, leave durable output, and have that output confirmed after a reboot. The next useful result from this build is a recovery record I can repeat.