跳到正文
数字商店
原文
Sebastian Raschka· @rasbt · X·· 15 天前AI 评分35
AI 导读

Sebastian Raschka 认为开源 LLM 生态需要一个标准化的构建块 API,以降低在 GQA、MLA、MoE 或 Mamba2 等不同组件之间进行实验和消融研究的切换成本。他指出目前的实现方式较为混乱,虽然有 torchtitan 和 Megatron Core 等尝试,但抽象程度不足,需要一个经过精心工程化且能满足生产环境效率要求的 API。

正文 · 原文

The open-source LLM ecosystem could really benefit from an LLM building-block API.

We have so many LLM components across different models now. Whether you are using PyTorch or C++ and CUDA code directly, there is a major switching cost when you want to run experiments or ablation studies, say swapping GQA with MLA, dense FFNs with MoE, attention layers with Mamba2 or Gated DeltaNet, or standard residual connections with attention residuals.

Currently, it’s very messy even with LLM-assisted coding.

It could maybe be on top of PyTorch or CUDA directly, but it needs to be carefully engineered and maintained (versus quickly vibe-coded on a weekend) and efficient enough that people trust it to use in production (which is really a requirement to move beyond toy examples).

Maybe some food for thought for a big, well-funded lab :)

(There are some efforts that go into that direction, like torchtitan, torchtune, Megatron Core, OLMo-core, but they are not quite that level of abstraction, I'd say.

And, as always, there’s the chicken-and-egg problem: it needs to be popular to get widely adopted, and it needs to get widely adopted to become popular.)

来源:Sebastian Raschka · x.com