Skip to content

Commit

Permalink
Updating paths
Browse files Browse the repository at this point in the history
  • Loading branch information
SrGonao committed Nov 19, 2024
1 parent 0210e05 commit 903a86f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/latent_contexts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
" \n",
" feature_cfg = FeatureConfig(width=131072)\n",
" raw_dir = f\"raw_features/gemma/{sae_size}\"\n",
" experiment_cfg = ExperimentConfig(n_random=200,train_type=\"quantiles\",n_examples_train=40,n_quantiles=10,example_ctx_len=32)\n",
" experiment_cfg = ExperimentConfig(n_random=0,train_type=\"quantiles\",n_examples_train=40,n_quantiles=10,example_ctx_len=32)\n",
"\n",
" #module = f\".model.layers.{layer_name}.post_feedforward_layernorm\"\n",
" module = f\".model.layers.{layer_name}\"\n",
Expand Down Expand Up @@ -176,8 +176,8 @@
"\n",
" return all_examples, maximum_activations\n",
"\n",
"def plot_examples(layer_name=None,old=False):\n",
" all_examples, maximum_activations = load_examples(layer_name,old)\n",
"def plot_examples(layer_name=None,sae_size=\"131k\"):\n",
" all_examples, maximum_activations = load_examples(layer_name,sae_size)\n",
" keys = list(all_examples.keys())\n",
" \n",
" current_index = [0] # Use a list to store the current index so it can be modified in the callback\n",
Expand Down

0 comments on commit 903a86f

Please sign in to comment.