How LLMs work

What happens inside a language model: from the attention mechanism to the AI's hidden scratchpad.

3 papers · 28 takeaways · AI Safety · Prompting

Start reading →
  1. Key takeaway #1

    There's a way for AI to understand your whole text at once. And it isn't a bigger computer.

    It's one idea from 2017: stop reading in order. Once you see how it works, you'll write prompts the model gets right away.

    From the paper: Attention Is All You Need · Ashish Vaswani et al. · 2023

    Story · 10 takeawaysViews: –Summary
  2. Key takeaway #2

    AI has a scratchpad. You can look into it before the answer arrives.

    The finished text isn't the whole story. See in the cards how J-lens lets you peek at what a model plans to write before it writes it.

    From the paper: Verbalizable Representations Form a Global Workspace in Language Models · Wes Gurnee et al. · 2026

    9 takeawaysViews: –Summary
  3. Key takeaway #3

    A Polish 11B model in about 3 GB. Yes, it can shrink that far.

    An expensive server graphics card isn't your only option. Meet the 2-bit compression that can fit Bielik into the RAM of an ordinary laptop.

    From the paper: Bielik-Q2-Sharp: A Comparative Study of Extreme 2-bit Quantization Methods for a Polish 11B Language Model · Jakub Prejzner · 2026

    9 takeawaysViews: –Summary