Flama: 8 years building a Python framework where ML models and LLMs are first-class, now written up on arXiv [P]
Mirrored from r/MachineLearning for archival readability. Support the source by reading on the original site.
| I started Flama in 2018 to take a trained model to a production API with as little ceremony as possible. With 2.0 LLMs became first-class alongside classic models, and together with Miguel Durán-Olivencia we've now written up the whole architecture in an 83-page paper on arXiv (2608.18733). A model is a file Every model, whether a scikit-learn pipeline, a PyTorch network or an LLM, is packaged into a single One model, four protocols That model answers OpenAI ( https://i.redd.it/lq0plprg69vh1.gif Three independent layers A request goes through a dialect, a canonical transport and a backend (vLLM on Linux with CUDA, MLX on Apple Silicon). Because the layers only meet in the middle, any dialect works on any backend, which is also why tool calls and token usage come out right in every protocol. The rest of the framework
The paper walks through each subsystem and compares Flama with web frameworks, model servers and LLM inference engines (Table 1). Paper: https://arxiv.org/abs/2608.18733 Code: https://github.com/vortico/flama If you find it useful, a star on GitHub helps more people find it, and I'm happy to answer anything about the design. [link] [comments] |
More from r/MachineLearning
-
I turned my dog Jackies Brain into a working AI [P]
Oct 14
-
Event2Vec: additive event embeddings where a linear score on a history decomposes exactly into per-event terms [P]
Oct 14
-
Binary noise classification using CRNN mean teacher algo [R]
Oct 14
-
Localized Neural learning vs backpropagation [D]
Oct 14
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.