Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom-md committed Mar 10, 2024
1 parent b2478c1 commit 951a320
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sae_analysis/dashboard_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import plotly
import plotly.express as px
import torch
import wandb
from torch.nn.functional import cosine_similarity
from tqdm import tqdm

import wandb
from sae_analysis.visualizer.data_fns import get_feature_data
from sae_training.utils import LMSparseAutoencoderSessionloader

Expand Down
1 change: 1 addition & 0 deletions sae_training/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Any, Optional, cast

import torch

import wandb


Expand Down
2 changes: 1 addition & 1 deletion sae_training/evals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import pandas as pd
import torch
import wandb
from tqdm import tqdm
from transformer_lens import HookedTransformer
from transformer_lens.utils import get_act_name

import wandb
from sae_training.activations_store import ActivationsStore
from sae_training.sparse_autoencoder import SparseAutoencoder

Expand Down
1 change: 0 additions & 1 deletion sae_training/lm_runner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Any, cast

import wandb

from sae_training.config import LanguageModelSAERunnerConfig

# from sae_training.activation_store import ActivationStore
Expand Down
2 changes: 1 addition & 1 deletion sae_training/toy_model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import einops
import torch
import wandb

import wandb
from sae_training.sparse_autoencoder import SparseAutoencoder
from sae_training.toy_models import Config as ToyConfig
from sae_training.toy_models import Model as ToyModel
Expand Down
2 changes: 1 addition & 1 deletion sae_training/train_sae_on_language_model.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from typing import Any, cast

import torch
import wandb
from torch.optim import Adam
from tqdm import tqdm
from transformer_lens import HookedTransformer

import wandb
from sae_training.activations_store import ActivationsStore
from sae_training.evals import run_evals
from sae_training.geom_median.src.geom_median.torch import compute_geometric_median
Expand Down
2 changes: 1 addition & 1 deletion sae_training/train_sae_on_toy_model.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Any, cast

import torch
import wandb
from torch.utils.data import DataLoader
from tqdm import tqdm

import wandb
from sae_training.sparse_autoencoder import SparseAutoencoder


Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_dashboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import plotly
import plotly.express as px
import torch
import wandb
from torch.nn.functional import cosine_similarity
from tqdm import tqdm

import wandb
from sae_analysis.visualizer.data_fns import get_feature_data
from sae_training.utils import LMSparseAutoencoderSessionloader

Expand Down

0 comments on commit 951a320

Please sign in to comment.