AWS Machine Learning BlogT1·68 分
i14 Laplace 3B 线性注意力模型在 AWS Trainium2 实现原生 PyTorch 训练与推理
原标题:Beyond the KV cache: Training and serving i14’s Laplace 3B linear attention model on AWS Trainium2 with native PyTorch
- Laplace 3B 的循环状态大小固定为 29.5 MB,消除了传统 Transformer KV Cache 随上下文增长的问题
- 通过 TorchNeuron Native 实现在 AWS Trainium2 上的原生 PyTorch 训练与推理,无需修改底层算子逻辑
- 在单台 trn2.48xlarge 实例上达到 120k tokens/s 训练速度和 11.5k output tokens/s 高并发推理吞吐