Gemma 4 31B harness
One tool call, then it declares victory. A free set of files for your coding agent, written against what people report Gemma 4 31B getting wrong. Users’ reports, not our measurements; not benchmarked.
Why it is built this way
A quick student. Answers the moment it has anything.
Ask for what is left after every result
It tends to answer after one good call, even when its reasoning wants another.
Small windows
Thinking fires less past 30K tokens.
Parse every edit
A user's early runs could not keep Python indentation. A later vLLM helped, so this is cheap insurance.
How to serve it
vLLM
Use the recipe's chat template; a user found it fixed reported-but-unrun work
Published builds of Gemma 4 31B
nvidia/Gemma-4-31B-IT-NVFP4
NVFP4: vllm serve nvidia/Gemma-4-31B-IT-NVFP4 --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --enable…
cyankiwi/gemma-4-31B-it-AWQ-4bit
AWQ: vllm serve cyankiwi/gemma-4-31B-it-AWQ-4bit --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --ena…
unsloth/gemma-4-31B-it-GGUF
GGUF: llama-server -hf unsloth/gemma-4-31B-it-GGUF -a gemma-4-31B-it --port 8000 --jinja -c 64000 --reasoning-budget 4096
RedHatAI/gemma-4-31B-it-FP8-block
FP8: vllm serve RedHatAI/gemma-4-31B-it-FP8-block --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --en…
google/gemma-4-31B-it-qat-w4a16-ct
INT4: vllm serve google/gemma-4-31B-it-qat-w4a16-ct --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --…
QuantTrio/gemma-4-31B-it-AWQ
AWQ: vllm serve QuantTrio/gemma-4-31B-it-AWQ --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --enable-…
lmstudio-community/gemma-4-31B-it-MLX-8bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-31B-it-MLX-8bit --port 8000
lmstudio-community/gemma-4-31B-it-MLX-4bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-31B-it-MLX-4bit --port 8000
RedHatAI/gemma-4-31B-it-NVFP4
NVFP4: vllm serve RedHatAI/gemma-4-31B-it-NVFP4 --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --enab…
lmstudio-community/gemma-4-31B-it-MLX-6bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-31B-it-MLX-6bit --port 8000
lmstudio-community/gemma-4-31B-it-MLX-5bit
MLX: mlx_lm.server --model lmstudio-community/gemma-4-31B-it-MLX-5bit --port 8000
google/gemma-4-31B-it-qat-q4_0-gguf
GGUF: llama-server -hf google/gemma-4-31B-it-qat-q4_0-gguf -a gemma-4-31B-it --port 8000 --jinja -c 64000 --reasoning-budget 4096
RedHatAI/gemma-4-31B-it-FP8-dynamic
FP8: vllm serve RedHatAI/gemma-4-31B-it-FP8-dynamic --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --…
ggml-org/gemma-4-31B-it-GGUF
GGUF: llama-server -hf ggml-org/gemma-4-31B-it-GGUF -a gemma-4-31B-it --port 8000 --jinja -c 64000 --reasoning-budget 4096
bartowski/google_gemma-4-31B-it-GGUF
GGUF: llama-server -hf bartowski/google_gemma-4-31B-it-GGUF -a gemma-4-31B-it --port 8000 --jinja -c 64000 --reasoning-budget 4096
unsloth/gemma-4-31B-it-unsloth-bnb-4bit
INT4: vllm serve unsloth/gemma-4-31B-it-unsloth-bnb-4bit --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemm…
unsloth/gemma-4-31B-it-NVFP4
NVFP4: vllm serve unsloth/gemma-4-31B-it-NVFP4 --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 --enabl…
Intel/gemma-4-31B-it-int4-AutoRound
INT4: vllm serve Intel/gemma-4-31B-it-int4-AutoRound --served-model-name gemma-4-31B-it --port 8000 --max-model-len 64000 --reasoning-parser gemma4 -…
What it gets wrong, and what this does about it
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.