Gemma 4 31B vs. Qwen3.8 27B
Up to three models side by side. Same category is most informative, for example two image models.
In short
Both are large models for cards with 24 GB and are under Apache 2.0. Qwen3.8 27B is newer, understands images and videos, and according to Qwen is strong at programming and long agent tasks. Gemma 4 31B is a bit larger and, according to ollama.com, needs about 19–20 GB instead of 18 GB.
Gemma 4 31B
Choose Gemma 4 31B if you want a large all-purpose model from Google for your 24-GB card.
Qwen3.8 27B
Choose Qwen3.8 27B if you want the newer model with image and video understanding and strengths in programming.
| Gemma 4 31B | Qwen3.8 27B | |
|---|---|---|
| Type | Text and chat | Text and chat |
| Manufacturer | Alibaba (Qwen) | |
| Published | 2026-04 | 2026-08 |
| Size | 30,7 billion parameters | 27,0 billion parameters |
| Memory requirements | Q4_0: 17,5 GB SFP8: 34,9 GB BF16: 69,9 GB | Q4_K_M: 19,1 GB estimated Q8_0: 32,5 GB estimated FP16: 60,4 GB estimated |
| License | Sales allowed Apache License 2.0 | Sales allowed Apache 2.0 |
| License note | Apache 2.0: commercial use allowed. | Apache 2.0 allows commercial use without additional requirements. According to Wikipedia, larger Qwen3.8 models are subject to revenue sharing for major providers, but not the 27B model. |
| Runs in | Ollama | Ollama, LM Studio, llama.cpp |
| NVIDIA only | no | no |
| Fastest measurements | not yet · enter | not yet · enter |
How we determine the memory requirement: How we calculate. License notes are not legal advice.
Frequently Asked Questions
Which is better, Gemma 4 31B or Qwen3.8 27B?
Both are large models for cards with 24 GB and are under Apache 2.0. Qwen3.8 27B is newer, understands images and videos, and according to Qwen is strong at programming and long agent tasks. Gemma 4 31B is a bit larger and, according to ollama.com, needs about 19–20 GB instead of 18 GB. Choose Gemma 4 31B if you want a large all-purpose model from Google for your 24-GB card. Choose Qwen3.8 27B if you want the newer model with image and video understanding and strengths in programming.
Do both models run on a card with 16 GB?
Rather not well. Gemma 4 31B already needs about 17.5 GB just for the weights in the smaller Q4_0 version, and Qwen3.8 27B needs about 18 GB according to ollama.com. With 16 GB, part of it spills over into RAM and the model gets noticeably slower.