paper-with-me

홈 › Papers

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

2026-08-19 · José A. Perdiguero López, Miguel A. Durán-Olivencia 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.

📄 PDF Abstract BibTeX arXiv:2608.18733

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

PyMilo: A Python Library for ML I/O

2024-12-31 · AmirHosein Rostami, Sepand Haghighi, Sadra Sabouri, Alireza Zolanvari

PyMilo is an open-source Python package that addresses the limitations of existing Machine Learning (ML) model storage formats by providing a transparent, reliable, and safe method for exporting and deploying trained mod…

Neuraxle - A Python Framework for Neat Machine Learning Pipelines

2019-09-01 · Chevalier, Guillaume and Brillant, Alexandre and Hamel, Eric

Code Machine Learning Pipelines - The Right Way. The present new framework is for building neat pipelines, providing the right abstractions to both ease research, development, and deployment of your ML applications. Most…

AutoMLBIG-bench Machine Learning

LensKit for Python: Next-Generation Software for Recommender System Experiments

2018-09-10 · Michael D. Ekstrand

LensKit is an open-source toolkit for building, researching, and learning about recommender systems. First released in 2010 as a Java framework, it has supported diverse published research, small-scale production deploym…

Collaborative FilteringRecommendation Systems

The Next 700 ML-Enabled Compiler Optimizations

2023-11-17 · S. VenkataKeerthy, Siddharth Jain, Umesh Kalvakuntla, Pranav Sai Gorantla 외

There is a growing interest in enhancing compiler optimizations with ML models, yet interactions between compilers and ML frameworks remain challenging. Some optimizations require tightly coupled models and compiler inte…

Deeplite Neutrino: An End-to-End Framework for Constrained Deep Learning Model Optimization

2021-01-11 · Anush Sankaran, Olivier Mastropietro, Ehsan Saboori, Yasser Idris 외

Designing deep learning-based solutions is becoming a race for training deeper models with a greater number of layers. While a large-size deeper model could provide competitive accuracy, it creates a lot of logistical ch…

Deep LearningModel Optimization