A 220B model on one RTX 3090 - my local AI rig, measured against Claude and Codex

In my last post a local model was one rung in my agents’ review ladder. Since then the rig sleeps when idle, wakes over Wi-Fi in about ten seconds, and runs a 220B mixture-of-experts model with a 262K context on a single RTX 3090. Here is the setup, how I measured it against Claude and Codex, and what each model is good for.

The setup

partwhat
hardware1x RTX 3090 24 GB (power limit 270 W), i5-13500, 64 GB DDR5 (2 channels), PCIe 4.0 NVMe, Ubuntu 24.04
front doorllama-swap: one OpenAI and Anthropic compatible endpoint, one model at a time, FIFO queue, unload after 15 idle minutes
everyday local modelQwen3.8-27B on llama.cpp, 98K context
big local modelTencent Hy4-flash, 220B MoE, 262K context, maya-hy4f engine in rootless podman
sleep and wakethe rig suspends when idle; a proxy on an always-on Mac mini sends a Wake-on-WLAN packet on the first request. 73% of the time asleep, 37/37 wake-ups OK, first answer in 5-24 s
cloudClaude Code on Claude Max, Codex CLI on a ChatGPT plan - subscriptions only, no per-token API

Two lessons from the sleep part: on Wi-Fi a broadcast magic packet stops working after the access point rotates its group key, a unicast one (plus a static ARP entry on the proxy) works after any length of sleep. And Claude Code works against llama.cpp directly, as long as every model slot (sonnet, opus, haiku, subagents) points at the same local alias.

Hy4-flash on 24 GB of VRAM

Hy4-flash has 512 experts per layer (16 active, 11.3B active parameters) and a 63.5B “Engram” lookup table. Stock llama.cpp cannot load it, and 115 GB of weights would not fit anyway. It runs thanks to maya-hy4f, an engine by Alexey Fateev (announcement on X, build guide and configs, weights). I found it via @bokiko’s test on a 3090 with 64 GB RAM.

The engine uses four kinds of hardware at once:

wherewhatwho computes
VRAMattention, router, KV cache, “hot” expertsGPU
RAM (45 GiB pinned)all experts, 2-bit (IQ2_XXS)CPU for the experts not in VRAM
NVMeEngram table (~60 GB)read with O_DIRECT, only the rows a step needs

So RAM bandwidth sets the generation speed and the GPU mostly drives prompt reading. On 64 GB of RAM only the IQ2 + NVMe variant fits. The price: 74-76% top-token agreement with the full model, which shows up as an occasional English or Chinese word in a Czech answer.

To run it: build maya-hy4f (CUDA 12.8, -DCMAKE_CUDA_ARCHITECTURES=86), download the IQ2 set (~115 GB), use the hy4f-1gpu-iq2-nvme.json config from the guide and set HY4F_CPU_THREADS to your core count.

