---
id: "lib-2026-11-13-speculative-decoding-in-production-comparing"
type: "library"
title: "Speculative decoding in production: comparing methods in the Wildberries shopping assistant (Спекулятивный декодинг в проде: сравнение методов в ИИ-ассистенте покупателя на Wildberries)"
lang: "RU"
org: "RWB (Wildberries)"
source_type: "Practitioner post"
date: "2026-11-13"
week: "2026-W46"
url: "https://nosov.ai/library/lib-2026-11-13-speculative-decoding-in-production-comparing/"
original_url: "https://habr.com/ru/companies/rwb/articles/1106046/"
tier: "A"
tier_name: "Strong evidence"
tier_reason: "A 13-person Wildberries team compares seven speculative-decoding methods on one stand with replayed real sessions, equal training budgets, repeated runs and a stated noise band, and finds an engine bug through a control experiment; the production gain is reported with its own caveat."
summary_basis: "full-text"
original_minutes: "25"
tags: ["business transformation", "ai technology", "software delivery"]
---

# Speculative decoding in production: comparing methods in the Wildberries shopping assistant (Спекулятивный декодинг в проде: сравнение методов в ИИ-ассистенте покупателя на Wildberries)

Tier A (Strong evidence): A 13-person Wildberries team compares seven speculative-decoding methods on one stand with replayed real sessions, equal training budgets, repeated runs and a stated noise band, and finds an engine bug through a control experiment; the production gain is reported with its own caveat.

Summary based on the full text.

## In short

A Habr post on the RWB company blog (November 2026) by Wildberries' team behind the marketplace's AI shopping assistant. The assistant runs on an in-house FP8 MoE model with hybrid linear and full attention and makes about 26 LLM calls per user message, mostly short JSON outputs on the critical path. The team compared seven speculative-decoding methods, from training-free n-gram to the newest parallel drafters, measuring whole assistant turns under load. Parallel drafters (DFlash, DSpark, DFlash 2) were best and within noise of each other; DFlash 2 went to production. Two training-free methods broke answers because of a vLLM bug with linear attention.

## Key numbers

- ~26: LLM calls per user message in the shopping assistant's test set; mean prompt ~5k tokens, answer ~45 tokens, mostly JSON
- ×2.1 / ×1.37: turn speed-up of DFlash 2 at one concurrent client and at 128 concurrent clients, on an equal training budget
- 11–23%: how much slower EAGLE-3 turns were than DFlash 2, despite similar accepted tokens per step
- 72%: share of JSON answers that failed to parse with n-gram drafting on the hybrid model, against 0.13% without speculation
- 10.9 to 3.6 s: median server-side processing time per message in production before and after the switch (not a clean ablation)

## What it reports

- Baseline turn p50: 6.4 s at one client, 46.9 s at 128 concurrent clients; broken JSON 0.13%.
- Parallel drafters: about 2x faster turns at low load and 1.4x at 128 concurrent clients. DFlash 2 on an equal budget: ×2.1 (1 client), ×2.07 (4 clients), ×1.37 (128 clients).
- The model's own multi-token-prediction head, fine-tuned for the domain: ×1.7-1.8 at low load.
- EAGLE-3 accepted nearly as many tokens per step as DFlash but was 11-23% slower, because it builds the draft sequentially.
- n-gram drafting in vLLM 0.30 was 1.3-2.3x slower than baseline and 72% of JSON answers did not parse. Control: on an open MoE model without linear attention, 317 of 320 n-gram answers matched baseline; on the hybrid model, 42. The team suspects the old runner mishandles linear-attention state.
- Off-the-shelf drafters on open Qwen3.5-35B-A3B, with no training: 1.6-2x faster at low load, 1.2-1.3x at 128 concurrent clients, throughput up 20-32%.
- Production DFlash 2 was trained on all 13.8 billion tokens for 3 epochs, about 34 hours on two nodes.
- Production: median server processing time per message fell from 10.9 s to 3.6 s, p90 from 15.3 s to 5.3 s.

## How they got it

An isolated stand ran the assistant's code, model and production vLLM flags, without personalisation and without calls to rate-limited systems; a classifier separated stand from production answers with AUC 0.62-0.69. Drafters were trained by online distillation in vLLM's speculators framework on the same pilot slice (847k rows, 4.4 billion tokens). The benchmark replayed 449 turns from 300 held-out sessions, respecting call dependencies and pauses. Repeats showed run-to-run noise of up to 9% at low load and 4.5% at 128 concurrent clients; differences below that were treated as ties. Broken JSON was tracked as a correctness check.

## Limits

- The production before-and-after is not a clean ablation: serving configuration and environment also changed, and periods differ. The authors point to the stand result for the drafter's own effect.
- One in-house model and one workload with short structured outputs; gains will differ for long-form generation.
- The stand omits personalisation and some scenarios.

## Why it matters for companies

Agentic assistants that chain many short model calls pay for latency on every step, and this is a costed recipe for cutting it without changing answers. Two practices transfer: measure whole user-facing turns under realistic concurrency, since the method ranking changed between 1 and 128 concurrent clients, and check output validity, since an engine bug corrupted answers while speed metrics looked normal. For teams on popular open models, published drafters give much of the gain with no training.

## Key passages in translation

> В проде после перехода медиана времени обработки сообщения упала с 10,9 до 3,6 с. Однако это не чистая абляция, подробности в конце.

In production after the switch, median message processing time fell from 10.9 to 3.6 s. But this is not a clean ablation; details at the end.

> Проверяйте ответы, а не только скорость. Спекуляция в теории не меняет распределение ответов, а на практике её ломают баги движка.

Check the answers, not just the speed. In theory speculation does not change the answer distribution; in practice engine bugs break it.

> Мерьте время сценария под нагрузкой, а не токены в секунду на одном запросе.

Measure scenario time under load, not tokens per second on a single request.

Original: https://habr.com/ru/companies/rwb/articles/1106046/
