gemma-4-31B-it
- Reported parameters
- 31.27B
- Release license
- apache-2.0
Downloadable models · Side by side
Gemma 4 31B and Qwen3.5 27B are dense open models in the same size class: both fit one 24 GB GPU at 4-bit. Both are Apache 2.0, both take text and images, and both support 256K-token context. They differ in memory use, how thinking is switched on and language coverage.
Choose Qwen3.5 27B if memory is your limit: about 16.2 GB at 4-bit for one 8K-token conversation against 19.2 GB for Gemma 4 31B, and it covers 201 languages. Choose Gemma 4 31B if you want short, direct answers by default: its thinking mode is off unless you turn it on, while Qwen3.5 thinks before every answer unless you disable it.
Compare context, supported inputs and usage costs. Highlighted rows show a difference.
| Feature | gemma-4-31B-it | Qwen3.5-27B |
|---|---|---|
| Input formats | text | text |
| Output formats | text | text |
| Parameter count | 31,273,088,876 | 27,781,427,952 |
| Release license | apache-2.0 | apache-2.0 |
| USD input / 1M tokens | $0.20 | $0.26 |
| USD output / 1M tokens | $0.40 | $2.60 |
| Model identifier | google/gemma-4-31B-it | Qwen/Qwen3.5-27B |
Prices are in USD per million tokens. Input is what you send; output is what the model generates. Chat subscriptions and API usage are billed separately.
Tools, images and additional reasoning can add charges. The examples below cover input and output tokens only.
Compare local modelsFor one 8K-token conversation with a 20% allowance, Gemma 4 31B needs about 19.2 GB at 4-bit, 36.7 GB at 8-bit and 71.6 GB at 16-bit. Qwen3.5 27B needs about 16.2 GB, 31.7 GB and 62.7 GB. Gemma has 3.5 billion more parameters, and its context memory is also larger: about 1.4 GB at 8K tokens against 0.5 GB for Qwen.
Both models use hybrid attention to keep long contexts cheap. Gemma 4 runs five sliding-window layers (1,024 tokens) for every full-attention layer; Qwen3.5 uses Gated DeltaNet linear attention in three of every four layers. Even so, at 128K tokens the context memory grows to about 8 GB for Qwen and up to about 11 GB for Gemma, so neither stays on a 24 GB card at 4-bit. Plan for a 48 GB GPU if you need long documents.
Qwen3.5 27B thinks by default and Qwen advises keeping at least 128K tokens of context to preserve that ability; you can disable thinking for direct answers. Gemma 4 31B only thinks when you add its think token to the system prompt. If you serve short chat or extraction tasks, Gemma's default usually means fewer output tokens per answer, which matters when you pay for GPU time.
Qwen3.5 lists support for 201 languages and dialects. Gemma 4 supports 35+ languages out of the box and was pre-trained on 140+. Both accept images and video as well as text and return text only; neither 31B nor 27B takes audio.
Both support function calling. Gemma 4 has native tool-use tokens in its chat template; Qwen3.5 uses the qwen3_coder tool parser in vLLM and SGLang. Check that your inference server version supports the model's template before switching.
For one 8K-token conversation including a 20% allowance: Gemma 4 31B needs about 19.2 GB at 4-bit, 36.7 GB at 8-bit and 71.6 GB at 16-bit; Qwen3.5 27B needs about 16.2 GB, 31.7 GB and 62.7 GB. A 24 GB GPU runs either at 4-bit, and a 48 GB GPU runs either at 8-bit.
Both support 262,144 tokens natively. Qwen3.5 27B can be extended to about 1,010,000 tokens; Gemma 4 31B stops at 256K. Long contexts need far more memory than the 8K figures above.
Yes. Both are released under Apache 2.0, which allows commercial use and modification.
Yes, at 4-bit with about 21 GB of RAM for Gemma 4 31B or 18 GB for Qwen3.5 27B, including the operating system. Models this size are slow on a CPU, so it suits testing and batch jobs rather than live chat.
Yes. Both take images and video along with text and return text. Audio input is only on the smaller Gemma 4 models, not the 31B.
Memory needed to load each model and hold one 8,192-token conversation, with a 20% allowance for runtime buffers. The GPU and server columns show the cheapest listed options in our catalog that fit.
| Model and precision | Weights | Context memory | Plan for | Cheapest GPU that fits |
|---|---|---|---|---|
| gemma-4-31B-it4-bit | 14.6 GB | 1.4 GB | 19.2 GB | NVIDIA RTX A5000 (24 GB) · $0.27/hr Runpod · about $197/mo always on |
| gemma-4-31B-it8-bit | 29.1 GB | 1.4 GB | 36.7 GB | NVIDIA A6000 (48 GB) · $0.59/hr Runpod · about $431/mo always on |
| gemma-4-31B-it16-bit | 58.3 GB | 1.4 GB | 71.6 GB | NVIDIA A100 80GB PCIe (8 GB) · $1.79/hr Runpod · about $1,307/mo always on |
| Qwen3.5-27B4-bit | 12.9 GB | 0.5 GB | 16.2 GB | NVIDIA RTX A5000 (24 GB) · $0.27/hr Runpod · about $197/mo always on |
| Qwen3.5-27B8-bit | 25.9 GB | 0.5 GB | 31.7 GB | NVIDIA A6000 (48 GB) · $0.59/hr Runpod · about $431/mo always on |
| Qwen3.5-27B16-bit | 51.7 GB | 0.5 GB | 62.7 GB | NVIDIA V100S ×2 (32 GB) · $1.76/hr OVHcloud · about $1,285/mo always on |
At 4-bit, plan for about 21.2 GB of RAM including the operating system. CPU inference is much slower than a GPU, so this suits testing, background jobs and low traffic.
At 4-bit, plan for about 18.2 GB of RAM including the operating system. CPU inference is much slower than a GPU, so this suits testing, background jobs and low traffic.
Estimates, not measurements. 4-bit and 8-bit figures assume common quantized files (such as GGUF Q4/Q8); real files add a little overhead. Longer contexts and more simultaneous users need more memory.