ishamf.dev

ishamf.dev — interactive visualization of the attention mechanism in transformer-based LLMs.

Working when we checked on .

Visit ishamf.dev

What is ishamf.dev?

ishamf.dev publishes the LLM Attention Visualizer, an interactive browser tool that visualizes how attention works inside transformer-based large language models during text generation. Users can tap or hover over generated tokens to see which previous tokens influenced them, with attention weights (scaled by value-vector magnitude, aggregated across heads and layers) controlling token opacity. It runs as a React app using Transformers.js with a small Qwen3 0.6B parameter model, and includes pre-generated prompts such as an Office Move Summary and a Debugging an Average Function example. It is aimed at people trying to build intuition about how LLMs attend to and copy from earlier context.

ishamf.dev pricing

Pricing model: Free

Free

ishamf.dev pros

  • Interactive hover/tap visualization of attention weights per generated token
  • Runs in the browser using Transformers.js with a Qwen3 0.6B model
  • Includes pre-generated prompts that load instantly without model download
  • Shows patterns like verbatim copying and information combination across phrases
  • Source code is available in a public GitHub repo
  • Instrumented ONNX model published on Hugging Face

ishamf.dev cons

  • Visualization is highly simplified, reducing each past token to one numeric value
  • Browser generation requires downloading a model that is hundreds of megabytes
  • Uses only a small 600 million parameter model, not larger LLMs
  • The interactive JavaScript widget requires JavaScript and may fail to load

Frequently asked questions about ishamf.dev

What does the LLM Attention Visualizer do?

It visualizes the attention mechanism in transformer-based LLMs during generation. Users can tap or hover over generated tokens to see which past tokens influenced their generation, with opacity controlled by aggregated attention weights.

Which model does the tool use?

It uses Qwen3-0.6B, a roughly 600 million parameter model, loaded through Transformers.js in the browser. An instrumented ONNX version of the model is hosted on the author's Hugging Face repo.

How is the attention influence calculated?

It computes the attention weight scaled by the magnitude of the value vector, aggregated across all attention heads and summed across all layers. The largest values get an opacity of 1 and the rest are interpolated. This is a highly simplified view.

Does it run in the browser?

Yes, it is a React app that uses Transformers.js to generate text client-side. Pre-generated prompts are also provided so they can be viewed instantly without waiting for the model to download.

Who is this tool for?

It is for people learning about or curious how LLM attention works, such as those wanting intuition for why models can copy text verbatim with low error rates.

Why can the model copy text so accurately?

Because the model has access to all past tokens and can decide which ones to draw from when copying, the probability of errors can be very low. Even the small 0.6B model can reproduce an entire JS function with an intended modification.

What example prompts are included?

Examples include an Office Move Summary and a Debugging an Average Function prompt. Hovering over copied text like addresses or dates shows the source tokens standing out.

Is the code open source?

Yes, the code is available in the GitHub repo ishamf/llm-visualizer, and the instrumented ONNX model is published on Hugging Face.

Are there any limitations?

Yes. The visualization is highly simplified, throwing away a lot of information to reduce each past token to one numeric value. Browser generation also requires downloading a model that is hundreds of megabytes.

How much does it cost to use?

No pricing is shown on the page. The tool is freely accessible on the author's site, and its code is available in a public GitHub repo.

Categories

Use cases

Alternatives to ishamf.dev

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z