Modal LLM Fleet

Reusable serverless infrastructure for open-weight multimodal models, developed as a personal pre-production experiment.

Modal LLM Fleet

Conceptual cover illustration.

Personal experiment · reusable pre-production infrastructure

Context

A personal infrastructure experiment provides a reusable foundation for future AI products without permanent GPU infrastructure.

Role-based services cover text, vision, embeddings, image/video generation, speech, and restoration. The fleet has not been used in production.

Challenge

Support different AI workloads while keeping model choice, hardware, authentication, and operating costs explicit.

Avoid rebuilding inference for each project or maintaining idle GPU capacity.

Approach

Registries separate model/runtime selection from serving infrastructure. Independent deployments use shared API contracts, token protection, caches, and scale-to-zero.

vLLM handles text, vision, and embeddings; diffusers workers cover image/video. FastAPI exposes OpenAI-compatible contracts on Modal.

Each project can deploy only the capabilities it needs. Diagrammed model/GPU choices are examples requiring workload-specific evaluation.

Workflow

  1. 01

    Select the workload

    Choose the modality and capability a future project needs.

  2. 02

    Register the model

    Bind model, runtime, GPU profile, cache, and endpoint metadata in one registry.

  3. 03

    Provision on Modal

    Deploy only the required model behind an isolated serverless GPU service.

  4. 04

    Expose a shared contract

    Serve the capability through a token-protected, OpenAI-compatible endpoint.

  5. 05

    Scale down and reassess

    Scale to zero when idle and reevaluate models, cost, safety, and quality before production use.

Capabilities

  • Role-based registry for models, runtimes, GPU profiles, caches, and endpoints.

  • Text, vision, embeddings, image, video, speech, and restoration capabilities.

  • Token-protected OpenAI-compatible contracts for client reuse.

  • Independent serverless deployment per model with scale-to-zero behavior.

  • Reusable foundation retained for future AI products and experiments.

Results

  • The experiment organizes seven capability families behind one reusable topology rather than a single-purpose model endpoint.

  • Registries and shared API contracts centralize model, runtime, hardware, cache, authentication, and endpoint configuration.

  • The Modal topology supports isolated per-model provisioning and scale-to-zero behavior intended to avoid paying for idle GPU services.

  • The reusable infrastructure is at pre-production stage.

    Task-specific evaluation, load/cost testing, license review, observability, and security hardening define its production adoption path.

Decisions & trade-offs

Trade-offs

  • Open-weight models with fewer provider-imposed restrictions increase application control.

    However, shift responsibility for safety policy, misuse prevention, content controls, licensing, and monitoring to the deployer.

  • A broad multimodal fleet improves reuse across future projects.

    However, increases cold-start, GPU-selection, dependency, cache, and lifecycle complexity compared with one managed model API.

  • OpenAI-compatible contracts reduce client integration work.

    However, can expose only a common subset unless model-specific capabilities are deliberately added outside the shared interface.

Problems solved

  • Replaced repeated per-project model-serving setup with a reusable registry and deployment topology.

  • Placed modality-specific runtimes behind a consistent, token-protected client contract.

  • Designed independent deployments and scale-to-zero behavior to avoid permanently allocated GPU infrastructure.

  • Made future model replacement more localized by separating model metadata from serving and client integration.

Technology

Open-source LLMModalGPU InferenceMultimodal AIServerless Inference

Let's build something amazing?

We are ready to understand your technical challenge and propose the best architecture. Contact us for an initial consultation without commitment.

OnTimeStack

© 2026 OnTimeStack. All rights reserved.

Let's talk?Privacy Policy
Designed by Sarah Ninsi