Local code review bots on one RTX 3090 with Ollama, LiteLLM and Gitea
- Hardware
- One RTX 3090 (24 GB), models at 4-bit
- Models & engines
- Ollama for local inference, LiteLLM as the model gateway
- Key gotcha
- At temperature 0 some models repeated the same text until they hit the output limit; default temperature worked better.
What they built
TechLuddite uses local models as code reviewers for pull requests in a home lab, running everything at 4-bit on a single RTX 3090. Ten models were tried and seven kept.
Across five pull requests and 48 model runs the models posted 69 findings. 11 of those led to a change, and those 11 pointed at 5 real problems.
The AI review stays advisory and never blocks a merge; the hard gates are deterministic: gitleaks at commit, Luddite Scout pre-flight, and every CI action pinned to a commit SHA.
Setup
- One RTX 3090 (24 GB), models at 4-bit
- Ollama for local inference, LiteLLM as the model gateway
- coderev (AI review with a refutation panel), in the author's fork with a REVIEW_JSON_MODE switch
- Gitea as the forge with the Gitea runner for CI, gitleaks for secret scanning, Luddite Scout for static pre-flight
- The lab runs on the Omarchy desktop
How it works
- Each finding goes to three votes that try to disprove it, and only the survivors are posted.
- Models were added back one at a time so each one's effect shows on its own.
- JSON mode is used so models return parseable review output.
Results & numbers
- Qwen3.8 27B and gpt-oss 20B each got 3 of their 4 findings right.
- Qwen3-Coder 30B posted 20 findings and none led to a change.
- Of the 8 findings a model marked as blocking, 1 was correct.
- Dropped: Qwen3.5 9B, Gemma4 26B and Granite4.2 8B. gpt-oss ran at its released MXFP4 precision and tied for best.
Gotchas
- At temperature 0 some models repeated the same text until they hit the output limit; default temperature worked better.
- Devstral kept putting unescaped quotes inside its JSON: without JSON mode 5 of 6 replays failed to parse, with it 3 of 3 parsed.
- On 24 GB the same models can't run at 8-bit with a useful context, so the effect of 4-bit quantization can't be separated from model size.
“The AI review stays advisory and never blocks a merge.”— TechLuddite
Do it yourself
- Install Ollama on a GPU box and pull a couple of candidate models at 4-bit.
- Put LiteLLM in front of Ollama so your CI can call the models through one gateway.
- Add coderev (or a similar reviewer) to your forge's CI and turn on a refutation step so each finding has to survive votes that try to disprove it.
- Use JSON mode and default temperature, and add models one at a time while counting which findings actually lead to changes.
- Keep the AI review advisory and block merges only on deterministic checks such as secret scanning.
Similar setups
OzAI: a self-hosted ChatGPT on a 16 GB MacBook with Ollama, LiteLLM and Open WebUI, and what broke
A DevOps engineer served Qwen3 8B and Qwen2.5-Coder 3B from one M1 Pro laptop as a small private platform with per-user keys, rate limits, local web search and IDE chat, and documented seven silent failures.
PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU
WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.
A €200 mini PC as an offline AI box: a week with Gemma and Qwen
Diogo Soares ran Gemma 4 E4B and Qwen2.5-Coder 7B on a cheap NiPoGi P1 mini PC firewalled off the internet, used it from his Mac for a week, and measured what was fast and what wasn't.
MoE vs dense on a home RTX 5090: the 3x faster model couldn't finish
kohei_wada swapped his local coding default to a fast MoE model in opencode, then watched it fail every multi-step task in two days while the slower dense Qwen finished them all.