---
id: "lib-2026-11-13-how-inference-for-alice-s-generative-answers-in"
type: "library"
title: "How inference for Alice's generative answers in Search works / Mikhail Tsvetkov (Как устроен инференс генеративных ответов Алисы в Поиске / Михаил Цветков)"
lang: "RU"
org: "Yandex (Alice AI)"
source_type: "Talk"
date: "2026-11-13"
week: "2026-W46"
url: "https://nosov.ai/library/lib-2026-11-13-how-inference-for-alice-s-generative-answers-in/"
original_url: "https://www.youtube.com/watch?v=hmL7qFvg9TU"
tier: "B"
tier_name: "Useful, limited"
tier_reason: "The team lead running the runtime for Yandex's largest generative product explains its serving design first-hand, but gives only a handful of operating figures and no cost, GPU count or latency distribution."
summary_basis: "transcript"
original_minutes: "40"
tags: ["business transformation"]
---

# How inference for Alice's generative answers in Search works / Mikhail Tsvetkov (Как устроен инференс генеративных ответов Алисы в Поиске / Михаил Цветков)

Tier B (Useful, limited): The team lead running the runtime for Yandex's largest generative product explains its serving design first-hand, but gives only a handful of operating figures and no cost, GPU count or latency distribution.

Summary based on the full transcript.

## In short

A 40-minute talk at Yandex's backend conference (uploaded 13 November 2026) by the head of the group that builds the runtime for Alice's generative answers. Alice's quick answers in Yandex Search are, in his words, the company's most widely used generative product, shown on almost every second search query at about 1,000 requests per second on a large GPU fleet. The talk covers how generations are served and released, how requests are balanced across hosts with continuous batching, how overload is handled, and how idle GPUs are shared with precomputation and training.

## Key numbers

- about 1,000 RPS: load on Alice's quick answers in Yandex Search, shown on almost every second search query
- 10-15 minutes: how long generation state is kept in the shared store as a fallback; hosts keep it in memory for about a minute
- about 70%: load level at which request queues start to form on a host
- up to 1 second: time outside inference saved on some pipelines by routing to hosts with a free batch slot

## What it reports

- Trade-offs on a fixed GPU budget: speed (the answer competes with organic results), coverage and usefulness. Classifiers decide whether a generative answer is shown; the client gets a placeholder and polls by generation ID.
- State is kept in host memory for about a minute, with a shared store as fallback for 10-15 minutes. This allows releases without waiting: a host stops starting new generations, finishes running ones, then shuts down.
- Model calls are treated as an expensive, slow sub-source with careful retries and timeouts. Pipelines pin a logical model ID, so a silent model swap errors out and is caught at release. Release checks are technical only; quality is judged in experiments.
- Standard balancing spreads requests evenly but ignores token counts, so some hosts queue while others idle. Strategies: cap queue size and retry elsewhere; pick a host with a free batch slot; refine to a free slot and no request in prefill, which removes queueing almost entirely; or pick an empty host for minimum latency on short intermediate generations.
- Load metric: known tasks divided by batch slots plus queue size; queues start near 70%. Under overload, requests a usefulness classifier rates lowest are dropped first.
- Frequent, time-insensitive queries ("how to cook soup") are precomputed; the store is refreshed in chunks filtered by freshness classifiers.
- Off-peak GPU capacity goes in priority order to production, precomputation and training; training capacity is pulled back on degradation, with a floor such as half the cluster kept for production.
- Free-batch-slot routing saved up to a second outside inference on some pipelines. A routing proxy that collected extra metrics gave no comparable gain and was dropped.

## How they got it

A conference talk by the team running the system, with diagrams and a Q&A. The digest is based on Russian auto-captions.

## Limits

- Few hard numbers; no cost, GPU count, precompute hit rate or latency percentiles.
- The half-cluster floor is given as an example, not a stated policy.
- Quality measurement is described only as a search-wide engagement metric.

## Why it matters for companies

Most companies running their own models hit the same problem at smaller scale: request-count balancing wastes GPUs when generations vary in length. The routing rule shown here (send work to a host with a free batch slot and nothing in prefill) is simple to copy and cut up to a second of waiting. The other reusable ideas are pinning model IDs so a wrong deploy fails loudly, shedding the least useful requests first under overload, and lending idle inference GPUs to batch and training work with a fixed floor for production.

## Key passages in translation

> Быстрые ответы Алисы - это самый массовый генеративный продукт Яндекса, который доступен почти на каждом втором поисковом запросе. С точки зрения инфраструктуры нагрузка порядка 1.000 RPS и крупный парк ГПУ.

Alice's quick answers are Yandex's most widely used generative product, available on almost every second search query. In infrastructure terms the load is about 1,000 RPS on a large GPU fleet.

> мы будем искать, э, такой хост, где есть свободный слот в батче и при этом нету задач в статусе префил

We look for a host that has a free slot in the batch and no tasks in prefill.

> Где-то в районе 70% у нас начинает собираться очередь.

At around 70% a queue starts to build up.

Original: https://www.youtube.com/watch?v=hmL7qFvg9TU
