---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=modal&tag=performance"
---

# Posts

Filtered by topics: Performance engineering, source: Modal.

Posts 1–24 of 25, page 1 of 2, newest first.

## 2026-10-23

- [Launching a trillion-parameter model at Sakana AI](https://swe.quest/articles/launching-a-trillion-parameter-model-at-sakana-ai-9bcebf1840c2211d.md): Modal · 2026-10-23 · Hard · 6 min read · Inference & serving, LLMs, Performance engineering, Serverless
  Modal served Sakana Namazu, a ~1T-parameter Japanese-focused MoE model, by quantizing only the routed experts to NVFP4.

## 2026-10-19

- [NVIDIA Vera CPUs double throughput for Modal Sandboxes](https://swe.quest/articles/nvidia-vera-cpus-double-throughput-for-modal-sandboxes-40db65dda7f68f56.md): Modal · 2026-10-19 · Medium · 6 min read · Hardware, Performance engineering, Multi-tenancy, Sandboxing & isolation, AI agents
  Modal benchmarked NVIDIA's Arm-based Vera CPU for its multi-tenant Sandbox workloads and found up to 2x task throughput versus a comparable Intel Granite Rapids x86 host under heavy concurrent load.

## 2026-10-16

- [Building fast filesystems for VMs](https://swe.quest/articles/building-fast-filesystems-for-vms-c974511fa7175ffd.md): Modal · 2026-10-16 · Hard · 9 min read · Storage systems, Virtualization, Performance engineering, Linux, Sandboxing & isolation
  Modal replaced virtio-fs with a custom virtio-blk backend, ImageFS-blk, for its VM Sandboxes.

## 2026-09-24

- [Quail: Speeding up AI-SQL by jointly optimizing query planner and inference engine](https://swe.quest/articles/quail-speeding-up-ai-sql-by-jointly-optimizing-query-planner-and-inference-515cdcca6399e688.md): Modal · 2026-09-24 · Hard · 18 min read · Inference & serving, Query engines, LLMs, Performance engineering, SQL
  Quail is a query-aware inference layer that jointly optimizes AI-SQL query planning and LLM inference.

## 2026-09-23

- [How to serve trillions of tokens for trillion-parameter coding agents](https://swe.quest/articles/how-to-serve-trillions-of-tokens-for-trillion-parameter-coding-agents-0508c7c515fa8a14.md): Modal · 2026-09-23 · Hard · 32 min read · Inference & serving, LLMs, Caching, Performance engineering, Hardware
  Modal describes how it serves Moonshot AI's trillion-parameter Kimi K2.6 model for coding-agent traffic at trillions of tokens.

## 2026-08-04

- [Bringing serverless functions closer to the speed of wire](https://swe.quest/articles/bringing-serverless-functions-closer-to-the-speed-of-wire-4593ae513494961f.md): Modal · 2026-08-04 · Medium · 5 min read · Serverless, Performance engineering, System design, Go, Queues & messaging
  Modal rebuilt its serverless I/O plane, which queues Function inputs and outputs, and now runs it in at least four regions.

## 2026-07-15

- [Inkling by Thinking Machines now available on Modal](https://swe.quest/articles/inkling-by-thinking-machines-now-available-on-modal-50e08c4be27f183d.md): Modal · 2026-07-15 · Hard · 3 min read · Inference & serving, LLMs, Performance engineering
  Thinking Machines' Inkling, a 975B-parameter (41B active) mixture-of-experts multimodal model with a 1M token context window, launches on Modal as a token-priced, OpenAI-compatible managed endpoint.

## 2026-07-01

- [Multi-token Residual Prediction](https://swe.quest/articles/multi-token-residual-prediction-f7971ab59cb61cdd.md): Modal · 2026-07-01 · Hard · 13 min read · Inference & serving, LLMs, Model training, Performance engineering
  Multi-token Residual Prediction (MRP) adapts multi-token prediction to diffusion language models by training a small 3-layer transformer on a frozen backbone to predict the logit residual between adjacent denoising steps, not the full next-step distribution.

## 2026-06-25

- [Modal's serverless Servers](https://swe.quest/articles/modal-s-serverless-servers-c4c4d9aad435b2d6.md): Modal · 2026-06-25 · Medium · 10 min read · Load balancing, Serverless, Inference & serving, Rust, Performance engineering
  Modal Servers are a low-latency HTTP/WebSocket/gRPC serving primitive that cut p50 request latency from 39ms to 6ms versus Modal Web Functions by dropping platform-managed queueing and keeping network calls off the hot path.

## 2026-06-24

- [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.

## 2026-06-22

- [Unpacking sandbox startup latency: why started ≠ ready](https://swe.quest/articles/unpacking-sandbox-startup-latency-why-started-ready-4140487180749d22.md): Modal · 2026-06-22 · Medium · 7 min read · Sandboxing & isolation, Performance engineering, Serverless, AI agents
  Container scheduling and boot time, the figure most sandbox benchmarks measure as time to interactive, is usually the smallest part of startup latency.

## 2026-06-19

- [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.

## 2026-06-11

- [Making FlashAttention-4 faster for inference](https://swe.quest/articles/making-flashattention-4-faster-for-inference-dc917e70c20e0f22.md): Modal · 2026-06-11 · Hard · 14 min read · Inference & serving, Hardware, Performance engineering, LLMs
  Modal engineers extended the FlashAttention-4 kernel for decode-heavy LLM inference on Blackwell GPUs through two kinds of change: new parallelism strategies, such as split-KV parallelism across the key/value dimension, and support for irregular memory access via cp.async in place of TMA bulk loads.

## 2026-05-04

- [Boosting multimodal inference performance by \>10% with a single Python dictionary](https://swe.quest/articles/boosting-multimodal-inference-performance-by-10-with-a-single-python-dictionary-89ba3b03f48e9ebc.md): Modal · 2026-05-04 · Hard · 7 min read · Inference & serving, Performance engineering, Python, Caching
  SGLang's single-threaded scheduler was wasting host time on multimodal workloads by calling torch.UntypedStorage.\_new\_shared\_cuda for every tensor received over CUDA IPC, repeatedly reopening the same few memory-pool handles.

## 2025-12-28

- [Keeping 20,000 GPUs healthy](https://swe.quest/articles/keeping-20-000-gpus-healthy-44bcabe0aac0be9a.md): Modal · 2025-12-28 · Medium · 9 min read · Hardware, SRE, Observability, Cloud platforms, Performance engineering
  Modal keeps a multi-cloud fleet of over 20,000 concurrent GPUs reliable through instance-type benchmarking, continuously tested machine images, light boot checks, and passive plus active lifetime healthchecks.

## 2025-11-18

- [Host overhead is killing your inference efficiency](https://swe.quest/articles/host-overhead-is-killing-your-inference-efficiency-42291cc0b68e5c36.md): Modal · 2025-11-18 · Medium · 7 min read · Inference & serving, Performance engineering, Hardware
  GPU idle time while the CPU prepares work (host overhead) shows up as low GPU kernel utilization and directly multiplies inference cost; 50% overhead means GPU spend is 2x what it could be.

## 2025-11-13

- [How Decagon shipped real-time voice AI on Modal](https://swe.quest/articles/how-decagon-shipped-real-time-voice-ai-on-modal-b1a29f8666a68e7d.md): Modal · 2025-11-13 · Hard · 4 min read · Inference & serving, Model training, Speech & audio, LLMs, Performance engineering
  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.

## 2025-11-04

- [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.

## 2025-09-26

- [We reverse-engineered Flash Attention 4](https://swe.quest/articles/we-reverse-engineered-flash-attention-4-e0ddc41706e090a5.md): Modal · 2025-09-26 · Hard · 18 min read · Inference & serving, Hardware, Performance engineering, Concurrency, LLMs
  Flash Attention 4, Tri Dao's attention kernel for Nvidia Blackwell GPUs, reportedly runs about 20% faster than cuDNN's closed-source attention kernels.

## 2025-07-30

- [GPU Memory Snapshots: Supercharging sub-second startup](https://swe.quest/articles/gpu-memory-snapshots-supercharging-sub-second-startup-14c07f765f85f384.md): Modal · 2025-07-30 · Medium · 6 min read · Serverless, Inference & serving, Hardware, Performance engineering
  Modal's GPU memory snapshots extend its gVisor-based checkpoint/restore to capture GPU state, using NVIDIA's new CUDA checkpoint API (driver branches 570/575) to lock CUDA processes, copy device memory, kernels, streams, contexts and memory mappings to host memory, then snapshot CPU and GPU state together.

## 2025-07-23

- [Transcribe speech 100x faster and 100x cheaper with open models](https://swe.quest/articles/transcribe-speech-100x-faster-and-100x-cheaper-with-open-models-c3de3ba8f557cf48.md): Modal · 2025-07-23 · Medium · 11 min read · Speech & audio, Inference & serving, Cost optimization, Performance engineering, Serverless
  Open-weights ASR models such as NVIDIA's parakeet-tdt-0.6b-v2 and canary-1b-flash, deployed as a batch transcription service on Modal GPUs, transcribed about a week of ESB benchmark audio in roughly a minute for about $1.

## 2025-06-18

- [Run FLUX.1-dev three times faster](https://swe.quest/articles/run-flux-1-dev-three-times-faster-ae60b80e0a362206.md): Modal · 2025-06-18 · Medium · 9 min read · Inference & serving, Performance engineering, Python, Computer vision, Serverless
  FLUX.1-dev image generation on Modal drops from ~6.75s to under three seconds per 1024x1024 image.

## 2025-02-24

- ['I paid for the whole GPU, I am going to use the whole GPU': A high-level guide to GPU utilization](https://swe.quest/articles/i-paid-for-the-whole-gpu-i-am-going-to-use-the-whole-gpu-a-high-level-guide-to-085bb7ff5b6daba8.md): Modal · 2025-02-24 · Medium · 13 min read · Inference & serving, Hardware, Performance engineering, Cost optimization
  "GPU utilization" refers to three distinct metrics at different layers of the stack: GPU Allocation Utilization (fraction of paid GPU-seconds running application code), GPU Kernel Utilization (fraction of time actually running CUDA kernels, as reported by nvidia-smi), and Model FLOP/s Utilization (achieved FLOP/s vs. theoretical arithmetic bandwidth).

## 2025-01-28

- [Memory snapshots: Checkpoint/restore for sub-second startup](https://swe.quest/articles/memory-snapshots-checkpoint-restore-for-sub-second-startup-543b0ee4c645204a.md): Modal · 2025-01-28 · Medium · 9 min read · Serverless, Containers, Sandboxing & isolation, Performance engineering, Linux
  Modal cuts serverless container cold starts roughly 2.5x by checkpointing a gVisor container's full process tree and filesystem mutations just before it accepts a request, then restoring it instead of re-running Python's syscall-heavy import path (import torch alone makes 26,000 syscalls through OverlayFS and a FUSE lazy-loading server).

[Next page](https://swe.quest/index.md?source=modal&tag=performance&page=2)

Same list as RSS: [https://swe.quest/feed.xml?source=modal&tag=performance](https://swe.quest/feed.xml?source=modal&tag=performance). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

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)
