RedHatAI/gemma-4-31B-it-speculator.dflash2
Model Overview
- Model Architecture: Gemma4ForConditionalGeneration
- Model Optimizations:
- Speculative Decoding Algorithm: DFlash2
- Draft Model: 5-layer qwen3 backbone (DFlash2DraftModel)
- Release Date: 2026-10-14
- Version: 1.0
- Model Developers: RedHatAI
A DFlash2 speculative-decoding draft model for google/gemma-4-31B-it, trained with Speculators.
Model Specifications
Training Details
Trained with the Speculators library (ref 442ce1bf4e2f70dd0b45f36e63bd5849fbb35912, vLLM base image v0.29.0) on regenerated google/gemma-4-31B-it responses over mlabonne/open-perfectblend prompts.
Full cluster training recipe (YAML)
Deployment
Use the verifier's chat template via the /chat/completions endpoint.
Evaluation
Evaluated with Speculators 0.8.0 on vLLM 0.29.0 against the RedHatAI/speculator_benchmarks dataset (evaluate.py ... throughput, 200 requests, max concurrency 16, temperature 0, enable_thinking: true).
Per-position token acceptance rates across datasets:
Performance benchmarking
Throughput vs. interactivity, comparing the google/gemma-4-31B-it verifier with no speculator against the verifier served with this DFlash2 draft model (7 speculative tokens), at matched request concurrency (N=1,2,4,8,16,32,64,128):
At the highest-throughput point measured (N=128 concurrent requests):
Configuration and command
Configuration
- temperature: 0
- max output tokens: 1024
- concurrency (N): 1, 2, 4, 8, 16, 32, 64, 128
- repetitions: 1 run per point
- vLLM version: 0.29.0
- GuideLLM version: 0.7.4
- Verifier served with:
--tensor-parallel-size 4 --gpu-memory-utilization 0.90 --max-model-len 8192 --max-num-seqs 256 --max-num-batched-tokens 16384 --no-enable-prefix-caching
Command
Optimization
This model implements DFlash2 speculative decoding: a 5-layer draft model proposes up to 7 tokens per step, which the google/gemma-4-31B-it verifier accepts or rejects in parallel. The average accepted length in the table above (4.0–6.9 tokens, depending on subset) quantifies the expected decode-throughput speedup — confirmed directly by the measured 1.5x+ throughput gains above.
License
This model is distributed under the Apache-2.0 license. The Gemma-4 verifier is subject to its own license and terms.