mlsanityData to 13 Oct 2026

Flama: a Python framework for development and deployment of production-ready APIs, machine learning, and LLM services

arXiv 2608.18733 ↗First posted 19 Aug 2026cs.SE cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

We present Flama, an open-source Python framework for developing and deploying production-ready web APIs, machine learning services, and large-language-model (LLM) applications. Built on the Asynchronous Server Gateway Interface (ASGI), Flama offers a type-driven, async-first programming model that unifies REST API development, predictive model serving, and generative AI inference in one architecture. It is organised around seven subsystems: a component-based dependency injection system resolving handler parameters from type annotations at startup; a pluggable schema layer supporting Pydantic, Marshmallow and Typesystem behind a single adapter; an automatic CRUD generator turning a SQLAlchemy table and a schema class into REST endpoints backed by the Repository and Unit of Work patterns; a portable binary format (.flm) packaging models from scikit-learn, TensorFlow, PyTorch and Hugging Face Transformers with their metadata for zero-code deployment; a multi-backend LLM server running vLLM (Linux/CUDA) or MLX (Apple Silicon) and exposing four wire protocols (OpenAI, Anthropic, Ollama, and a native streaming dialect) through a shared codec; a Rust-accelerated core compiled via Maturin for routing, JSON encoding, compression and parsing; and a Model Context Protocol module turning any application into an MCP server over JSON-RPC 2.0. Built-in capabilities include JWT authentication, two pagination strategies, background tasks in threads or processes, WebSocket endpoints, Server-Sent Event and NDJSON streaming, OpenAPI 3.2.0 generation from handler signatures, and a command-line interface for running applications and for serving, packaging and inspecting models. We describe the architecture, present the programming model through worked examples, and compare Flama with existing frameworks, model serving platforms and LLM inference engines.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 0 of its 49 references that are in the map. First posted on arXiv 19 Aug 2026.

Builds on

0 of 49 references.

No references here yet.

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025A Framework for Testing and Adapting REST APIs as LLM Tools
  2. 2024Harnessing LLMs for API Interactions: A Framework for Classification and Synthetic Data Generation
  3. 2024Octopus: On-device language model for function calling of software APIs
  4. 2026LLM Serving in the Wild: An Empirical Study of Frameworks, Methods, and System Designs
  5. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs
  6. 2025Live API-Bench: 2500+ Live APIs for Testing Multi-Step Tool Calling
  7. 2026stratum: A System Infrastructure for Massive Agent-Centric ML Workloads
  8. 2024API-BLEND: A Comprehensive Corpora for Training and Benchmarking API LLMs