Skip to content

gamedevCloudy/attention-visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Attention Visualization

Visualize attention matrices from DistilBERT. It performs inference, caches outputs, and renders an interactive D3.js heatmap with tooltips.

Screenshot

Setup

  1. Backend:

    • Install dependencies: pip install flask flask-cors torch transformers
    • Run the Flask app: python backend/app.py
  2. Frontend:

    • Open index.html in a browser (served at http://127.0.0.1:5500) - use live server.

Enjoy exploring attention data!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published