Beyond the KV cache: Training and serving i14’s Laplace 3B linear attention model on AWS Trainium2 with native PyTorch | Amazon Web Services

https://d2908q01vomqb2.cloudfront.net/f1f836cb4ea6efb2a0b1b99f41ad8b103eff4b59/2026/10/14/ML-21817-featured-image.png

Most large language models (LLMs) use transformer architectures with softmax attention. During inference, their key-value (KV) cache grows with the conversation or document context. This can reduce concurrency, increase serving cost, and force agentic applications to discard useful history.

i14 designed Laplace 3B as a linear attention alternative. Its recurrent state stays at 29.5 MB per sequence, independent of context length. Working with AWS, i14 used native PyTorch support through TorchNeuron Native to bring this custom architecture to AWS Trainium2. This preserved its Gated Linear Attention (GLA) design and Muon optimizer.

On one trn2.48xlarge instance, Laplace 3B trained at about 120,000 tokens per second. The model served 11,544 output tokens per second across 1,280 concurrent sequences. This post explains the model design, the changes i14 made for Trainium2, and the training and inference results.

About i14

i14 is an AI research and technology company that develops model architectures, components,...

Copyright of this story solely belongs to aws.amazon.com. To see the full text click HERE

Read more

https://www.bleepstatic.com/content/hl-images/2021/03/29/PHP-headpic.jpg

PHP development team plans to release updates tomorrow to address two vulnerabilities, each rated 9.2; security researchers at watchTowr say they are RCE flaws

Featured Podcasts Big Technology Podcast: Google CEO Sundar Pichai: AI's Infinite Possibilities, Compute Scarcity Dilemmas, Future AI Products The Big Technology Podcast takes you behind the scenes in the tech world featuring interviews with plugged-in insiders and outside agitators. Subscribe to Big Technology Podcast. Cheeky Pint: How Toto

https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iBfvhH9xaYnE/v1/1200x800.jpg

Pigment, a French startup that makes AI-powered software to help businesses forecast finances, spin up slide decks, and more, raised $250M at a $2.3B valuation

Featured Podcasts Big Technology Podcast: Google CEO Sundar Pichai: AI's Infinite Possibilities, Compute Scarcity Dilemmas, Future AI Products The Big Technology Podcast takes you behind the scenes in the tech world featuring interviews with plugged-in insiders and outside agitators. Subscribe to Big Technology Podcast. Cheeky Pint: How Toto