The bottleneck is not always where you think
The slowest part of a system is the narrow point, and it is often not the part you suspect. A trace, a log line and a boot-to-boot table showed that a link had trained down to a tenth of its speed.
Posts with this tag: 39
The slowest part of a system is the narrow point, and it is often not the part you suspect. A trace, a log line and a boot-to-boot table showed that a link had trained down to a tenth of its speed.
What the task manager shows versus what a program holds. A real case where a cache held a 14.74 GB model in memory between prompts, and how heaptide finds leaks, growth and holders in one run.
An agent needs room to work and limits on what it can break. This article sorts actions into three groups: free, checked and ask first. It also tells how one of our guards blocked a harmless read and why that was the right trade.
A receipt is a saved record that a number came from a real run. We show what goes in one, how we name them, and why we found that ten citations to our own notes had drifted out of place.
When one model helps another, it can write a note in words or pass along the numbers it was thinking with. We tested both on 120 tasks. Words lifted the score from 27 to 84. The inner numbers lifted it by nothing we could see.
Our panel listed active rules and said they were enforced. The settings file had no hooks at all. Here is how that happened, how we found it, and how to test a green light.
Saying a change saves tokens is easy. Showing it is harder. This article explains the honest way to measure, and tells how our own panel of token cuts held guesses written as facts until we checked.
Planting bugs shows that your checks catch the mistakes you thought of. An outside review of our physics engine found a real defect that none of our planted bugs could reveal. Here is what that taught us.
An agent that says it finished has made a claim, not shown a result. A receipt is a saved output you can open and check. This article explains receipts with two real cases from our own work and a simple template.
The two reasons code is slow, waiting for memory and doing arithmetic, explained with real cases from a GPU physics engine and a phone GPU, including one counter that blamed the wrong thing.
You do not need special software to start a memory for your AI agent. A folder, dated Markdown notes, a Related list and one habit are enough. This article gives six steps, a note template and the rule that makes an agent use the vault.
Our self-improving code loop had a gate that a candidate could fool by deleting one line, because the stopwatch lived in a file the candidate could edit. The fix was to put the stopwatch out of reach.
A skill is a short guide an agent reads before a job, so you explain the job once and not every time. This article shows what a skill looks like, why a long list of them gets expensive, and how we keep ours small.
A beginner's guide to profiling. Measure first, find the biggest share, test the cheapest fix, and only then build. A real case turned a six times slowdown into one small change.
A long agent chat gets resent on every turn. ctxd folds the oldest part into a short summary and keeps the original text in a local store. This article explains the idea, our gate numbers and the honest gap in our evidence.
A look at why a lab should publish what did not work. Twelve network ideas that tied or lost, a flag that did nothing, and a code path nothing could reach, all kept in the open.
An agent can look at a screen as a picture or read it as text. The picture often costs about thirteen times more for the same words. This article explains why, when pictures are still the right choice, and what we do about it.
A patch looked broken because it scored 89.06 percent against a 90 percent bar. The original, unpatched code scored the same. The bar could not be reached by anything. Here is how to check the check.
A fast search finds candidates. A reranker reads each candidate next to your question and reorders them. This article explains the idea with a library picture and shows our real numbers, including how small the win was.
Why we write a number down before we run a test, what we do with it afterwards, and a real case in which the prediction was wrong because of one assumption we had not checked.
A green tick is not proof. This article shows how tests and jobs of ours reported success while checking nothing, and gives three simple checks anyone can run on work an AI produced.
A plain explanation of the median and the range, with a real set of five timings in which one slow run drags the average away from what a normal run looks like.
Squeezing text after it is sent saves less than never sending it. This article shows four ways to cut what an agent reads: remove duplicates, shorten the fixed start, cut repeats at the source and replace pictures with text.
A check that looks at labels or short summaries can say yes while the data is wrong. Comparing the real bytes found a bug where one conversation's saved state leaked into another's file.
Running several agents in parallel saves time and creates new ways to break things. This article gives three plain habits that keep parallel agents apart, each tied to something that went wrong for us.
A speed number only means something next to another number. We explain baselines, why they must be measured in the same session, and how our language-model engine went from 0.93 times to 1.34 times llama.cpp.
Searching a network of notes takes three steps: find first matches, let the signal spread along links, then pick five. This article walks one question through those steps in plain words and shows why the first hit is only a starting point.
How to compare two versions fairly. Change one thing, alternate the order, check the outputs match, and report the middle of the pairs. A real case from our fly simulation shows each step.
You can tell an agent a rule or you can build a check that stops it breaking the rule. This article shows the difference with three real cases from our setup, and gives a simple test for which kind of rule you have.
A beginner's guide to planting a bug on purpose. If your tests stay green on broken code, they were not testing anything. We walk through a small example and our own tool for it.
A token is a small piece of text a model reads or writes, and you pay for each one. This article explains tokens in plain words, why an agent burns through them, and which parts of a working day cost the most.
Why the same test gives different times on the same machine, how to see the noise, and the one trap a tight spread cannot catch, a setting that does nothing at all.
Agents have no memory between sessions unless you give them some. This article explains why they forget, what a written memory fixes, and a test of ours where a helpful hint made no measurable difference.
One shot can mislead. We retracted two claims about video quality because a second random seed moved the score by more than the gap we were measuring. Here is what to do instead.
A folder of notes is a pile. Add dates and links and it becomes a map. This article explains the idea behind BrainNet: why a note is treated like a neuron, a link like a synapse, and what that lets an agent find.
A plain explanation of gates in software, why a gate that has only ever passed proves nothing, and how breaking your own code on purpose shows the gate works.
A model cannot run anything itself. It writes a short structured request, a program runs it, and the answer returns as plain text. This article shows that round trip step by step, with a real failure from our own tool-calling model.
A beginner's guide to benchmarks. What the word means, why a single number never settles an argument, and the small rules we follow so our own numbers can be checked.
A chatbot gives one answer to one question. An agent keeps going: it reads, acts, looks at what happened and decides what to do next. This article draws that loop in plain words and shows where you can meet it.