Potatotop: honest AI model testing for ordinary computers
Onyx Lab · TWAAI · December 2026 · v0.1
Abstract
Most AI leaderboards test models on expensive data-centre hardware. Most people own a laptop. Potatotop is an open-source toolkit, released under the MIT licence, that answers the questions ordinary people actually have about open-weight AI models. Will it run on my computer? How fast? How good is it? Is the file safe? It scores models on an ordinary CPU-only laptop, predicts how models too big to test would behave on other computers, checks model files for the malicious tricks found on Hugging Face in November 2026, and does all of this without sending anything about your computer to anyone.
This paper describes what Potatotop does, how each part was measured, what the results are, and where its limits lie. All code, data recipes and tests are public at github.com/twaai/potatotop.
1. The problem
Three gaps motivated Potatotop.
- Nobody tests on potatoes. Public leaderboards measure models on GPUs. They rarely say whether a model fits in 16 GB of ordinary memory, or how many words a second it writes on a normal laptop processor.
- Choosing is guesswork. A new model is released in dozens of versions: compressed, pruned, "distilled", "uncensored". People pick by download counts and Reddit posts.
- Model files can be dangerous. On 26 November 2026, a scan of every public Hugging Face model repository reported five malicious GGUF files, downloaded about 2,400 times before Hugging Face disabled them. GGUF is the file format most local-AI apps use. The attacks used two tricks: a poisoned chat template (the small built-in script that formats the conversation, rewritten to inject PowerShell commands) and a Windows remote-access program appended after the model data. Three of the five were "uncensored" models, a popular lure. Hugging Face's virus scan only checks files under 2 GB, and these were larger.
2. What Potatotop is
| Part | What it does | Where it runs |
|---|---|---|
| Scoreboard | Measures speed, memory, science, biology, coding and general-text skill | Your PC, CPU only |
| Paper estimate | Predicts fit and speed from a model's public spec sheet, without downloading it | Your PC (reads public Hugging Face pages) |
| Safety screen | Checks model files for hidden programs, poisoned templates and known-bad sources | Your PC or your browser |
| My models | Finds models already installed and suggests upgrades and space savings | Your PC |
| App | One page that ranks models for your computer, downloads and checks them, and hands off to Ollama | Your PC (127.0.0.1 only) |
| Web scanner | The safety screen and advice, entirely inside a web page | Your browser, offline-capable |
3. The scoreboard
Method. Every model is a 4-bit Q4_K_M GGUF file run by llama.cpp on 4 CPU threads at low priority. No GPU is used at any point.
| Test | What it is | How it's scored |
|---|---|---|
| Science | 300 ARC-Challenge questions | The model's confidence in each answer letter is read directly, with no text generation |
| Coding | 50 HumanEval problems (every 3rd) | The model writes the function once, with no retries; hidden tests decide pass or fail; failures are sorted into wrong answer, crashes, won't run, or gets stuck |
| General text | First 150,000 characters of WikiText-2 test | Bits per character, lower is better |
| Speed | llama-bench |
Tokens per second reading (prompt) and writing |
| Memory | Peak memory used |
Results on an Intel Core i5-12450H laptop with 16 GB of memory:
| Model | File | Memory | Science | Coding | Writes |
|---|---|---|---|---|---|
| Qwen3.5 4B | 2.7 GB | 3.1 GB | 90% | 78% | 8.1 tokens/s |
| Gemma 4 E4B | 5.2 GB | 4.9 GB | 85% | 86% | 9.7 tokens/s |
| Qwen3.5 2B | 1.3 GB | 2.0 GB | 71% | 48% | 17.9 tokens/s |
| MiniCPM5 2B | 1.6 GB | 2.4 GB | 69% | 66% | 20.8 tokens/s |
What it means. The best pick depends on the job. Qwen3.5 4B knows the most for its size. Gemma 4 E4B is the best coder that fits a normal laptop. MiniCPM5 2B is about as small as Qwen3.5 2B but codes far better (66% against 48%). A token is roughly three-quarters of a word, and anything above about 5 tokens a second is comfortable to read.
Reproducibility. get_test_data.py rebuilds the exact test sets from their public sources; we checked it byte-for-byte against the originals. get_engine.py fetches the exact llama.cpp build used.
4. The engine matters
Re-scoring Qwen3.5 2B on a newer llama.cpp build (b12927, 2 Dec 2026, replacing a build bundled with an October Python package) gave:
| Older engine | Newer engine | |
|---|---|---|
| General text (bits/char) | 0.8689 | 0.8689, identical |
| Science quiz | 70.7% | 70.0% (2 of 300 questions) |
| Writing speed | 17.9 tokens/s | 20.9 tokens/s (+17%) |
| Reading speed | 95 tokens/s | 114 tokens/s (+20%) |
The same answers came back noticeably faster. Part of the gain may also come from the older speed runs overlapping with downloads. Two practical lessons follow. Keep your local-AI app's engine up to date, and always record the engine version next to a score. Potatotop now stores it with every result. The newer engine is also required for some new model files: a Qwen-3.5-family file converted in late November failed to load on the older engine.
5. Paper estimate: models too big to test
Idea. On a CPU, writing each token means reading the model's active weights from memory once. So speed ≈ memory read rate ÷ bytes read per token. Mixture-of-experts models only use a few "experts" per token, so they read far less than their full size. The estimate reads a model's public parameter count and configuration from Hugging Face, works out the bytes read per token, and predicts:
- the file size at each compression level
- which computers it fits (16 to 512 GB)
- its CPU speed
- the "squeeze": the least-compressed version that fits 16 GB
Validation, dense models. Each measured model's speed was predicted from the other models' measurements (leave-one-out):
| Model | Measured | Predicted | Error |
|---|---|---|---|
| Qwen3.5 2B | 17.9 | 20.3 | +14% |
| Qwen3.5 4B | 8.1 | 9.9 | +22% |
| Qwen3.5 4B (coding fine-tune) | 9.8 | 9.4 | −4% |
| MiniCPM5 2B | 20.8 | 19.2 | −8% |
| Gemma 4 E4B | 9.7 | 8.3 | −14% |
The typical error is 14% and the worst is 22%, comparable to the run-to-run spread between near-identical models on the same laptop. The calibrated read rate is about 27.6 GB/s.
Validation, mixture of experts. Three models state their active size in their name (35B-A3B, 26B-A4B, 2.4T-A95B). Our expert maths gave +41%, −21% and +26% against those stated sizes. So where a name states the size, Potatotop uses it; otherwise mixture-of-experts estimates carry about ±40% uncertainty. Designs it can't account for are labelled "low confidence" rather than guessed. File sizes and memory needs come straight from published parameter counts and are reliable.
Examples (December 2026):
| Model | Size / used per token | Smallest computer for a normal copy | CPU estimate |
|---|---|---|---|
| Qwen 3.8 27B | 27.8B, dense | 32 GB | ~1.7 tokens/s |
| Sage-Med 35B (preview) | 35B, ~3.5B per token | 32 GB | ~13 tokens/s |
| Ling 3.2 Air | 128B, ~9B per token | 128 GB | ~5 tokens/s |
| Amazon Ergo | 1.1 trillion, ~38B per token | over 512 GB | not practical |
The Sage-Med row illustrates the main finding the estimate points to: for mixture-of-experts models, memory matters more than a graphics card. A cheap 32 GB CPU-only machine could run a 35B model at a usable speed. This is a prediction, and confirming it on real hardware is the top item for community help.
6. Safety screen
Checks. Every check reads the file; Potatotop never runs a model it hasn't screened.
- Hidden extra data. A GGUF file's header says exactly where the model data ends. Anything after that point (beyond a few padding bytes) is flagged; if it starts like a Windows program, it's flagged as one.
- Poisoned chat templates. Every template in the file is checked, because attackers have hidden poison under alternative template keys. It looks for template code-execution tricks (reaching into Python internals), PowerShell and command-prompt commands, download commands, Windows tools often abused by malware, shell commands, web links, long scrambled (base64-like) blobs, and a short list of hidden-instruction phrases.
- Command text in other labels, such as a model's description.
- Known-bad list. Repositories and accounts publicly reported as malicious, which blocks a download before it starts.
Validation. Nine test files built from harmless bytes copy each trick, plus clean controls; all nine are classified correctly by both the Python screen (used by the app) and the JavaScript screen (used by the web scanner). On real models, the first version wrongly flagged Qwen3.5 2B as having "hidden instructions": Qwen's official template legitimately says "do not tell the user about function calls". The rule was narrowed to phrases with no innocent use, and a test now guards against that false alarm.
What happens on a hit. - In the app, a known-bad model is never downloaded. - A downloaded file that fails the screen is moved to the Recycle Bin before it is ever run. - Installed models get an "Unsafe" badge.
Limits. This is a screen for known tricks, not a guarantee; "clean" means none were found. It doesn't look for behavioural backdoors trained into the weights themselves. The known-bad list only grows as incidents are reported.
7. Privacy by design
The app runs on 127.0.0.1 and answers only requests that carry its own address. That blocks "DNS rebinding", where a website pretends to be your computer to read local data. Buttons only work from the app's own page.
- What it scans: only AI-app folders, unless you tick Downloads, and then only files ending in .gguf.
- What it sends: nothing. Your computer's details and model list never leave the machine. The internet (Hugging Face only) is used for public spec sheets, which are cached, and when you press "Get it".
- What it shows: file paths use ~ instead of your user name, so screenshots don't reveal it.
- What it deletes: only to the Recycle Bin, and only after asking.
The web scanner reads files inside your browser, only in the folder you choose, and only the start and end of each model file. A content security policy (connect-src 'none') means the page cannot contact any server, even if its code were changed. You can prove it by switching Wi-Fi off: it works the same.
8. My models: upgrades and savings
For each installed model, Potatotop reports:
- its safety verdict
- its tested scores, if it has any
- a better model that fits your memory
- savings from a smaller compression level (for example, an 8-bit file to the 4-bit Q4_K_M version, with little to no quality loss)
- duplicate copies across apps
- models too big for your memory
Uncensored variants never inherit their original's scores. They are labelled "made from X; this version isn't measured yet", because removing refusals can change a model's skills.
9. Limitations
- One test laptop so far, so your speeds will differ. The estimate's
--checkrecalibrates it to your machine. - Subsets of public benchmarks (300 science, 50 coding questions) give about ±3–5 points of noise, and public benchmarks may be partly memorised by models.
- Gemma 4's general-text score (1.18 bits/char) looks anomalous and is held back until re-checked.
- Mixture-of-experts speed estimates are ±40% unless the model states its active size.
- The safety screen catches known tricks only.
10. Roadmap
- Squeeze test: measure how much quality 2–3-bit versions lose, starting with Qwen 3.8 27B on 16 GB against its pruned and distilled spin-offs.
- Uncensored, tested honestly: the "uncensoring tax" on skills, plus over-refusal on harmless prompts only.
- Community results: submit your machine's numbers (more memory, different CPUs, Raspberry Pi).
- Fresh, never-published test questions to defeat memorisation.
- Day-one testing of new releases, fed by a model-release tracker.
Reproduce it
git clone https://github.com/twaai/potatotop && cd potatotop/app
python -m venv .venv && .venv\Scripts\activate (macOS/Linux: source .venv/bin/activate)
pip install -r requirements.txt
python get_engine.py && python get_test_data.py
python potatotop_app.py the app
python scoreboard.py <name> <file.gguf in models/> score a model
python estimate.py --check check the estimate on your PC
python ../tests/test_safety.py safety-screen tests
References
- Malicious GGUF models on Hugging Face, November 2026: letsdatascience.com, onthewire.ai, startupfortune.com
- Pillar Security, LLM backdoors at the inference level: poisoned templates: pillar.security
- Splunk, Trust at inference time: GGUF model templates at scale: splunk.com
- JFrog, GGUF template injection: research.jfrog.com
- Datasets: ARC (Clark et al., 2018), HumanEval (Chen et al., 2021), MMLU (Hendrycks et al., 2021), WikiText-2 (Merity et al., 2016)
- Engine: llama.cpp (ggml-org)
Potatotop is independent research. Model names belong to their makers. Results are from one laptop and are offered for information, not as a guarantee of performance or safety.