Skip to content

Visualizing query-key interactions in language + vision transformers

License

Notifications You must be signed in to change notification settings

dan255/attention-viz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

attention-viz

Visualizing query-key interactions in language + vision transformers

set up instructions

  1. Clone repo and navigate into folder:
git clone https://github.com/catherinesyeh/attention-viz.git
cd attention-viz
  1. Ask Catherine for data folder. It should be included in the web folder like so:

image

  1. Navigate to back end:
cd web/back/
  1. Create virtual env and activate:
python3 -m venv env
source env/bin/activate
  1. Install requirements:
pip3 install -r requirements.txt
  1. Start back end:
python3 run.py
  1. Navigate to front end:
cd ../front
  1. Install necessary packages and start front end:
npm i
npm run serve
  1. The interface should be running at: http://localhost:8561

About

Visualizing query-key interactions in language + vision transformers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%