Urgent.News

What's breaking now, across thousands of outlets.

AI

The Runtime IS the Benchmark: Endurance Metrics for Local Agents

What I Benchmarked I tested whether the runtime around the model holds up: retrieval endurance, memory scaling, sandbox containment, context behavior. I used a Gemtek NUC M6 Ultra mini-PC on Pop!_OS under zRAM swap. I wanted to benchmark sessions that run for days. Models Tested I chose the models I actually run locally. Same runtime, same tests, three price points: a local 1.2B triage model, a…

In a recent experiment, I explored how the runtime of locally-run models compares to cloud-based options. To do this, I utilized a Gemtek NUC M6 Ultra mini-PC running Pop!_OS with zRAM swap. My goal was to benchmark sessions that could run for extended periods, such as days. I selected three models to test: a 1.2B triage model, an 8B-class model, and a cloud workhorse, all running on the same hardware with identical configurations.

After running numerous tests, it became clear that memory systems have a hang threshold. Specifically, I discovered that this threshold is based on the number of files rather than the total file size. Near 1,500 files per store, my context assembly began to stall. To address this, I partitioned the context into 80 bounded stores, resulting in a 2.6ms/file average and a significant improvement of 3.1 times over a monolithic context.

I also approached sandbox containment differently by scoring the blast radius using memory pressure, PID-seconds survived, and host RSS delta under zRAM. This revealed that mid-context facts were less likely to be used than those at the beginning or end of the context, leading to a U-shaped recall curve. Consequently, I modified my approach to write internal documents with conclusions first and receipts last, which proved beneficial for processing dense documents.

For extended sessions lasting up to 10 days, I continuously logged latency drift, memory growth, and retrieval decay. Over 30 days, I observed that agents do not fail immediately at the start but rather gradually deteriorate over time. Approximately 10% of my agent tasks required the top-tier model, while the remaining 90% showed no measurable quality loss despite a 30-fold cost difference across tiers.

By measuring cost per completed task rather than cost per token, I found that the runtime is the key benchmark, emphasizing the importance of minimal notebook setups in achieving optimal performance.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Your AI API bill can double overnight and you won't know until the invoice. Here's a 20-line fix.

I run a swarm of AI agents that call LLM APIs all day. One night a retry loop went haywire and burned through 3 days of budget in two hours. I didn't find out until the invoice email the next morning.

  • Most people discover API spend increase only after receiving the invoice.
  • Reporter experienced a bug causing AI agents to exhaust budget in two hours.
  • Python script alerts via Slack or Discord when spending exceeds configured threshold.

Is Your Phone's LLM 37x Too Slow? Check This One Compiler Flag

Is Your Phone's LLM 37x Too Slow? Check This One Compiler Flag Part 3 of a series. Part 1: found the missing -march (2.5x faster) .

  • Debug Gradle variant uses -O0 optimization level, causing 37x slower performance
  • Generation speed drops from 18.5 tokens/second on release to 0.5 on debug
  • Changing build type to Release resolves significant performance improvement

AI's risks are no reason for panic

“Nobody knows anything,” the screenwriter William Goldman famously said of the movie business. Much the same can be said today for artificial intelligence, a technology that’s moving fast, destination…

More from Monday 12 October →