Tuning a local AI server on consumer Intel GPUs: measure first, then choose
How I tuned one open-weight model across two consumer Intel graphics cards, said no to a dozen plausible tweaks, and signed it off only after testing against a real workload.
Cloud AI is fast and cheap — right up until the day it isn't. Pricing changes overnight, a request gets refused, or the data simply isn't allowed to leave the building. So alongside the cloud I run my own model server: an open-weight model on hardware I own, as a fallback for the heavier jobs and the main engine for some of my own tools.
The hardware is deliberately modest — two Intel Arc A770 cards with 16 GB each, in a desktop built around a 2017 processor, 32 GB of RAM, and a SATA SSD. Roughly the budget of a mid-range gaming PC. The real question wasn't "is this enough?" It was: how much actual work can I get out of it, and how do I tell when a change truly helped rather than just looked as though it did?
That second question turned out to be the whole story.
One model, chosen on trust
I tested a long list of open models on this machine over several weeks. Some were faster — but they made mistakes: wrong code, broken tool calls, answers that fell apart somewhere past 22,000 tokens of context. A fast model you have to double-check is slower than a careful one you don't.
I settled on Qwen3.8 27B, a dense 27-billion-parameter model, and decided to run nothing else on this hardware. One model means every tuning decision serves exactly one workload — and it's the same model my directory experiment uses through the cloud, so the local fallback gives identical answers.
A 27B model at 4-bit precision is about 16.5 GB — too big for a single 16 GB card. So I split it across both: half the layers on each card, each taking its share of every token in turn.
The engine: the less obvious choice won
llama.cpp, the open-source server I use, can talk to Intel cards two ways: Vulkan, a cross-vendor graphics interface, and SYCL, Intel's own compute stack. Earlier tests — a small model, on one card — had favored Vulkan, and I nearly kept it on that basis. Re-testing on the real model, split across both cards, flipped the result completely:
| Prompt length | Vulkan | SYCL | Speed-up |
|---|---|---|---|
| 16,000 tokens | 197 tokens/s | 463 tokens/s | 2.3× |
| 66,000 tokens | 102 tokens/s | 371 tokens/s | 3.6× |
| 124,000 tokens | 31.2 minutes | 7.0 minutes | 4.5× |
Reading the prompt is most of the work in agent and document jobs, where the model reads a lot and writes a little. On realistic agent tasks SYCL handled 35–47% more work per minute, and code-edit turns ran 63% faster. Coding-test scores came out identical on both engines — so this was pure speed, no accuracy cost.
A bonus I didn't go looking for: the busier card runs about 10 °C cooler on SYCL (around 75 °C at 185 W, versus 86–89 °C at 230 W), well clear of its throttle point. I kept the Vulkan build around as a one-line fallback, in case a driver update ever breaks SYCL.
Which compressed version of the model?
Open models ship in many compressed ("quantized") versions. Two popular 4-bit builds of Qwen3.8 differ in how they compress certain layers. One decoded 52% faster on Vulkan, so at first it looked like a free win. But on SYCL that speed gap vanished — and across three runs with different random seeds on my coding test, the other build scored better: 23/24 against 20–21/24. I kept the more accurate one.
That comparison only became trustworthy after I fixed my own test harness. My evaluation scripts had used a single fixed random seed, which meant my proud "four perfect runs" were really one run repeated four times. Every comparison now uses several seeds.
A draft model that writes ahead
Generating text one token at a time is slow on a model this size. Speculative decoding helps: a small, fast "draft" model guesses the next few tokens, and the large model checks them all in a single step. When the guesses are right, you get several tokens for the price of one.
I compared two drafting methods across several settings. The winner — a dedicated draft model called DFlash2, running five tokens ahead and only when it's reasonably confident — finished my agent workload in 169 seconds against 246, and the coding test in 1.9 minutes against 3.1. It shines on predictable output: on structured JSON it guessed 86–90% of tokens correctly.
Capping the model's thinking
Qwen3.8 can "think" before it answers, which genuinely helps on hard problems. Left unchecked, though, it occasionally thinks forever. In one eight-task coding test, two tasks burned 12,000 tokens of reasoning and 15 minutes each — without writing a single line of code.
So I gave it a thinking budget. When it hits the limit, it's nudged to stop and answer:
| Thinking budget | Tasks passed | Time |
|---|---|---|
| None | 6/8 | 42 minutes |
| 8,192 tokens | 7/8 | 31 minutes |
| 4,096 tokens | 7/8 | 19 minutes |
Fewer runaways, more passes, less than half the time. The budget is a server default; work that doesn't need to think at all — like data extraction — switches it off per request.
What I tried and didn't adopt
Most of the work was ruling things out, and that deserves recording just as much as the wins:
- Pinning the GPU clocks. The cards drop their clock speed while waiting on each other. Pinning them nearly doubled one plain Vulkan setup — but gave nothing with the draft model or on SYCL, so it wasn't worth the extra heat.
- Power caps. They changed neither temperature nor, much, speed. The cards' own fan curves set the temperature.
- Community kernel patches. Several promising patches for Intel cards turned out to target Intel's newer architecture, not mine — or made no measurable difference.
- Serving two requests at once. More on that below.
Then test it on the real workload
Benchmarks are a proxy. The real test came from my own directory pipeline — which falls back to this server when the cloud is unavailable. Before I'd call the server finished, I replayed its real work: 18 business websites from one night's crawl, 138,000 tokens of page text, pushed through the pipeline's own extraction code.
- Every answer was valid structured JSON — 0 errors, nothing truncated.
- Quality matched the cloud provider — 171 facts found locally against 175, the difference well inside normal run-to-run variation.
- About 72 seconds per website, with the slowest at 234 seconds — comfortably inside the pipeline's timeouts.
The one thing the pipeline really wanted was to run two requests at once. I tested that four ways. With the draft model, two parallel requests crashed the server the moment both started drafting. Without it, two parallel requests were only 3% faster than one — and still slower than a single request with the draft model. On this two-card setup, the draft model is worth far more than parallelism. So the server stays at one request at a time, and the pipeline now checks whether it's busy and waits politely instead of timing out.
The replay also surfaced a genuine bug: my server software was silently ignoring a forced "submit your answer" tool call, so the model reached for the wrong tool every time. Offering only the submit tool, and requiring a call, fixed it in every trial.
The result
| Metric | Before | After |
|---|---|---|
| Reading a 124,000-token document | 32.5 minutes | 7.0 minutes |
| Agent work per minute | baseline | +35–47% |
| Coding test, 8 tasks, thinking on | 6/8 in 42 min | 7/8 in 19 min |
| Busiest card at full load | 86–89 °C | ~75 °C |
| Structured extraction, real pipeline | untested | 18/18 valid, matched the cloud |
What I learned
- Re-test your assumptions on the real setup. The engine that won on a small model on one card lost badly on the real model across two.
- Measure quality alongside speed. The fastest compressed model was the less accurate one — and a fixed test seed had hidden it from me.
- Most tuning is saying no. Clock pinning, power caps, kernel patches, parallel requests — all looked sensible, none earned its place.
- Finish on the real workload. Replaying one night of real work proved more than a week of synthetic benchmarks — and caught a bug no benchmark would have.
If you're building something similar on consumer Intel cards, I'm always happy to compare notes — drop me a line.