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

# Modal

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

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

## 2026-11-19

- [How Abundant designed efficient rollout architecture with Modal Sandboxes](https://swe.quest/articles/how-abundant-designed-efficient-rollout-architecture-with-modal-sandboxes-6590e651fd7feefd.md): Modal · 2026-11-19 · Easy · 4 min read · Sandboxing & isolation, Model training, Evaluation, Serverless, Cost optimization
  Abundant runs its reinforcement learning rollout platform on Modal, with each of 75,000+ RL tasks executing in an isolated Modal Sandbox and Modal Functions powering the scheduler API.

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

- [Introducing our Training API](https://swe.quest/articles/introducing-our-training-api-a5babdede3e3cd17.md): Modal · 2026-10-22 · Hard · 7 min read · Model training, ML platforms, Multi-tenancy, Cost optimization, Open source
  Spindle is an open-source, Tinker-compatible post-training server that runs in a user's Modal workspace and bills for GPU time instead of tokens, so teams can customize models and features.

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

- [Toward RL on mixed-precision, mixed-accelerator samplers](https://swe.quest/articles/toward-rl-on-mixed-precision-mixed-accelerator-samplers-1c0dc5519077aec1.md): Modal · 2026-10-13 · Hard · 17 min read · Model training, Inference & serving, LLMs, Hardware, Cost optimization
  RL training of Qwen3.6-35B-A3B on agentic coding stays stable when samplers run on six accelerator types (A100 through B300, RTX PRO 6000) in NVFP4, FP8 and BF16 with their own kernels, feeding a BF16 trainer on B200.

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

- [Modal Clusters are generally available](https://swe.quest/articles/modal-clusters-are-generally-available-ac463de0f42a95b5.md): Modal · 2026-10-01 · Easy · 6 min read · Scheduling, Model training, Networking, Inference & serving, Serverless
  Modal Clusters, multi-node GPU groups requested via a single \`@modal.clustered(size=N, rdma=True)\` decorator, are now generally available with per-second billing and cluster acquisition in seconds.
- [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-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-27

- [Kimi K3 by Moonshot now available on Modal](https://swe.quest/articles/kimi-k3-by-moonshot-now-available-on-modal-c3db2e556f76303f.md): Modal · 2026-07-27 · Easy · 3 min read · Inference & serving, LLMs
  Moonshot's Kimi K3, a 2.8T-parameter mixture-of-experts multimodal model with a 1M token context window, is available on Modal from release day via an OpenAI-compatible Shared API and dedicated Auto Endpoints.

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

- [Modal is a computer](https://swe.quest/articles/modal-is-a-computer-270db1c7ccdcba70.md): Modal · 2026-07-09 · Easy · 6 min read · Serverless, Cloud platforms, Containers, Operating systems, System design
  Modal is best understood not as a neocloud or inference provider but as a computer: a virtual machine built across dozens of cloud providers, mapped component by component onto a classic computer architecture.

## 2026-07-06

- [How to price serverless GPUs](https://swe.quest/articles/how-to-price-serverless-gpus-860219d00ad9fa69.md): Modal · 2026-07-06 · Easy · 7 min read · Cost optimization, Serverless, Capacity planning, Inference & serving, Hardware
  Whether serverless or reserved GPUs are cheaper comes down to one comparison: the ratio of reserved to serverless cost equals the reservation discount multiplied by the workload's peak-to-average demand ratio, so serverless wins whenever peak-to-average exceeds the discount.

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

## 2026-04-29

- [Building an RL theorem-proving workflow on Modal](https://swe.quest/articles/building-an-rl-theorem-proving-workflow-on-modal-091b48c98bf6e356.md): Modal · 2026-04-29 · Hard · 10 min read · Model training, ML platforms, Sandboxing & isolation, LLMs
  AE Studio built a reinforcement-learning loop on Modal that trains an LLM to write Lean proofs, comparing Evolution Strategies (ES) against GRPO using Lean verification as the reward. vLLM generation runs on GPU workers fanned out with .map(), Lean verification runs in short-lived sandboxes so bad proofs can't crash the run, and model state is stored as a ~200-byte-per-iteration history of perturbation seeds and rewards that each worker replays onto base weights from a Volume.

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

- [How Ramp built a full context background coding agent on Modal](https://swe.quest/articles/how-ramp-built-a-full-context-background-coding-agent-on-modal-8c26a10f9ce0801d.md): Modal · 2026-02-19 · Easy · 6 min read · AI agents, AI for coding, Sandboxing & isolation, Developer productivity
  Ramp Inspect, an internal background coding agent, runs each session in a Modal Sandbox containing a full dev environment (Postgres, Redis, Temporal, RabbitMQ, OpenCode, VS Code server, VNC with Chromium) and now starts roughly half of merged pull requests at Ramp.

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

- [Agents need good developer experience too](https://swe.quest/articles/agents-need-good-developer-experience-too-0e7b893ce6372fdc.md): Modal · 2025-11-20 · Easy · 7 min read · Developer productivity, AI agents, AI for coding, API design
  Developer experience principles that make humans productive also help coding agents, because both depend on tight write-run-observe feedback loops.

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

- [What is an AI code sandbox?](https://swe.quest/articles/what-is-an-ai-code-sandbox-ff77320ddef8f884.md): Modal · 2025-07-24 · Easy · 9 min read · Sandboxing & isolation, AI agents, AI for coding, Containers
  AI code sandboxes are ephemeral, isolated environments for executing LLM-generated code so hallucinated packages, crashes or prompt-injected exploits can't affect the host or other tenants.

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

- [Dollars per token considered harmful](https://swe.quest/articles/dollars-per-token-considered-harmful-22f5b61a56607937.md): Modal · 2025-07-16 · Easy · 5 min read · Inference & serving, Cost optimization, Capacity planning, LLMs
  Teams self-hosting LLM inference should reason in dollars per request, not dollars per token, because per-token pricing reflects the economics of API providers selling inference as a service rather than applications serving users.

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

- [WireGuard at Modal: Static IPs for serverless containers](https://swe.quest/articles/wireguard-at-modal-static-ips-for-serverless-containers-f9b6b3f9bd58963d.md): Modal · 2024-12-02 · Hard · 14 min read · Networking, Linux, Serverless, Go, Multi-tenancy
  Modal built vprox, a high-availability Go VPN proxy on WireGuard, to give multi-tenant serverless containers static outbound IPv4 addresses for things like database IP allowlists.

## 2024-10-25

- [The future of AI needs more flexible GPU capacity](https://swe.quest/articles/the-future-of-ai-needs-more-flexible-gpu-capacity-9253d5fa5c5e3d65.md): Modal · 2024-10-25 · Easy · 7 min read · Capacity planning, Inference & serving, Serverless, Multi-tenancy, Cost optimization
  Inference and many other GPU workloads are highly volatile: Poisson noise, daily and weekly cycles, viral spikes and bursty batch jobs, which pushes fixed-reservation GPU clusters below 50% utilization.

## 2024-09-24

- [Hybrid search over California embeddings with Modal, MongoDB, and Clay](https://swe.quest/articles/hybrid-search-over-california-embeddings-with-modal-mongodb-and-clay-59ebc96e9326e33e.md): Modal · 2024-09-24 · Easy · 3 min read · Vector search, Maps & geospatial, Serverless, Search, Inference & serving
  A hybrid search app over California combines timestamps, geolocation and satellite image embeddings using Modal, MongoDB Atlas and Clay's foundation model.

## 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](https://swe.quest/feed.xml?source=modal). 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)
