i14 trains and serves Laplace 3B linear attention on AWS Trainium2

Provider post AWS Machine Learning Blog · Based on the provider's own account.

i14 trained and served its linear attention model, Laplace 3B, on AWS Trainium2 using native PyTorch. AWS says the model’s recurrent state remains at 29.5 MB per sequence regardless of context length. This matters for serving because that state does not grow with context in the way the key-value cache of transformer models does.

The approach described is intended to keep serving memory predictable. The figure applies to the recurrent state per sequence; on its own, it does not describe the total memory required by a system.

The AWS post explains how Laplace 3B was trained and served on Trainium2 with native PyTorch. Further technical details are available in the original source: AWS Machine Learning Blog

🇬🇧 https://aws.amazon.com/blogs/machine-learning/beyond-the-kv-cache-training-and-serving-i14s-laplace-3b-linear-attention-model-on-aws-trainium2-with-native-pytorch

Leave a Comment

The weekly brief: selected developments, projects and videos