---
title: "How Decagon shipped real-time voice AI on Modal"
description: "Decagon Voice 2.0 cut latency by 65% by replacing large frontier models with small open-source models fine-tuned through augmented multi-domain data, curriculum and mixed-objective SFT, and reinforcement learning."
url: "https://swe.quest/articles/how-decagon-shipped-real-time-voice-ai-on-modal-b1a29f8666a68e7d"
canonical: "https://modal.com/blog/decagon-case-study"
source: "Modal"
published: "2025-11-13"
difficulty: "hard"
kind: "Case study"
reading_minutes: 4
tags: ["inference","model-training","speech-audio","llms","performance"]
---

# How Decagon shipped real-time voice AI on Modal

A post on [Modal](https://swe.quest/sources/modal.md), published 2025-11-13, 4 min read, Case study. Original: [https://modal.com/blog/decagon-case-study](https://modal.com/blog/decagon-case-study)

## Summary

Decagon Voice 2.0 cut latency by 65% by replacing large frontier models with small open-source models fine-tuned through augmented multi-domain data, curriculum and mixed-objective SFT, and reinforcement learning. Modal's inference team trained a custom EAGLE3 draft model for speculative decoding by forking SpecForge, pre-training on broad conversational data and fine-tuning on Decagon's domain data, which gave 38% higher accept lengths than open-source baselines. They also built an asynchronous scheduler that made SGLang's speculative decoding sync-free, removing CPU stalls from the critical path, eliminating GPU idle time on H200s and improving throughput by up to 12%. The scheduler work is being upstreamed to SGLang.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Speech & audio](https://swe.quest/tags/speech-audio.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- speculative decoding
- LLM fine-tuning ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- LLM serving engines ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Modal, Decagon, SGLang, EAGLE3, SpecForge, H200

## Related posts

- [Achieve state-of-the-art inference latencies with speculative decoding](https://swe.quest/articles/achieve-state-of-the-art-inference-latencies-with-speculative-decoding-29855d3aec239f45.md): Modal · 2026-06-24 · Hard · 9 min read · Inference & serving, LLMs, Performance engineering, Model training
  Speculative decoding is the dominant lever for low-latency LLM serving because decode steps dominate latency and speculation yields multiplicative speedups roughly linear in acceptance length.
- [Speculation Is All You Need](https://swe.quest/articles/speculation-is-all-you-need-dffc126cb5233807.md): Modal · 2026-06-19 · Hard · 17 min read · Inference & serving, LLMs, Performance engineering, Model training
  Speculative decoding delivers integral-factor (2-3x+) LLM decode speedups, far beyond the few-percent gains from kernel or host-side optimization, and its benefit scales roughly linearly with acceptance length.
- [Aurora](https://swe.quest/articles/aurora-30d7e4dc2968c60f.md): Together AI · 2026-03-31 · Hard · 7 min read · Inference & serving, LLMs, Model training, Performance engineering
  Aurora is an open-source framework that trains speculative decoding draft models online from live inference traces, framing drafting as asynchronous reinforcement learning: the drafter is the policy, the target verifier is the environment, and accepted and rejected tokens serve as positive and counterfactual rewards.
- [One-second voice-to-voice latency with Modal, Pipecat, and open models](https://swe.quest/articles/one-second-voice-to-voice-latency-with-modal-pipecat-and-open-models-a0369eb06c4f6162.md): Modal · 2025-11-04 · Medium · 12 min read · Speech & audio, Inference & serving, Real-time systems, Performance engineering, RAG & retrieval
  A conversational voice bot on Modal reaches roughly one-second voice-to-voice latency.
- [Powerful ASR + diarization + speculative decoding with Hugging Face Inference Endpoints](https://swe.quest/articles/powerful-asr-diarization-speculative-decoding-with-hugging-face-inference-ed388c1f3bfe4f4b.md): Hugging Face · 2024-05-01 · Medium · 7 min read · Speech & audio, Inference & serving, Python
  A custom inference handler on Hugging Face Inference Endpoints serves Whisper ASR, Pyannote speaker diarization and speculative decoding behind a single API endpoint.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