I wrapped it so a young third-party engine stays contained: rootless podman with --network none, the GPU passed as /dev/nvidia* plus the host driver libraries (no container toolkit, no sudo), everything read-only except a state directory, a socket handed in as a file descriptor, and a host bridge that only lets /health and /v1/* through - the engine’s dashboard (model download, delete, self-update) stays unreachable. Codex reviewed it in 8 rounds until two came back clean.

Methodology

Same input for every model. Local models through llama-swap, cloud models through their CLIs on my subscriptions (claude -p --model ... --effort ..., codex exec -m ...), with tools disabled except in the agent loop. A context that is too small is part of the result: Qwen only got what fits into 98K. Every task has an oracle that is not my opinion:

  • Long context: 197K tokens of my own notes, 5 questions on facts at depths of 10-96%, one combining several facts.
  • Hard tasks: 9 tasks - math, probability, a 14-constraint logic puzzle (unique solution checked by brute force), a parser with 25 tests, a contract date with three traps. Answers computed beforehand.
  • Bug fix without tools: 2 real, already fixed bugs from the Voyscout repo. The model gets ~130K tokens of code as it was before the fix plus the bug report. The test that came with the real fix decides, plus the full test file (229 tests). Graded strictly (the diff must apply) and by content (only the changed lines, if they can be located).
  • Agent loop: Claude Code on the local model in a copy of the repo, free to search, edit and run pytest; the hidden test is added at the end. One run squeezed to 60K context to force compaction.
  • Code review: the first version of my container setup. Ground truth: 16 real defects - the valid findings of a Codex round with repo access plus 4 bugs that only showed up at runtime.
  • Power: nvidia-smi and the CPU RAPL counter sampled twice a second, split into prefill and generation.

One run per model and task on a small set. A signal, not a leaderboard.

Results

modelrunslong contexthard tasksbug fix, no toolsagent loopreview (16)
Hy4-flash IQ2local5/59/91/2pass, also after 3 compactions8, 9.4 min
Qwen3.8-27Blocaldoesn’t fit5/5 ² (8/9 at higher effort)1/2pass ¹3.5, 7.5 min ³
Claude Sonnet 5.5 highMax5/59/92/2-11, 6.6 min
Claude Opus 5.5 highMax-5/5 ²2/2-9, 8.8 min
GPT-5.6 Luna maxChatGPT-5/5 ²2/2, diffs didn’t apply-9, 27.7 min (12 with repo access)
GPT-5.6 Terra highChatGPT-5/5 ²2/2, 1 didn’t apply-7, 4.6 min

¹ the agent-tuned Qwen3.8-27B variant, 18.7 min vs 25 min for Hy4. ² the five harder tasks only. ³ without the 450 KB upstream server source, which does not fit into 98K. Opus medium and Terra medium also solved 5/5 and 2/2. “-” = not measured.

Review pairs cover more than anyone alone, because every reviewer misses different things:

pairdefects found
Sonnet + Luna with repo access14/16
Opus or Hy4 + Luna with repo access13/16
Sonnet + Opus, Sonnet + Hy412/16

Only Hy4 noticed the driver library missing from LD_LIBRARY_PATH. Only Opus noticed that systemd-logind wipes /dev/shm when the last session ends - which is exactly what broke my first deployment.

Hy4 speed and power:

prefillgeneration
68K prompt at 270 W1,264 tok/s (54 s)37-40 tok/s
243K prompt at 270 W1,143 tok/s (213 s)38 tok/s
420 W instead of 270 W+11%, but +27% energy per tokenno change (CPU and RAM bound)

Model load is 25 s, a cold first answer 30-60 s. 270 W stays.

What I take from it:

  • Long context is the reason to run a big local model. Hy4 matched Sonnet over 197K tokens; Qwen cannot even take the prompt.
  • On short hard tasks a good 27B model kept up. bokiko saw Qwen3.8-27B at 2/5 against Hy4’s 5/5; my tasks did not reproduce that gap.
  • Tools beat size. Without tools both local models failed the same bug fix the same way. With pytest in the agent loop, both fixed it.
  • Correct is not usable. Luna’s fixes were right, but its diffs had invented context lines and did not apply. Hy4’s applied cleanly.
  • Local is slow. An agent task takes Hy4 25-30 minutes. Fine overnight, painful interactively.

How I use the models now

jobmodel
interactive coding, decisions, agent workClaude Sonnet / Opus (Max)
mandatory second reviewCodex, GPT-5.6 Luna max
third reviewer, big diffs, whole modulesHy4-flash - different findings, free, 3x faster than Luna
reading big piles of text: notes, logs, contractsHy4-flash - 262K context, data stays home
frequent short agent callsQwen3.8-27B variant - faster, 98K is enough
web and fresh datacloud models on subscription

Next, my agents get Hy4 as a shadow second reviewer on real pull requests for two weeks. That decides whether it earns a permanent seat.

Takeaways

  • A 220B MoE runs on one consumer GPU if the engine uses CPU, RAM and NVMe too. RAM bandwidth becomes your speed.
  • Pair reviewers from different model families.
  • Measure on your own tasks with tests and computed answers as oracles, not on vendor charts.