---
title: "Modal (medium)"
description: "Posts from Modal on swe.quest."
url: "https://swe.quest/sources/modal?difficulty=medium&per=96"
---

# Modal (medium)

Posts from [Modal](https://modal.com/blog), newest first.

Posts 1–44 of 44, page 1 of 1, newest first.

## 2026-11-12

- [Sandbox resourcing: burst, don't reserve](https://swe.quest/articles/sandbox-resourcing-burst-don-t-reserve-6ee1eed03f706498.md): Modal · 2026-11-12 · Medium · 6 min read · Sandboxing & isolation, Cost optimization, Capacity planning, Scheduling, AI agents
  Modal Sandboxes default to a tiny guaranteed request (0.125 cores, 128 MiB) and burst into a shared pool of idle machine capacity, billed per second on actual use rather than a fixed peak reservation.

## 2026-11-11

- [Modal becomes a gVisor maintainer](https://swe.quest/articles/modal-becomes-a-gvisor-maintainer-053bd8f08ca6c19d.md): Modal · 2026-11-11 · Medium · 9 min read · Sandboxing & isolation, Containers, Multi-tenancy, Hardware, Open source
  Google is donating gVisor to the CNCF under maintainer-led governance, and Modal, which launches over 40 million gVisor containers a day for GPU inference, training, and AI sandboxes, is joining as a maintainer. gVisor's Go-based Sentry application kernel implements the Linux syscall interface and is itself confined by namespaces, cgroups and seccomp, giving tenant isolation without hardware virtualization: about 25 ms boot and 12 MB overhead.

## 2026-10-20

- [Serverless routing made sticky](https://swe.quest/articles/serverless-routing-made-sticky-bebd537ed004d584.md): Modal · 2026-10-20 · Medium · 5 min read · Serverless, Load balancing, System design, Real-time systems, Capacity planning
  Modal's Sticky Sessions pin every request in a session to the same serverless container, which suits stateful workloads like streaming speech-to-text, voice agents, shared rooms and multiplayer games without resorting to max\_containers=1.

## 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.
- [How Legora runs 2,000 parallel agent evals on Modal Sandboxes](https://swe.quest/articles/how-legora-runs-2-000-parallel-agent-evals-on-modal-sandboxes-18a61f0150fc40b8.md): Modal · 2026-10-19 · Medium · 4 min read · Evaluation, AI agents, Sandboxing & isolation, Virtualization, Containers
  Legora tests its long-running legal agent by booting the full application, pinned to a specific commit, inside a separate Modal Sandbox for each eval run.

## 2026-10-15

- [Augment Your LiveKit Agent with Modal GPUs](https://swe.quest/articles/augment-your-livekit-agent-with-modal-gpus-7c537d7efe5221b2.md): Modal · 2026-10-15 · Medium · 2 min read · Serverless, Real-time systems, Inference & serving, Speech & audio, Video & media
  LiveKit agents can offload custom or open-weights models to Modal serverless GPUs, demonstrated with a BitHuman Expression video avatar voiced by Qwen3-TTS.

## 2026-10-12

- [Endpoint Candidates: evaluate and promote inference endpoints](https://swe.quest/articles/endpoint-candidates-evaluate-and-promote-inference-endpoints-e21411973e001e67.md): Modal · 2026-10-12 · Medium · 3 min read · Inference & serving, Deployment, Load balancing, Resilience
  Endpoint Candidates let Modal users stage alternative deployments of a Dedicated Endpoint, such as new checkpoints or different models, mirror a sample of production traffic to them, measure latency, throughput, cost and quality, then promote a winner from the dashboard to the existing URL.

## 2026-10-01

- [Sidecars: A low-latency trust boundary for Sandboxes](https://swe.quest/articles/sidecars-a-low-latency-trust-boundary-for-sandboxes-69384814797d352b.md): Modal · 2026-10-01 · Medium · 6 min read · Sandboxing & isolation, AI agents, Security, Containers
  Modal Sidecars are isolated containers that run on the same host as a Sandbox, separated by the same gVisor or VM boundary, so trusted code such as agent harnesses, credential injectors and egress proxies can sit next to untrusted agent-generated code.

## 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-16

- [Scaling to 1 million concurrent sandboxes in seconds](https://swe.quest/articles/scaling-to-1-million-concurrent-sandboxes-in-seconds-44dad4f83cd974c1.md): Modal · 2026-07-16 · Medium · 10 min read · Scheduling, Scaling, Sandboxing & isolation, Distributed systems, Containers
  Modal rebuilt its sandbox control plane to run 1 million concurrent sandboxes, creating all of them in under a minute, by removing central coordination and durable stores from the creation path.

## 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-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-01

- [Reinforcement learning is an infrastructure problem](https://swe.quest/articles/reinforcement-learning-is-an-infrastructure-problem-5f300edd7294912f.md): Modal · 2026-06-01 · Medium · 10 min read · Model training, LLMs, Hardware, Open source
  RL post-training of LLMs is bottlenecked by infrastructure rather than algorithms: training engines, rollout inference and isolated environments must all scale together, and once training goes multi-node, trainer-to-rollout weight sync dominates.

## 2026-05-12

- [How we achieved truly serverless GPUs](https://swe.quest/articles/how-we-achieved-truly-serverless-gpus-d82b0620ff18c95f.md): Modal · 2026-05-12 · Medium · 23 min read · Serverless, Inference & serving, Containers, Storage systems, Capacity planning
  Modal cuts GPU inference replica cold starts from roughly 2,000 seconds to about 50 seconds, a 40x speedup, by attacking each stage of spin-up.

## 2026-04-15

- [Building with Modal and the OpenAI Agents SDK](https://swe.quest/articles/building-with-modal-and-the-openai-agents-sdk-c24777075f600dcf.md): Modal · 2026-04-15 · Medium · 12 min read · AI agents, Sandboxing & isolation, LLMs, Python, Cloud platforms
  A custom agent harness built on the OpenAI Agents SDK runs coding agents inside Modal Sandboxes, optionally with GPUs, rather than on the host, where an unsandboxed exec tool can be abused by malicious prompts.

## 2026-04-14

- [Autoscaling Autoresearch: Give your agents elastic GPUs on Modal](https://swe.quest/articles/autoscaling-autoresearch-give-your-agents-elastic-gpus-on-modal-149826d2e84207c1.md): Modal · 2026-04-14 · Medium · 8 min read · AI agents, ML platforms, Serverless, Model training, Capacity planning
  A Claude Code agent equipped with Modal Skills ran OpenAI's Parameter Golf challenge overnight, executing 113 experiments over 238 GPU-hours and dropping bits-per-byte from 1.42 to 1.12.

## 2026-04-08

- [Real-time inference for robots at Physical Intelligence](https://swe.quest/articles/real-time-inference-for-robots-at-physical-intelligence-e3fe41515a87309d.md): Modal · 2026-04-08 · Medium · 3 min read · Inference & serving, Networking, Hardware, Cloud platforms
  Physical Intelligence runs closed-loop inference for its Visual-Language-Action robot models on Modal GPUs instead of on-board GPUs, adding only about 10-15 ms of network overhead.

## 2026-03-25

- [How Doppel eliminated ML infrastructure tax with Modal](https://swe.quest/articles/how-doppel-eliminated-ml-infrastructure-tax-with-modal-6cfb61f19c711d02.md): Modal · 2026-03-25 · Medium · 5 min read · ML platforms, Serverless, Inference & serving, Model training, Threat detection
  Doppel, which builds ML models to detect social engineering attacks, moved much of its training and inference from sequential experiments and GCP Cloud Run to Modal.

## 2026-02-24

- [Directory Snapshots: Resumable project state for Sandboxes](https://swe.quest/articles/directory-snapshots-resumable-project-state-for-sandboxes-13d39562cbeec9ee.md): Modal · 2026-02-24 · Medium · 5 min read · Sandboxing & isolation, Containers, Storage systems, AI agents
  Modal's Directory Snapshots, now in public beta, capture a single directory from a running Sandbox and mount it into another Sandbox independently of the base image, instead of snapshotting the whole filesystem as one unit.

## 2026-02-11

- [Try GLM-5.1, the new frontier of open intelligence, on Modal](https://swe.quest/articles/try-glm-5-1-the-new-frontier-of-open-intelligence-on-modal-a82f7ab29ce4cb24.md): Modal · 2026-02-11 · Medium · 6 min read · Inference & serving, LLMs, AI for coding, AI agents
  Modal is offering a free, OpenAI API-compatible endpoint for Z.ai's MIT-licensed GLM-5 (since upgraded to GLM-5.1) through the end of April, limited to one concurrent request per user.

## 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-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-16

- [Inside Modal Notebooks: How we built a cloud GPU notebook that boots in seconds](https://swe.quest/articles/inside-modal-notebooks-how-we-built-a-cloud-gpu-notebook-that-boots-in-seconds-cfb6050987f03347.md): Modal · 2025-09-16 · Medium · 8 min read · System design, Containers, Storage systems, Real-time systems, Developer tools
  Modal Notebooks runs Jupyter kernels inside Modal Sandboxes, using a \`modal-kernelshim\` daemon that translates ZeroMQ kernel protocol messages into HTTP tunneled through the control plane.

## 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-07-02

- [How we used evals and inference-time compute scaling to generate beautiful QR codes that actually work](https://swe.quest/articles/how-we-used-evals-and-inference-time-compute-scaling-to-generate-beautiful-qr-92cc5efa8fe78c6a.md): Modal · 2025-07-02 · Medium · 13 min read · Evaluation, Computer vision, Inference & serving, Machine learning
  Generating aesthetic QR codes (QArt codes) with Stable Diffusion and ControlNet often produces images that don't scan, so the team built automated evals: the QReader library for scannability and a community aesthetic predictor.

## 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-06-09

- [Introducing: Modal 1.0](https://swe.quest/articles/introducing-modal-1-0-0fb66e2ff08ac944.md): Modal · 2025-06-09 · Medium · 4 min read · API design, Serverless, Python, Developer tools
  Modal's Python client SDK reaches 1.0, promising far fewer breaking changes and organized around three API design principles.

## 2025-05-20

- [Modal's serverless KV store gets its limit raised to infinity](https://swe.quest/articles/modal-s-serverless-kv-store-gets-its-limit-raised-to-infinity-9f67f240cb6a408f.md): Modal · 2025-05-20 · Medium · 4 min read · Serverless, Caching, Distributed systems, Python
  Modal's Dict key-value primitive now has unlimited storage, durability, a 7-day TTL that is refreshed on both reads and writes (previously 30 days since last write with a 10GiB cap), and a \`skip\_if\_exists\` flag on \`.put()\` that works as a distributed lock.

## 2025-05-07

- [Linear programming for fun and profit](https://swe.quest/articles/linear-programming-for-fun-and-profit-77f85e06bfe14840.md): Modal · 2025-05-07 · Medium · 8 min read · Capacity planning, Cost optimization, Algorithms, Cloud platforms, Serverless
  Modal provisions GPU and CPU capacity across multiple clouds with a "resource solver" that formulates demand, prices, availability and per-instance limits as a linear program.

## 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).

## 2024-12-10

- [What is LLM fine-tuning?](https://swe.quest/articles/what-is-llm-fine-tuning-818b56b81ea17fe8.md): Modal · 2024-12-10 · Medium · 13 min read · Model training, LLMs
  Fine-tuning adjusts a pretrained LLM's weights for a specific task or domain, often matching larger models' quality at lower cost and latency.

## 2024-09-16

- [Boost your throughput with dynamic batching](https://swe.quest/articles/boost-your-throughput-with-dynamic-batching-c7c722ba8af78c33.md): Modal · 2024-09-16 · Medium · 4 min read · Inference & serving, Performance engineering, Serverless, Python
  Modal added a \`@modal.batched()\` decorator that groups incoming requests into batches flushed when either \`max\_batch\_size\` is reached or \`wait\_ms\` elapses, avoiding the unbounded waits of fixed-size batching.

## 2024-09-10

- [Building a cost-effective analytics stack with Modal, dlt, and dbt](https://swe.quest/articles/building-a-cost-effective-analytics-stack-with-modal-dlt-and-dbt-7ea1b0034997749a.md): Modal · 2024-09-10 · Medium · 11 min read · Data pipelines, Analytics & OLAP, Serverless, CI/CD, Cost optimization
  Modal runs its whole analytics stack on Modal: dlt loads data from a Postgres read replica into Snowflake, dbt transforms it, and GitHub Actions handles CI/CD. dlt replaced hand-written psycopg2 code and removes manual schema definitions, Snowflake DDL and error-prone incremental logic.

## 2024-08-05

- [Beat GPT-4o at Python by searching with 100 dumb LLaMAs](https://swe.quest/articles/beat-gpt-4o-at-python-by-searching-with-100-dumb-llamas-907f6997678a8d61.md): Modal · 2024-08-05 · Medium · 7 min read · LLMs, Inference & serving, Evaluation, AI for coding, Serverless
  Sampling LLaMA 3.1 8B Instruct many times and checking each candidate against HumanEval's unit tests raises pass@k from 66.4% at k=1 to 90.5% at k=100, matching GPT-4o's reported 90.2% pass@1, and to 95.1% at k=1000.

## 2024-06-20

- [Run GPU jobs from Airflow with Modal](https://swe.quest/articles/run-gpu-jobs-from-airflow-with-modal-53fdd2aef1aa5c6f.md): Modal · 2024-06-20 · Medium · 7 min read · Data pipelines, Scheduling, Serverless, Python, ML platforms
  Airflow DAGs can offload GPU-heavy tasks to Modal instead of standing up Celery or Kubernetes executors, using a two-step pipeline that scrapes Reddit ELI5 questions and answers them with an LLM as the example.

## 2024-06-06

- [How to catch crypto miners using syscall signatures](https://swe.quest/articles/how-to-catch-crypto-miners-using-syscall-signatures-d0f6cd50f5ee160a.md): Modal · 2024-06-06 · Medium · 7 min read · Threat detection, Sandboxing & isolation, Linux, Serverless, Containers
  Modal detects cryptominers abusing its GPU serverless platform by analyzing container syscalls at runtime rather than relying only on user metadata, which abusers can fake with stolen credit cards.

## 2024-05-21

- [Create an infinite icon library by fine-tuning Stable Diffusion](https://swe.quest/articles/create-an-infinite-icon-library-by-fine-tuning-stable-diffusion-bfc1ceb5caaf1412.md): Modal · 2024-05-21 · Medium · 12 min read · Model training, Computer vision, Inference & serving, Serverless, Python
  Stable Diffusion v1.5 is fully fine-tuned on the ~300-icon Heroicons set to generate new icons in a similar black-and-white line style.

## 2024-04-26

- [Beating proprietary models with a quick fine-tune](https://swe.quest/articles/beating-proprietary-models-with-a-quick-fine-tune-f1b25612d0019a9d.md): Modal · 2024-04-26 · Medium · 11 min read · Model training, Machine learning, RAG & retrieval, Serverless, Python
  Fine-tuning an open-source embedding model on a few hundred labeled pairs can beat OpenAI's text-embedding-3-small on duplicate-question detection, at lower cost.

## 2024-04-18

- [Why you should move your ETL stack to Modal](https://swe.quest/articles/why-you-should-move-your-etl-stack-to-modal-f0b59ab318e09bd3.md): Modal · 2024-04-18 · Medium · 6 min read · Data pipelines, Serverless, Cost optimization, Python
  Modal's serverless Python functions can replace ETL vendors and orchestrators for simple batch jobs.

## 2024-03-14

- [Lambda on hard mode: Inside Modal's web infrastructure](https://swe.quest/articles/lambda-on-hard-mode-inside-modal-s-web-infrastructure-9e5302ebea41d109.md): Modal · 2024-03-14 · Medium · 17 min read · Serverless, Networking, Rust, System design, Real-time systems
  Modal's modal-http service, written in Rust on hyper and Tokio, serves HTTP and WebSocket traffic for serverless functions by translating each request into a function call instead of reverse-proxying to containers.

## 2024-01-23

- [Embedding English Wikipedia in under 15 minutes](https://swe.quest/articles/embedding-english-wikipedia-in-under-15-minutes-fa4a10822ac9f853.md): Modal · 2024-01-23 · Medium · 11 min read · Inference & serving, Serverless, RAG & retrieval, Python
  Embedding all of English Wikipedia with the open-source BAAI/bge-small-en-v1.5 model takes about 15 minutes and just over $15 when Hugging Face's Text Embeddings Inference server runs across many parallel GPUs on Modal.

Same list as RSS: [https://swe.quest/feed.xml?source=modal&difficulty=medium](https://swe.quest/feed.xml?source=modal&difficulty=medium). 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)
