Building "How LLMs Think" — Solving the challenge of making neural network architectures and ViTs actually intuitive

By (@thebuilderx) · · Websites

Building "How LLMs Think" — Solving the challenge of making neural network architectures and ViTs actually intuitive - image 1

Currently building an interactive, visually rich educational playground called How LLMs Think to make the inner workings of modern transformer architectures intuitive.
Rather than reading math heavy papers, this tool visualizes complex concepts like tokenization, high dimensional vector embeddings, and self attention using interactive 3D spaces and real time simulations.
### How it works focusing on the Vision and Multimodal Module

1. ViT Grid Patching: It slices preset or custom uploaded images into an 8 by 8 grid of 64 patches, mimicking how a Vision Transformer handles image segments like words in a sentence.

2. Dynamic Pixel Inspector: Hovering over any patch reveals its coordinates, raw color composition, and projects it into a 1D vector using the embedding formula: x_p equals Flatten(Patch) multiplied by W_E plus x_pos.

3. Attention Heatmaps: Users can toggle different attention heads focusing on Subject, Edges, or Background textures to see how the transformer directs its focus.

4. Multimodal Query Alignment: Users can query the image with a custom prompt, simulating how visual embeddings align with text tokens.

### How it simplifies the problem

Deep learning architectures like Vision Transformers are notoriously hard to visualize. By letting users drop in their own images, inspect individual patches, and manipulate attention weights in real time, it breaks down the complex pipeline of how pixels become tokens, vectors, and reasoning outputs into a hands on tactile experience.

### Status

Currently cleaning up responsive layout margins, polishing animations, and finishing the final modules. I want the experience to be flawless so I am not sharing the link just yet, but I will post the live URL and code repository here as soon as it is finished.

Tech stack

  • Claude
  • Claude Code

Prompt

Will share complete workflow soon after completing

Comments (3)

  1. Joshua ·

    This could make transformers way less intimidating for beginners.

  2. Lydia ·

    Interactive learning tools like this stick way better than static diagrams

  3. Shreya ·

    Being able to upload your own images is a really nice touch.

16 likes · 3 comments · 8 views

Explore more on Prompted