Mechanistic Interpretability Visualizations
npm install circuitsvisMechanistic Interpretability visualizations in React.
View all available components in Storybook at
https://TransformerLensOrg.github.io/CircuitsVis .
First install the package:
``shell`
yarn add circuitsvis
Then import and use the visualizations directly:
`tsx
import { Hello } from "circuitsvis";
export function Demo() {
return
}
`
You can use this package directly from a CDN (e.g. unpkg) to render visualizations.
#### Modern ES Modules Approach
`html
`
#### ES6 Approach (supports more legacy browsers)
`html
crossorigin
src="https://unpkg.com/circuitsvis/dist/cdn/iife.js"
onload="onCircuitsVisLoad()"
>
``
See https://github.com/TransformerLensOrg/CircuitsVis for details of how to use this
library within a Python project.