cd /news/artificial-intelligence/i-built-an-experimental-routing-base… · home topics artificial-intelligence article
[ARTICLE · art-107758] src=discuss.huggingface.co ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

I built an experimental routing-based attention mechanism for GPT models

Noah DeAngelis released RoutingGPT, an experimental GPT language model built in PyTorch that uses a routing-based attention mechanism to reduce computation from T×T to T×0.25T, aiming to make longer context lengths more accessible on low-end hardware. The project is available on GitHub under the Apache 2.0 license and has not been rigorously benchmarked yet.

read1 min views3 publishedAug 23, 2026

I’ve been experimenting with a routing-based attention mechanism where a learned router (linear layer) selects a group of tokens to serve as keys/values, while all tokens remain queries.

With the default 25% routing ratio:

Dense attention: T × T

Routing attention: T × 0.25T

The goal is to reduce attention computation and make longer context lengths more available on low end hardware.

I built a small GPT language model from scratch in PyTorch to test the idea. The project is currently experimental and hasn’t been rigorously benchmarked yet.

GitHub: https://github.com/noahdeangelis/RoutingGPT The project is released under the Apache 2.0 license.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @noah deangelis 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-an-experimen…] indexed:0 read:1min 2026-08-23 ·