Metraipolis › archive › dc_f8d76760af77

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

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.18733
License (as archived)
CC0-1.0
Archived
2026-10-18T13:45:19.906Z
SHA-256 of the archived text
8890cf15c2d3e4e029b5f53e3f3733729b7888928e96caf84852683cf62155bc
Stable URL of this page
https://metraipolis.com/documento/dc_f8d76760af77

How to cite

Flama: a Python framework for development and deployment of production-ready APIs, machine learning, and LLM services — arXiv:2608.18733 — arXiv (en), https://arxiv.org/abs/2608.18733 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f8d76760af77 (Metraipolis archive dc_f8d76760af77, sha256 8890cf15c2d3e4e029b5f53e3f3733729b7888928e96caf84852683cf62155bc)
BibTeX
@misc{dcf8d76760af77,
  title = {Flama: a Python framework for development and deployment of production-ready APIs, machine learning, and LLM services — arXiv:2608.18733},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.18733},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f8d76760af77; sha256 8890cf15c2d3e4e029b5f53e3f3733729b7888928e96caf84852683cf62155bc},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.18733. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-20 in cs.AI).
Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI); Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2608.18733 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T13:41:17.971Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-08-20?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).