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 27BGemma 4 31B
Made byAlibaba (Qwen)Google DeepMind
Parameters27.8B31.27B
ArchitectureDenseDense
Memory at 4-bit*about 20 GBabout 22 GB
Memory at Q8*about 33 GBabout 38 GB
Minimum hardware (4-bit)*24 GB GPU (e.g. RTX 4090) or Mac, 32 GB24 GB GPU (e.g. RTX 4090) or Mac, 32 GB
Context length262,144 tokens262,144 tokens
InputText, Images, VideoText, Images, Video
Reasoning modeYes (thinking by default)Optional (can be switched on/off)
LicenseApache 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,0115,431,138
Hugging Face repo createdAugust 5, 2026March 11, 2026
Run with Ollamaollama run qwen3.8:27bollama run gemma4:31b

* Memory figures are estimates (parameters × bits ÷ 8, plus overhead and an 8K-token cache). How we calculate this.

Key differences

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?

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.