<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Serious Computer Business</title>
    <link>https://octet-stream.net/b/scb/</link>
    <description></description>
    <managingEditor>tom.karpiniec@outlook.com (Thomas Karpiniec)</managingEditor>
    <pubDate>Sun, 29 Nov 2026 16:44:17 +1100</pubDate>
    <item>
      <title>Tuning web search in Open WebUI</title>
      <link>https://octet-stream.net/b/scb/2026-10-05-tuning-web-search-in-open-webui.html</link>
      <description></description>
      <content:encoded><![CDATA[<p>
I have continued to fiddle around with how web search works on my local LLM setup. As I’ve mentioned before, it’s super important not to neglect the search function. Even a smaller model can do great work provided it can look up correct and up-to-date information.
</p>

<h2>Providers</h2>

<p>
For a couple of weeks I used my own port of SearXNG. When you look into this project closely, though, you realise that minor matters like “complying with terms of service” aren’t really a priority. <a href="https://github.com/searx/searx/issues/1237">This issue</a> captures the flavour. Many search backends are putting up Anubis or captcha challenges and it’s abundantly clear that they don’t <em>want</em> LLMs autonomously using their search index. And y’know, fair enough. It’s a service that costs money to run and it’s only reasonable that someone pays someone for it, especially if they’re not going to be looking at the ads.
</p>

<p>
To that end I tried out both <a href="https://help.kagi.com/kagi/api/search.html">Kagi</a> and <a href="https://brave.com/search/api/">Brave Search’s</a> APIs. I picked those two simply because I recognised both brands and their commitment to privacy. That’s pretty important if you’re going to funnel all of your search queries through them. In the end, Brave won on price. Today, it’s 0.5c per search vs 1.2c for Kagi. Brave also has a generous 1000/month free tier. I expect I’ll exceed that but paying a few bucks a month for this kind of service seems like a fair deal.
</p>

<p>
Happily, both Open WebUI and OMP make it straightforward to use. In the former you can choose your provider under Web Search settings and paste in the API key; in the latter you set the envvar <code>BRAVE_API_KEY</code> and it picks it up automatically.
</p>

<h2>Web search flow and cache reuse</h2>

<p>
Now, let’s talk about performance. I had a look at the logs from llama-server while having a conversation through Open WebUI and I noticed a bit of context churn. To save memory, I currently have no RAM cache configured, which means that if the model swaps from one context to another then back again, my GPU has to prefill that entire conversation from the start. Cache can help but it comes with its own trade-offs. In general it’s better to avoid switching contexts in a local inference setup.
</p>

<p>
For some reason, this switching back-and-forth was happening even during a single linear conversation in OWUI. The impact wasn’t outrageous—chat conversations tend to have short contexts compared with coding sessions so it caught up quickly. Still, it would be nice to avoid those unnecessary seconds of latency if I can. I captured some verbose logs to check what actually happened through a multi-turn conversation:
</p>

<a href="https://octet-stream.net/assets/serious/search-flow.png"><img src="https://octet-stream.net/assets/serious/search-flow.png" style="width:100%"></a>

<p>
The first thing to notice is that it wasn’t the web search’s fault. If you haven't seen this before, the way <code>search_web</code> and <code>fetch_url</code> work is via tool calls. The model writes some structured markup saying “please do a search for these terms” and then ends its response.
</p>

<ol>
<li>OWUI sees this special output in the result.
<li>OWUI runs the search.
<li>OWUI appends the results to the end of the context as structured JSON.
<li>OWUI asks the model to continue the conversation.
</ol>

<p>
This means that when I typed one message and pressed enter, this resulted in two distinct calls to the model with a break in the middle where OWUI had to go and run a web search. In this case the model decided it could answer my question from the little snippets in the search results alone, so it gave an answer and stopped. Fetching the content of a URL works exactly the same way.
</p>

<p>
Both of these are the happy path—OWUI is just throwing more stuff on the end, making the context bigger. Since everything before that is the same, llama-server recognises that it has most of this conversation in cache already and it only has to prefill the new part on the end. Life is good.
</p>

<p>
However, there are three situations in this log where the cache was <em>not</em> fully engaged, and these have varying levels of impact.
</p>

<h2>Title generation</h2>

<p>
The first request against the model is not even my question. OWUI is asking it to summarise the query in a few words to generate a title. This is pretty useful for browsing conversations later but it adds about 2 seconds latency before it gets to actually <em>answering</em>.
</p>

<pre>
### Task:
Generate a concise title summarizing the chat history.
### Guidelines:
- The title should clearly represent the main theme or subject of the conversation.
...
</pre>

<p>
Open WebUI actually sends two requests in parallel to generate the title and answer the question. The title query comes slightly earlier. Since the GPU can only handle one request at a time, answering the question gets queued behind. Since the prompt for each of these requests is different, this naturally clears the KV cache and we start from scratch. This isn’t back-and-forth churn exactly, but it’s mildly inelegant that both requests contained your query text and the GPU had to prefill it twice.
</p>

<p>
You can choose under <em>Interface</em> settings whether you want this feature. I’ve decided to leave it on.
</p>

<h2>Tag generation</h2>

<p>
This is the painful one. After the model completed its first reply in full—the combination of two responses and one set of search results—OWUI sent in a separate prompt asking for some “tags” to match this conversation.
</p>

<pre>
### Task:
Generate 1-3 broad tags categorizing the main themes of the chat history, along with 1-3 more specific subtopic tags.

### Guidelines:
- Start with high-level domains (e.g. Science, Technology, Philosophy, Arts, Politics, Business, Health, Sports, Entertainment, Education)
- Consider including relevant subfields/subdomains if they are strongly represented throughout the conversation
...
</pre>

<p>
The model dutifully replied with the list “General”, ejecting the main conversation context in progress.
</p>

<p>
Then when I typed in a follow-up question it had to eject its cache again and prefill 5,716 tokens from the beginning, which added 4.1 seconds to my next query.
</p>

<p>
I don’t use tags, so I went under <em>Interface</em> and turned this feature off.
</p>

<h2>Citation instructions</h2>

<p>
OWUI did something quirky here—after the model asked to fetch the full content of a page, it actually edited the human’s third turn. It prepended some special system instructions explaining how to provide inline citations to URLs that it’s referencing.
</p>

<pre>
### Task:
Respond to the user query using the provided context, incorporating inline citations in the format [id] **only when the &lt;source&gt; tag includes an explicit id attribute** (e.g., &lt;source id="1"&gt;).

### Guidelines:
- If you don't know the answer, clearly state that.
- If uncertain, ask the user for clarification.
...
</pre>

<p>
This is a useful feature but because it modifies history, it doesn’t match llama-server’s cache. Fortunately, it can recognise that it’s only a couple of hundred tokens on the end which are different. As a result, the practical impact is minimal, and the extra instructions provide important functional value.
</p>

<h2>Conclusion</h2>

<p>
I’m now satisfied I know exactly what’s going on, and with tag generation disabled I’m not seeing any major cache misses. It goes to show how much these front ends are primarily designed for cloud inference where the cost of starting a second context in parallel is minimal. Those of us with only one slot need to be vigilant for any thrashing, or we get stuck with slower speeds.
</p>
]]></content:encoded>
      <author>Thomas Karpiniec</author>
      <guid>urn:uuid:05f1cd3c-5a13-4b8d-abdc-9a2743143bf5</guid>
      <pubDate>Mon, 05 Oct 2026 22:47:09 +0000</pubDate>
    </item>
    <item>
      <title>Strata</title>
      <link>https://octet-stream.net/b/scb/2026-10-07-strata.html</link>
      <description></description>
      <content:encoded><![CDATA[<p>
The big news in local LLMs this week is a project called <a href="https://github.com/Niko1221/Strata/">Strata</a>, a new inference engine for Linux and Windows tailored to run <a href="https://huggingface.co/Qwen/Qwen3.8-Flash-Next">Qwen3.8-Flash-Next</a> on reasonably available hardware. I’ve been trying it out the last couple of days and I can confirm: this is the real deal. This is the good stuff.
</p>

<a href="https://octet-stream.net/assets/serious/strata-monitor.png"><img src="https://octet-stream.net/assets/serious/strata-monitor.png" alt="Strata monitoring screen"></a>

<p>
Let’s compare this with what I was running a few days ago:
</p>

<table>
<tr><td>Engine</td><td>llama.cpp</td><td>Strata</td></tr>
<tr><td>Model</td><td>Qwen3.8-27B</td><td>Qwen3.8-Flash-Next</td></tr>
<tr><td>Parameters</td><td>27B</td><td><b>125B + 51B n-gram</b></td></tr>
<tr><td>Prefill (tok/s)</td><td>1500–1000</td><td><b>3000–1500</b></td></tr>
<tr><td>Output (tok/s)</td><td>50–30</td><td><b>140–100</b></td></tr>
<tr><td>Quantisation</td><td>Q4_K_M</td><td>IQ3_XXS</td></tr>
<tr><td>Context (my setup)</td><td>131072 @ Q8</td><td>131072 @ Q8</td></tr>
<tr><td>VRAM (my setup)</td><td>23 GB</td><td>23 GB</td></tr>
<tr><td>System RAM</td><td>0 GB</td><td>39 GB</td></tr>
</table>

<p>
It scales as far down as 32 GB system RAM and 12 GB VRAM; however, you take a bit of a hit on quantisation. I got lucky—I recently upgraded my new PC to 64 GB RAM, so between that and its laptop-edition 5090 I’m able to comfortably fit a quantisation that doesn’t have a major drop in quality. Now I have over double the token rate and a <em>much</em> stronger model. This is even much better tok/s than you get today as an OpenAI subscriber running GPT-6.1 Sol. It’s absolutely wild.
</p>

<p>
There are a few things going on here that make such a jump possible. Strata is fundamentally using more of my computer than Qwen3.8-27B did. I’m using a bunch of extra RAM outside my GPU and CPU is involved too. The model architecture is different; apart from being a MoE design which means faster computation, many additional weights live on SSD in the n-gram table for fast lookup. The result is an optimisation of speed and intelligence that’s sympathetic to the spread of resources available on a fast PC, rather than assuming you’re racking up a bunch of NVIDIA Blackwell cards.
</p>

<p>
Now obviously, to get “Opus at home” I’m bringing some pretty serious equipment to bear. This is not your average laptop. At the same time, it’s “just” a high-end gaming laptop. That’s awesome for anyone who has access to that kind of hardware, and above all it shows that the future is bright for local inference. Models are only going to get more intelligent and more efficient from here.
</p>

<p>
I suppose things will get tougher for OpenAI and Anthropic in the years ahead. If you can get reasonably fast tokens on reasonably priced equipment, many people won’t want to pay big bucks to outsource the problem to the cloud. To their credit, I think companies like OpenAI understand that and it makes sense why they’re investing in more wrapping up AI in convenient packages like <a href="https://openai.com/index/introducing-dots/">dots</a> and their new <a href="https://openai.com/index/gpt-6-for-everyone/">intelligent UI</a> system. Text chat isn’t going to be the dominant UI forever. Open source developers and the local inference crowd will probably always be playing catch-up. Fortunately, we have the tools to do so if we wish.
</p>

<p>
So, just how good is this model? I haven’t tried to run any objective benchmarks but I’ve used it for a number of tasks. It’s added some new features to my static site generator, fixed some bugs in <a href="https://games.octet-stream.net/">a status page for me to see if anyone’s using my game servers</a>, and performed a bit of security research. It successfully found and exploited an issue, nothing earthshattering, but not a bad effort at all for an hour or two of analysis running on my GPU. It’s fast and effective.
</p>

<p>
There are some benchmarks available: <a href="https://huggingface.co/ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF">this analysis</a> shows that IQ3_XXS only falls slightly short of baseline BF16 performance. The trick here is that it can be smaller than a flat Q4 quant by tuning weights adaptively—more important weights get more bits while less important weights get fewer. If <a href="https://artificialanalysis.ai/models/qwen3-8-flash-next?endpoints=openai_gpt-5-6-sol-medium%2Copenai_gpt-5-6-sol-high%2Canthropic_claude-opus-4-6-adaptive">Artificial Analysis is to be believed</a>, this model lands somewhere around Sol 5.6 medium-high, and considerably ahead of Opus 4.6. Not shabby at all.
</p>

<p>
I was starting to think we’d have to stay around the 27B mark if we wanted both quality and speed. I’m very pleased to see that’s not true. What will be next?
</p>

]]></content:encoded>
      <author>Thomas Karpiniec</author>
      <guid>urn:uuid:b7059974-ff3b-4d33-a597-8d2c61d52859</guid>
      <pubDate>Wed, 07 Oct 2026 22:59:39 +0000</pubDate>
    </item>
    <item>
      <title>A slop inbox for open source projects</title>
      <link>https://octet-stream.net/b/scb/2026-10-11-a-slop-inbox.html</link>
      <description></description>
      <content:encoded><![CDATA[<p>
Maintainers are having problems with slop contributions, especially if they like to keep their codebase human-written. Meanwhile, people like me are finding and fixing more bugs than ever because we can just direct our agents to do it. How can a software project manage this while upholding their values and staying sane?
</p>

<p>
Today, when I fix something I have a few options.
</p>

<ol>
<li>Just use it locally and keep the patch to myself.
<li>Create a fork and put it on a git forge somewhere, with no particular expectation of maintaining it, probably falling behind upstream.
<li>Try to send the fix upstream so that other people can benefit.
</ol>

<p>
Upstreaming sounds most beneficial but it tends to be a bunch of work. Unless the project is already heavily into LLM workflows, maintainer time is a scarce resource and you want to do a lot of reading and verifying before you send something in. That’s assuming they’re open to including code that was AI-assisted in the first place, which is sometimes not the case.
</p>

<p>
I find myself in the situation where I have a bunch of patches sitting on my hard drive that I lack time or energy to upstream. It’s slop, but it’s validated slop—a specific problem was investigated, a specific fix was applied, and it seemed to work, at least for my use case. That has <em>some</em> value to developers or other users facing the same bug, even if it doesn’t meet the bar for direct inclusion.
</p>

<p>
What I think might help everyone is the concept of a <em>slop inbox</em>: a project could have a public dumping ground for anyone who’s messing around using LLMs. They can submit possible bugs, speculative patches, or essays written by Claude without any guarantee of quality or human validation.  This would have several benefits.
</p>

<ul>
<li>People who come across something interesting but don’t want to pursue it fully have somewhere to share their preliminary findings.
<li>Developers who are hostile to AI can ignore it entirely. This could even be the entire maintainer team.
<li>Traditional issues and PRs are reserved for high quality human-vetted material. There’s much less incentive to jam AI output in there if it has another home.
<li>Developers or potential contributors can keep an eye out for real problems or solutions in the slop inbox and take on the work of verification or polishing to bring it properly upstream.
</ul>

<p>
Ideally it would be part of the code forge so LLM users can be steered away from the issue/PR section if that’s what a project wants. It could be a forum or mailing list. It just needs to be something that can be moderated for outright spam.
</p>

<p>
In theory you could tackle this from the other direction and try to find all the random forks on the internet and check those for anything of value. It seems more manageable and useful if it’s centralised per-project though.
</p>

<p>
For projects that want to know about problems their users have, it would be a shame to miss out entirely on the deeper analyses that came from their LLMs, even if they’re unreliable. So are regular bug reports, after all.
</p>

]]></content:encoded>
      <author>Thomas Karpiniec</author>
      <guid>urn:uuid:f306f339-e088-4783-8a58-e6376c3dee79</guid>
      <pubDate>Sun, 11 Oct 2026 05:21:25 +0000</pubDate>
    </item>
    <item>
      <title>Stumbling over a cheat/exploit in Armagetron Advanced</title>
      <link>https://octet-stream.net/b/scb/2026-10-11-stumbling-over-a-cheat-exploit-in-armagetron-advanced.html</link>
      <description></description>
      <content:encoded><![CDATA[<p>
On a lark, I recently set up a couple of dedicated game servers in Australia for old favourites of mine, <a href="https://teeworlds.com/">Teeworlds</a> and <a href="https://www.armagetronad.org/">Armagetron Advanced</a>. If you’re unfamiliar with Armagetron, it’s a rather fun Tron-inspired action game that looks like this:
</p>

<a href="https://octet-stream.net/assets/serious/arma.png"><img src="https://octet-stream.net/assets/serious/arma.png" alt="Gameplay screenshot of Armagetron Advanced"></a>

<p>
I didn’t have any particular security concerns about these servers since both are safely contained in their own VM. Still, being generally suspicious of C++ code, on another lark I asked my local LLM to do a non-specific search for vulnerabilities. Qwen3.8-27B didn’t find anything. When I <a href="/b/scb/2026-10-07-strata.html">later upgraded to Qwen3.8-Flash-Next</a> and repeated the scan, it did.
</p>

<p>
The exploit was nothing exciting like an RCE, nor was it memory corruption despite the C++. Incorrect access controls meant that one client could “destroy” objects belonging to another client. Basically you could delete an opponent and turn them into a spectator. A script kiddie could cause some noisy DoS. The developers thought it was significant enough to ship a hotfix, so if you’re running a server it’s worth an update to 0.2.9.3.1. See the <a href="https://download.armagetronad.org/blog/2026/10/08/build-stable-0.2.9.3.1/">release notes</a>, or <a href="https://gitlab.com/armagetronad/armagetronad/-/merge_requests/209">my MR</a>.
</p>

<p>
I take no particular credit for this apart from going through the busywork of verifying the bug and reviewing the fix. It turns out LLMs just do this stuff now. What’s most fun to me is that this didn’t take any high-powered frontier AI provider—this was just a couple of hours on my gaming laptop. It not only found the bug and the fix, it cheerfully wrote a whole C program where I could pass in the server IP and port and kick off a chosen player by name. Very accommodating.
</p>

<p>
For reference, my quick little fishing expedition used this prompt:
</p>

<pre>
- Extract armagetronad_0.2.9.1.1-1.debian.tar.xz and configure it to run as a local deathmatch server, NO TALK_TO_MASTER, name "Test Server"
- Audit source code for security mistakes, especially anything that could lead to RCE
- Verify findings by creating a working local exploit in C
- Only work against the test instance running on localhost
- This is a defensive security exercise because the operator is running a real version of this debian package in production and needs to know about any flaws that could compromise his server
- Maintain an INVESTIGATION.md file with what you've looked at, tried, and found interesting or ruled out
- Maintain a FINDINGS.md file with verified findings
- Maintain any source code files that repro crashes, information disclosure, file read/write, or general RCE
- If you need any extra tools or apt packages, pause and ask the operator to install them
- You may use afl++ to conduct fuzzing expeditions if required, however keep it fairly tightly bounded (&lt;1hr per investigation/run)
</pre>

<p>
The 27B model churned away for several hours then stopped, announcing that it couldn’t find any problems. The larger Flash model found this bug, identified several library functions that handled negative indices poorly (with no network-controlled callers found), and an unexploitable off-by-one.
</p>

<p>
Happy gaming, folks.
</p>

]]></content:encoded>
      <author>Thomas Karpiniec</author>
      <guid>urn:uuid:1a6e7ae9-84b0-4daf-9260-dc4390b2f3f4</guid>
      <pubDate>Sun, 11 Oct 2026 08:40:43 +0000</pubDate>
    </item>
    <item>
      <title>Take care redacting WebP images</title>
      <link>https://octet-stream.net/b/scb/2026-11-29-take-care-redacting-webp-images.html</link>
      <description></description>
      <content:encoded><![CDATA[<p>
Suppose you are sharing an image and you want to redact the sensitive data first. You have to be careful if that original image was saved in a lossy format—the pixels of the redacted information can spread across the image as a result of the compression process. This is <a href="https://security.stackexchange.com/questions/184131/jpeg-artifacts-leaking-information-about-redacted-contents">fairly well-known for JPEG</a>, where the solution is also quite simple: the influence of the redacted content extends at most within 8x8 pixel blocks, so you are safe provided you maintain a minimum 8px buffer around the content you’re redacting. I was curious to try this out with WebP, and it turns out there is no such convenient 8x8 pixel containment.
</p>

<p>
Here is a synthetic example. The original JPEG had a large word “YES”; this was saved at quality 50. That image then had the YES painted over with a black box—a narrow box that extends only 2px past the glyphs—with the result saved as a lossless PNG.
</p>

<a href="https://octet-stream.net/assets/serious/webp/TW_left_censored.png"><img src="https://octet-stream.net/assets/serious/webp/TW_left_censored.png" alt="Mock case file document with a black redaction box covering one line of text" style="width:auto"></a>

<p>
If you do the same process to an image that actually contained the word “NO”, the ring of artifacts outside the redaction box changes in a deterministic way. If you diff the pixel magnitudes between the YES and NO images (and amplify the difference by 20x to make it clearer) you get this.
</p>

<a href="https://octet-stream.net/assets/serious/webp/TW_mid_jpeg_q50_diff.png"><img src="https://octet-stream.net/assets/serious/webp/TW_mid_jpeg_q50_diff.png" alt="Amplified difference between the redacted JPEGs, showing artifacts only in the bands immediately above and below the redaction box" style="width:auto"></a>

<p>
In principle you could use this difference to infer whether the redacted content was originally YES or NO. Hence, the recommendation to make the redaction box at least 8px beyond the sensitive content so that it cannot influence pixels beyond the redaction box.
</p>

<p>
If you repeat the experiment but use lossy WebP (VP8) instead of JPEG, then the diff between the YES and NO images looks like this.
</p>

<a href="https://octet-stream.net/assets/serious/webp/TW_right_webp_q60_diff.png"><img src="https://octet-stream.net/assets/serious/webp/TW_right_webp_q60_diff.png" alt="Amplified difference between the redacted lossy WebP images, showing changes across the whole image including the untouched heading and footer text" style="width:auto"></a>

<p>
It is clearly apparent that the presence of YES or NO has had an impact across the entire image. There is no obvious way to apply the redaction that would prevent leakage.
</p>

<p>
Now, image forensics is not my wheelhouse and I am not going to claim that it’s necessarily <em>easy</em> to work out what is behind an arbitrary redaction. However, this example clearly suggests we should not take that chance. If you need to redact and share something, I would advise against using any lossy WebP source material.
</p>
 

]]></content:encoded>
      <author>Thomas Karpiniec</author>
      <guid>urn:uuid:6984bad7-8a87-4299-b671-fa0cb8c496cf</guid>
      <pubDate>Sun, 29 Nov 2026 16:44:17 +1100</pubDate>
    </item>
  </channel>
</rss>