yizhe-ang / interactive-transformer

A visual interface for understanding and interpreting Transformers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Interactive Transformer

🚧 work in progress 🚧

interactive_transformer_demo.mp4

Setup

git clone https://github.com/yizhe-ang/interactive-transformer.git

Launch Backend

cd python

Install Python environment

poetry install

For non-CUDA CPU version, additionally run:

poetry source add -p explicit pytorch https://download.pytorch.org/whl/cpu
poetry add --source pytorch torch torchvision

Launch the backend server

poetry shell

uvicorn main:app --reload

Launch Application

cd svelte

Install dependencies

npm install --force

Launch application

npm run dev

The application will run by default on http://localhost:5173/

About

A visual interface for understanding and interpreting Transformers


Languages

Language:Svelte 56.9%Language:JavaScript 31.1%Language:TypeScript 6.4%Language:Python 3.8%Language:CSS 1.5%Language:HTML 0.3%