Gemma 4 as an Agent on an 8 GB GPU: E2B, E4B or 12B?
Post · https://dev.to/gde/gemma-4-as-an-agent-on-an-8-gb-gpu-e2b-e4b-or-12b-4l8
Gemma 4 12B, as served on an 8 GB RTX 3050, answered 485 of 500 tool-calling tasks. E4B needs thinking on to reach 435, at 2.19x the time; E2B misses most of them. For an agent on this card, serve the 12B with its drafter.
First seen by Oriel on .
AI summary
A controlled llama.cpp test finds Gemma 4 12B the strongest tool-calling agent on an 8 GB RTX 3050, answering 485 of 500 tasks with its drafter enabled and thinking off.
- The test compared Q4_0 Gemma 4 E2B, E4B, and 12B across six settings using the same 500 file-lookup tasks and four tools.
- E4B answered 435 tasks with thinking on and Google's sampling settings, versus 189 as served; E2B peaked at 323 with thinking on and a new conversation per task.
- The 12B answered 423 to 486 tasks across settings, used one conversation more effectively, and took 54.1 minutes with its drafter versus 73.1 without it.
- The 12B used 7,814 MiB of the card's 8,192 MiB and was tested with an 81,920-token context; E2B and E4B used less memory but answered fewer tasks.
- Results come from one GPU, one run per setting, and a synthetic text-file workspace; real repositories and other tool sets were not tested.
#gemma 4 #llama.cpp #llm agents #gpu inference
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Reactions
Total public reactions reported by the source; distinct from points and likes.
- DEV Community: 25, latest observation ; +16 over observed period since
Comments
Comment count reported by the source.
- DEV Community: 15, latest observation ; +12 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 5152984 | https://dev.to/gde/gemma-4-as-an-agent-on-an-8-gb-gpu-e2b-e4b-or-12b-4l8 Read discussion |