---
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/?per=48&source=modal&tag=python"
---

# Posts

Filtered by topics: Python, source: Modal.

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

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

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

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