IA
Gemma 4 E4B benchmark: test the overnight agent
November 21, 2026
Why it matters
An overnight coding agent has an obvious appeal: give an idle computer a queue of maintenance work and inspect the changes over coffee. For developers maintaining their own products, that queue rarely runs dry. Error messages drift, documentation gets stale, and conventions are applied unevenly across a growing repository.
The video discusses someone reporting eight unattended hours on an RTX 4060 with 8 GB of VRAM. That is an interesting starting point, especially if the hardware is already available. But the useful outcome depends on what survives review. A folder full of changes can save an afternoon or create another morning of cleanup.
I have not reproduced this setup. My contribution here is a Gemma 4 E4B benchmark protocol built around accepted work, tool reliability, and the human effort remaining afterward. I would want those results before treating the story as a reason to cancel a hosted coding subscription.
Key points
- 00:00 The reported eight-hour unattended run introduces the main opportunity: moving suitable maintenance tasks into otherwise unused hours. The missing measurement is how much of that output was ready for a reviewer to accept.
- 01:07 The stated environment includes an 8 GB RTX 4060, llama.cpp, Ubuntu under WSL, a 128K context window, and approximately 60 tokens per second. These are claims from the account being discussed. Without the full configuration and equivalent workloads, they do not establish a reproducible comparison with a hosted model.
- 02:14 Seven commits, thirty changed files, and eight reinforced rules describe the reported activity. A useful evaluation would connect each rule to a specific change and a check showing that the intended behavior holds.
- 02:47 Earlier problems with tool calls and long context highlight the importance of the agent's interaction with its environment. TurboQuant and MTP are credited with improvements, but this segment does not supply enough implementation detail to reproduce those gains.
- 03:21 The workflow includes preparing specifications before execution, followed by review and testing the next day. Unattended execution still depends on human preparation and acceptance work.
- 04:25 Enforcing code conventions provides a more concrete evaluation target than an open-ended request to improve a project. Language conventions, for example, can be checked without needing a new user interface to demonstrate progress.
- 05:33 The home-server comparison introduces the maintenance burden of the setup itself. Installation, tuning, and recovering failed runs belong in the developer's time budget.
- 07:13 Control over data emerges as another motivation for local processing. Evaluating that benefit requires checking connected tools and where execution records are sent.
How to apply
Define your Gemma 4 E4B benchmark configuration
Identify the exact model artifact before comparing results. Google's model card lists E4B as a dense model with a 128K context window. The tentative MoE description in the reaction should not become the specification for this variant. A documented context limit also does not prove that a particular configuration will fit your GPU. Official Gemma 4 model card.
Record three separate components: the model, the inference engine, and the agent program that manages tools and repeated actions. A model name alone leaves too much of the experiment unspecified.
Your configuration record should include GPU, system RAM, operating system, llama.cpp version, model filename, quantization, configured context, and agent version. Quantization reduces the precision used to represent values to save memory. Keep weight settings separate from context-cache settings. If you use TurboQuant, identify the actual implementation and version; a reference to the research does not identify the installed software. Google Research's TurboQuant introduction.
Build a small acceptance suite
Start with three tasks from a repository you understand well enough to review confidently. Each should have a clear completion condition and a small scope.
| Task | Required evidence | | --- | --- | | Move a user-facing message into a locale catalog | The localized message passes its check while the internal identifier stays consistent | | Repair a localized validation rule | Valid input remains accepted and invalid input is rejected | | Update a documentation example | The example runs and its expected result is recorded |
Write the acceptance criteria before launching the agent. Specify which files it may edit, and retain an independent copy of the acceptance checks outside its editing scope. You want to detect a repaired behavior even if the agent also changes tests inside its working copy.
For a Brazilian application, include a pt-BR message with accents and a realistic formatting requirement. For another market, use its actual locale. This makes the task reflect the software you maintain rather than an artificial English-only demonstration.
Verify the tool loop while watching
Before scheduling an overnight run, conduct a short supervised attempt. Check whether the agent can find the relevant file, interpret the requirement, make a targeted edit, run a command, and respond to its output.
Include a recoverable failure, such as an initially failing test. Observe what happens next: does it inspect the failure, repair the implementation, ask for help, or repeat the same action? For an initial experiment, I would stop after three equivalent attempts without progress. That is a starting operating rule to adjust as evidence accumulates.
Use an isolated repository copy without production credentials. Give the run an explicit task list, an elapsed-time limit, and a defined stopping condition. If keeping data on the computer is part of the objective, record outbound connections during the trial.
Measure inference and completed work separately
The llama.cpp project includes llama-bench, which separates prompt processing from text generation. Use it to investigate engine performance, then measure the full coding task separately. Official llama-bench documentation.
Run each of your three tasks three times, restoring the same starting commit for every attempt. Record completion, tool failures, elapsed time, and human review and repair minutes across all nine attempts. Preserve abandoned runs in the record. Otherwise, a successful screenshot can hide the failures that determine everyday usefulness.
Set a threshold before expanding the workload
Classify each attempt as accepted, accepted after repair, or rejected. Decide in advance what would make the workflow useful. One possible trial threshold is seven accepted outcomes from nine attempts, with no more than ten minutes of human intervention per attempt. Those numbers are an example of an explicit decision rule, not an industry benchmark.
If a hosted agent is available, give it the same tasks from the same starting code, using the same acceptance criteria. The resulting division of work may be quite specific: local execution for documentation and repetitive maintenance, another model for harder changes.
I would expand the unattended queue only after the records show which tasks consistently produce acceptable patches. That evidence gives the overnight agent a clear role in the development workflow and makes failures easier to investigate.
Resources mentioned
- Gemma 4 E4B · Modelo central do relato; a ficha oficial não comprova o desempenho do setup apresentado.
- llama.cpp · Motor de inferência citado no setup; inclui o llama-bench.
- NVIDIA GeForce RTX 4060 (paid) · GPU de 8 GB usada no relato; não constitui recomendação de compra.
- OpenRouter (paid) · Alternativa em nuvem discutida; custos dependem do modelo e do provedor.
- Gemini CLI · Citado nos experimentos de ajuste; o cliente é aberto, e o uso dos modelos depende de cotas e modalidade de acesso.
- Qwen3 · Família experimentada anteriormente; a variante exata não fica identificada com segurança na transcrição.
- autoresearch — Andrej Karpathy · Referência ao conceito de experimentação em loop; não é o repositório do setup relatado.
- TurboQuant · Pesquisa citada como base de otimização; a implementação utilizada no relato não foi fornecida.
- Skill “grillme” · Nome conforme a transcrição; sem identificação inequívoca do autor ou do link oficial.
- Repositório e benchmarks do autor do relato · Publicação prometida no relato; nenhum endereço consta do material fornecido.