bbycroft/llm-viz

3D Visualization of an GPT-style LLM

What it solves

It provides a way to visualize the internal workings of a GPT-style Large Language Model (LLM) in 3D, making the abstract process of inference more tangible and understandable.

How it works

The project implements a 3D interactive renderer that displays the network topology used in models like GPT-2 and GPT-3. It can visualize a tiny network (using weights from Andrej Karpathy's minGPT) that sorts letters, as well as larger networks like gpt2, though the weights for larger models are not pre-downloaded due to their size.

Who it’s for

People interested in understanding the architectural structure and data flow of transformer-based LLMs through interactive visualization.

Highlights

  • 3D interactive model of a GPT-style network.
  • Visualizes the network topology used in OpenAI's GPT-2 and GPT-3.
  • Supports visualizing arbitrary sized networks.
  • Includes a working demo using a tiny network that sorts letters.

Related

  • Project
  • Dispatch
  • Project
  • Dispatch
  • Project