Objective Reporting
Independent AI model, pricing, and benchmark coverage.
RSS 2.0 Feed editorial@ainewsdir.com
Open Weights Open-Weight Desk

Gemma 3, Mistral Small 3.1, and Devstral: Quantized Single-GPU Inference on 24GB Workstations

Benchmarking 12B-27B open-weight models under GGUF Q4_K_M and AWQ/FP8 quantization for local coding, vision parsing, and low-latency RAG.

Dispatch Reference Metric: 24B-27B dense · 45-85 tok/s on RTX 4090

Google’s Gemma 3, Mistral’s Small 3.1 and its Devstral sibling now share the same deployment target: a single workstation GPU with 16GB to 24GB of VRAM, or an Apple Silicon machine with 32GB to 64GB of unified memory. All three families were released during 2025 and remain the default choices for teams that need local inference without a datacenter budget. The engineering question has moved past whether a 24B-class model fits on a 24GB card. It now concerns what quietly degrades once it does: structured output compliance, long-context recall, and multi-file agentic work.

What the 24GB Envelope Actually Holds

Gemma 3 shipped in four dense sizes, of which the 4B, 12B and 27B variants accept image input alongside text. The 27B model was trained on 14 trillion tokens and uses an interleaved attention pattern that alternates five local layers against one global layer, with a 1024-token local span. That design keeps the KV cache from exploding at long context, and it is the main reason a 27B dense model remains usable on a 24GB card at all. Google pairs each model with a roughly 400M-parameter SigLIP vision tower that encodes a 896x896 image into 256 soft tokens.

Mistral Small 3.1 is a 24B dense model under Apache 2.0, extended from the January 2025 Small 3 release to a 128K context window with image input and improved function calling. Devstral Small is the same 24B base fine-tuned for software agency, evaluated against the OpenHands scaffold. Version 1.1, released in July 2025, moved from the Mistral Research License to Apache 2.0 and reports 53.6 percent on SWE-bench Verified, up from 46.8 percent for 1.0.

Model License Q4_K_M weights FP8 / BF16 Context Decode tok/s (4090 / M4 Max)
Gemma 3 4B IT Gemma Terms ~3.0 GB ~4 / ~8 GB 128K ~150 / ~95
Gemma 3 12B IT Gemma Terms ~7.5 GB ~12 / ~24 GB 128K ~90 / ~60
Gemma 3 27B IT Gemma Terms ~16.5 GB ~27 / ~54 GB 128K ~45 / ~26
Mistral Small 3.1 24B Apache 2.0 ~14.5 GB ~24 / ~48 GB 128K ~65 / ~30
Devstral Small 1.1 24B Apache 2.0 ~14.5 GB ~24 / ~48 GB 128K ~65 / ~30

Figures are approximate single-stream values with bf16 KV cache and short prompts; decode rates come from community llama.cpp and MLX logs rather than vendor launch posts, and vary with batch size, flash-attention settings and prompt length.

Throughput, Context, and the KV Cache Tax

Single-stream decode on these models is memory-bandwidth bound, so the ceiling is roughly bandwidth divided by weight bytes. An RTX 4090 at about 1008 GB/s and a 14.5GB Q4_K_M checkpoint implies a hard ceiling near 69 tokens per second; the M4 Max at 546 GB/s implies roughly 37. Mistral’s launch note for Small 3 cited more than 150 tokens per second on a single RTX 4090, a figure that does not reconcile with single-stream bandwidth arithmetic and most likely reflects batched serving or a shorter effective weight footprint. Community runs cluster at 55 to 75 tokens per second for the 24B models on a 4090 and 26 to 33 on an M4 Max.

The larger constraint is cache headroom. Gemma 3 27B at Q4_K_M leaves about 7.5GB on a 24GB card, and the vision tower’s weights and activation spikes consume part of that before any KV allocation. Because only the roughly 11 global layers hold long-range state, prefill of a 32K-token prompt costs on the order of 3GB in bf16, putting a practical ceiling near 16K to 24K tokens unless the cache is quantized to q8_0 and flash attention is enabled. Mistral Small 3.1 at 14.5GB has more room, but its variable-resolution image encoder can emit substantially more tokens per image than Gemma’s fixed 256, so multimodal prompts erase the advantage quickly.

Limitations and Trade-Offs

Four-bit quantization is not a neutral compression step. Structured JSON schema compliance degrades measurably at Q4_K_M: models that satisfy a three-field schema reliably will drop required keys, mis-nest objects, or emit values outside an enum once schema depth passes three or four levels. Grammar-constrained decoding through llama.cpp GBNF or Outlines recovers most of the syntax, but it does not recover semantic correctness, and it adds per-token overhead that can cut decode rates by 20 to 40 percent on a 4090. Teams routing tool calls through a local 24B model should budget for Q5_K_M or Q6_K on that path, at roughly 1.5 to 2 times the weight footprint.

Long-context needle recall falls faster than perplexity curves suggest. Independent RULER-style probes on 4-bit 24B checkpoints typically show sharp degradation past 8K to 16K tokens, well inside the advertised 128K window, and Devstral’s agentic prompts under OpenHands routinely reach 30K to 60K tokens once repository context is included. Vision input compounds this: every Gemma 3 image consumes 256 positions, so a ten-image retrieval prompt burns 2,560 tokens of cache before the first text token arrives, and the vision tower adds its own transient VRAM spike during prefill.

FP8 is effectively out of reach on this hardware tier. A 24B or 27B model at FP8 occupies 24GB to 27GB for weights alone, leaving nothing for cache or activations on a 24GB card; vLLM FP8 deployments realistically need 40GB or more. That leaves 4-bit GGUF or MLX as the only viable formats on workstations, which is precisely the regime where the quality caveats above apply.

Agentic reliability remains the weakest point. Devstral Small 1.1 resolves roughly 53 percent of SWE-bench Verified instances, meaning it fails about 47 percent, with failures clustering on cross-file edits that require holding three or more files of state simultaneously. Tool-call loops and premature patch submission are common. On Apple Silicon, unified memory is shared with the OS and display server, so a 32GB machine with a 14.5GB checkpoint has less usable headroom than the arithmetic implies.

Licensing remains a secondary friction. Mistral’s two models are Apache 2.0 and straightforward to redistribute. Gemma 3 ships under the Gemma Terms of Use, which is not OSI-approved and carries use restrictions plus Google’s termination and redistribution clauses, enough to trigger legal review at most enterprises.

What to Watch Next

  • Whether Google ships official QAT int4 checkpoints for the 27B size and moves Gemma to a permissive license, which would remove the main procurement objection to the family.
  • KV cache quantization and paged attention landing as defaults in llama.cpp and MLX, since cache, not weights, is now the binding constraint at 24GB.
  • Devstral’s next revision against SWE-bench Verified, where gains above 60 percent would make local agentic refactoring genuinely viable rather than experimental.