diff --git a/viz/src/SAEVisualizer.tsx b/viz/src/SAEVisualizer.tsx index 0ad4f11..99b9a66 100644 --- a/viz/src/SAEVisualizer.tsx +++ b/viz/src/SAEVisualizer.tsx @@ -34,13 +34,17 @@ const SHOW_MODEL_SELECTOR = false; interface FeatureListProps { config: { curated?: CuratedFeature[]; + plmLayer: number; numHiddenDims: number; + supportsCustomSequence?: boolean; }; + model: string; + setModel: (model: string) => void; feature: number; setFeature: (feature: number) => void; } -function FeatureList({ config, feature, setFeature }: FeatureListProps) { +function FeatureSidebar({ config, model, setModel, feature, setFeature }: FeatureListProps) { const { setOpenMobile } = useSidebar(); const handleFeatureChange = (feature: number) => { @@ -56,39 +60,86 @@ function FeatureList({ config, feature, setFeature }: FeatureListProps) { }, {} as Record); return ( - + + ); } @@ -121,58 +172,15 @@ function SAEVisualizer() { }); }, [config, selectedFeature]); - const handleFeatureChange = (newFeature: number) => { - setSelectedFeature(newFeature); - }; - return ( - - -
- -
- {SHOW_MODEL_SELECTOR && ( - - )} -
-

- This{" "} - - SAE - {" "} - was trained on layer {config.plmLayer} of{" "} - - ESM2-650M - {" "} - and has {config.numHiddenDims} hidden dimensions. Click on a feature below to - visualize its activation pattern. -

-
- - -
- - - -
+
{/* HACK to make the divider extend the entire width of the screen */}