Qwen3.8 27B vs Gemma 4 31B
A factual side-by-side of two open-weight models: size, the hardware each needs, context, inputs and license. Data from the official Hugging Face model cards, read November 25, 2026.
| Qwen3.8 27B | Gemma 4 31B | |
|---|---|---|
| Made by | Alibaba (Qwen) | Google DeepMind |
| Parameters | 27.8B | 31.27B |
| Architecture | Dense | Dense |
| Memory at 4-bit* | about 20 GB | about 22 GB |
| Memory at Q8* | about 33 GB | about 38 GB |
| Minimum hardware (4-bit)* | 24 GB GPU (e.g. RTX 4090) or Mac, 32 GB | 24 GB GPU (e.g. RTX 4090) or Mac, 32 GB |
| Context length | 262,144 tokens | 262,144 tokens |
| Input | Text, Images, Video | Text, Images, Video |
| Reasoning mode | Yes (thinking by default) | Optional (can be switched on/off) |
| License | Apache 2.0 Free for personal and commercial use, including modifying and redistributing it. Keep the license and copyright notices. | Apache 2.0 Free for personal and commercial use, including modifying and redistributing it. Keep the license and copyright notices. |
| Hugging Face downloads (last month) | 6,047,011 | 5,431,138 |
| Hugging Face repo created | August 5, 2026 | March 11, 2026 |
| Run with Ollama | ollama run qwen3.8:27b | ollama run gemma4:31b |
* Memory figures are estimates (parameters × bits ÷ 8, plus overhead and an 8K-token cache). How we calculate this.
Key differences
- Qwen3.8 27B needs less memory (about 20 GB vs 22 GB at 4-bit), so it runs on smaller hardware: 24 GB GPU (e.g. RTX 4090) or Mac, 32 GB.
What each maker says it is best at
Qwen3.8 27B: The most capable compact model in Qwen's open family as of late 2026. It is built for coding, research and long multi-step agent tasks, and it understands images and video. Thinking is on by default, with adjustable reasoning effort.
Gemma 4 31B: Google's largest Gemma 4 model. It is strong at writing, coding and reasoning, and it reads documents, charts, screenshots and handwriting. A thinking mode can be switched on for harder problems.
Which one fits your hardware?
| Setup | Qwen3.8 27B | Gemma 4 31B |
|---|---|---|
| RTX 3060 12 GB | No | No |
| RTX 4060 Ti 16 GB | No | No |
| RTX 4090 (24 GB VRAM) | Q5_K_M | Q4_K_M |
| RTX 5090 (32 GB VRAM) | Q6_K | Q6_K |
| 2x RTX 3090 (48 GB) | Q8_0 | Q8_0 |
| Mac with 32 GB unified memory | Q5_K_M | Q4_K_M |
| Mac with 64 GB unified memory | Q8_0 | Q8_0 |
| Mac with 128 GB unified memory | BF16 / FP16 | BF16 / FP16 |
| Mac Studio with 512 GB unified memory | BF16 / FP16 | BF16 / FP16 |
| Laptop or PC with 16 GB RAM | No | No |
Shows the best-quality format that fits, or "No" if it does not fit even at 4-bit.
We do not run our own benchmarks; for quality, test both on your own prompts. Both pages: Qwen3.8 27B · Gemma 4 31B.