Long Contexts on Constrained Deployments: Gemma 4 E2B on a 4 GB GTX 1650 Ti
Post · https://dev.to/gde/long-contexts-on-constrained-deployments-gemma-4-e2b-on-a-4-gb-gtx-1650-ti-34mj
A 4 GB GTX 1650 Ti runs Gemma 4 E2B as accurately as an 8 GB RTX 3050, and on both cards E2B finds about one hidden code in eight in a 127k-token document. The 4 GB card takes 27 minutes to read it.
First seen by Oriel on .
AI summary
The article tests Gemma 4 E2B on a 4 GB GTX 1650 Ti and finds it fits a 131k-token context and matches an 8 GB card’s recall, but reads long documents much more slowly.
- With identical prompts, the 4 GB card found 140 of 800 facts versus 138 on the RTX 3050 in the as-served setting; no card difference was statistically significant.
- The model used 2,326–2,596 MiB of GPU memory for a 131k-token context, but as-served recall fell from 51 of 80 codes at 16k tokens to 4–14 at longer lengths.
- Thinking on with Google's sampling settings found 226 facts versus 127 with thinking off, though recall still dropped at 98k tokens.
- Cold document reading took 71.6 seconds at 16k tokens and 1,635 seconds at 127k, roughly 13–14 times longer than on the RTX 3050.
- The author recommends using E2B as served for documents under 16k tokens and shortening longer documents; prompt-cache reuse was not measured.
#gemma 4 #llama.cpp #gpu inference #long context
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: 19, latest observation ; +8 over observed period since
Comments
Comment count reported by the source.
- DEV Community: 3, latest observation ; +2 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 5153374 | https://dev.to/gde/long-contexts-on-constrained-deployments-gemma-4-e2b-on-a-4-gb-gtx-1650-ti-34mj Read discussion |