Modal

modal.com
Websites

Modal is a platform for running Python code in the cloud with minimal

llms.txt

Modal llms.txt

Modal is a platform for running Python code in the cloud with minimal configuration, especially for serving AI models and high-performance batch processing. It supports fast prototyping, serverless APIs, scheduled jobs, GPU inference, distributed volumes, and sandboxes.

Important notes:

  • Modal's primitives are embedded in Python and tailored for AI/GPU use cases, but they can be used for general-purpose cloud compute.
  • Modal is a serverless platform, meaning you are only billed for resources used and can spin up containers on demand in seconds.

You can sign up for free at [https://modal.com] and get $30/month of credits.

Guide

Examples

API Reference

  • Changelog
  • Application construction
    • App: The main unit of deployment for code on Modal
    • App.function: Decorator for registering a function with an App
    • App.cls: Decorator for registering a class with an App
  • Serverless execution
    • Function: A serverless function backed by an autoscaling container pool
    • Cls: A serverless class supporting parametrization and lifecycle hooks
  • Extended Function configuration
    • Class parametrization
      • parameter: Used to define class parameters, akin to a Dataclass field
    • Lifecycle hooks
      • enter: Decorator for a method that will be executed during container startup
      • exit: Decorator for a method that will be executed during container shutdown
      • method: Decorator for exposing a method as an invokable function
    • Web integrations
      • fastapi_endpoint: Decorator for exposing a simple FastAPI-based endpoint
      • asgi_app: Decorator for functions that construct an ASGI web application
      • wsgi_app: Decorator for functions that construct a WSGI web application
      • web_server: Decorator for functions that construct an HTTP web server
    • Function semantics
    • Scheduling
      • Cron: A schedule that runs based on cron syntax
      • Period: A schedule that runs at a fixed interval
    • Exception handling
      • Retries: Function retry policy for input failures
  • Sandboxed execution
    • Sandbox: An interface for restricted code execution
    • ContainerProcess: An object representing a sandboxed process
    • FileIO: A handle for a file in the Sandbox filesystem
  • Container configuration
    • Image: An API for specifying container images
    • Secret: A pointer to secrets that will be exposed as environment variables
  • Data primitives
    • Persistent storage
      • Volume: Distributed storage supporting highly performant parallel reads
      • CloudBucketMount: Storage backed by a third-party cloud bucket (S3, etc.)
      • NetworkFileSystem: Shared, writeable cloud storage (superseded by modal.Volume)
    • In-memory storage
      • Dict: A distributed key-value store
      • Queue: A distributed FIFO queue
  • Networking
    • Proxy: An object that provides a static outbound IP address for containers
    • forward: A context manager for publicly exposing a port from a container
Related

llmtxt.app – AI SEO & Search Engine Optimization Directory

/llms.txt
635 tokens
/llms-full.txt
2,429 tokens
Websites

A proposal to standardise on using an /llms.txt file to provide information to help LLMs use a website at inference time.

/llms.txt
318 tokens
Websites

/llms.txt
33,874 tokens
/llms-full.txt
3,770,473 tokens
Websites

/llms.txt
1,164 tokens
/llms-full.txt
1,167 tokens
Websites

About Matt Rickard.

/llms.txt
515,931 tokens
/llms-full.txt
515,931 tokens
Websites

/llms.txt
628 tokens
Websites

Evan Boehs — personal website.

/llms.txt
265 tokens
Websites

This very website you're looking at right now!

/llms.txt
48 tokens
Websites