Gemma 4 E4B harness
Small, quick, and well liked. A free set of files for your coding agent, written against what people report Gemma 4 E4B getting wrong. Users’ reports, not our measurements; not benchmarked.
Why it is built this way
A light model people enjoy; keep its jobs small.
Use current files
Its thinking switch did nothing at first and was fixed.
How to serve it
vLLM
The family's parser flags on this model; lower --max-model-len to fit your memory vllm serve google/gemma-4-E4B-it --served-model-name gemma-4-E4B --…
Published builds of Gemma 4 E4B
lmstudio-community/gemma-4-E4B-it-MLX-4bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-E4B-it-MLX-4bit --port 8000
lmstudio-community/gemma-4-E4B-it-MLX-8bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-E4B-it-MLX-8bit --port 8000
lmstudio-community/gemma-4-E4B-it-MLX-6bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-E4B-it-MLX-6bit --port 8000
lmstudio-community/gemma-4-E4B-it-MLX-5bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-E4B-it-MLX-5bit --port 8000
google/gemma-4-E4B-it-qat-q4_0-gguf
GGUF: llama-server -hf google/gemma-4-E4B-it-qat-q4_0-gguf -a gemma-4-E4B --port 8000 --jinja -c 32768 --reasoning-budget 2048
unsloth/gemma-4-E4B-it-GGUF
GGUF: llama-server -hf unsloth/gemma-4-E4B-it-GGUF -a gemma-4-E4B --port 8000 --jinja -c 32768 --reasoning-budget 2048
lmstudio-community/gemma-4-E4B-it-GGUF
GGUF: llama-server -hf lmstudio-community/gemma-4-E4B-it-GGUF -a gemma-4-E4B --port 8000 --jinja -c 32768 --reasoning-budget 2048
ggml-org/gemma-4-E4B-it-GGUF
GGUF: llama-server -hf ggml-org/gemma-4-E4B-it-GGUF -a gemma-4-E4B --port 8000 --jinja -c 32768 --reasoning-budget 2048
google/gemma-4-E4B-it-qat-w4a16-ct
INT4: vllm serve google/gemma-4-E4B-it-qat-w4a16-ct --served-model-name gemma-4-E4B --port 8000 --max-model-len 32768 --reasoning-parser gemma4 --ena…
unsloth/gemma-4-E4B-it-unsloth-bnb-4bit
INT4: vllm serve unsloth/gemma-4-E4B-it-unsloth-bnb-4bit --served-model-name gemma-4-E4B --port 8000 --max-model-len 32768 --reasoning-parser gemma4…
unsloth/gemma-4-E4B-it-NVFP4
NVFP4: vllm serve unsloth/gemma-4-E4B-it-NVFP4 --served-model-name gemma-4-E4B --port 8000 --max-model-len 32768 --reasoning-parser gemma4 --enable-a…
cyankiwi/gemma-4-E4B-it-AWQ-INT4
AWQ: vllm serve cyankiwi/gemma-4-E4B-it-AWQ-INT4 --served-model-name gemma-4-E4B --port 8000 --max-model-len 32768 --reasoning-parser gemma4 --enable…
What it gets wrong, and what this does about it
Thinking switch did nothing
enable_thinking had no effect on E4B and E2B.
Parsing errors in Ollama
Tool arguments with code in them failed to parse in Ollama with OpenCode.
Stops after one call
It makes at most one good tool call and then replies, even when its reasoning shows it wants another. Rooted in how the template handles several roun…
Reports work that never ran
When the tool list does not reach it, it writes call-shaped text and later cites invented output. Google says this is the client sending no schemas.
Thinks less as context grows
Past about 30,000 tokens it often skips thinking altogether.
<pad> under concurrency
Concurrent tool requests on vLLM can return nothing but . The same requests in sequence always work.
Tune it
Connect a GitHub repository and Loreto writes your own history into this harness for $5, once.