Flama 框架架构写成 arXiv 论文:模型与 LLM 均为一等公民
Flama: 8 years building a Python framework where ML models and LLMs are first-class, now written up on arXiv [P]
作者为开发 8 年的 Python 框架 Flama 发布 83 页 arXiv 论文(2608.18733),介绍其把 scikit-learn、PyTorch 与 LLM 统一打包为单个 .flm 文件的架构。
| 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. submitted by /u/p3rdy[link] [留言] |
来源:r/MachineLearning · reddit.com