Menu

GitHub - jiaminres/drop-the-ffn: A 107M TinyStories Transformer with per-token column attention in place of FFNs. Checkpoint, validation loss and perplexity vs. the official TinyStories-2Layers-33M.
📰

GitHub - jiaminres/drop-the-ffn: A 107M TinyStories Transformer with per-token column attention in place of FFNs. Checkpoint, validation loss and perplexity vs. the official TinyStories-2Layers-33M.

Hacker News·about 8 hours ago
#Gi2kucMi
Long article (1058 words) — no AI summary yet.
Reading 0:00
15s threshold

简体中文 · Try it on CPU · Validation results

This 107M-parameter language model replaces the static feed-forward network (FFN) in all eight Transformer blocks with column attention . Ordinary causal attention lets each token look back at earlier tokens. Column attention lets that token use its own activations to decide how to mix its 512 channels.

Why this project exists

We want capable language models to run directly on personal computers and robots, with less reliance on cloud inference. A consumer GPU can have enough compute to run a model and still run out of memory for its weights. Moving weights from system RAM slows generation, and buying a GPU with more memory raises the cost of running a model locally.

If each token computes its own channel-mixing weights, can the model do more work per token and reach the same prediction quality with fewer parameters? We start with TinyStories and measure how well the model predicts the next token in a story after replacing every FFN.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.