Skip to content

Commit

Permalink
ignore type incorrectness in imported package
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom-md committed Apr 2, 2024
1 parent 901b888 commit 5fe83a9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sae_analysis/neuronpedia_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@

# set TOKENIZERS_PARALLELISM to false to avoid warnings
os.environ["TOKENIZERS_PARALLELISM"] = "false"
import json
import time

import numpy as np
import torch
from matplotlib import colors
from sae_vis.data_fetching_fns import get_feature_data
from sae_vis.data_storing_fns import FeatureVisParams
from tqdm import tqdm

import numpy as np
from sae_training.utils import LMSparseAutoencoderSessionloader
import json

from matplotlib import colors

OUT_OF_RANGE_TOKEN = "<|outofrange|>"

Expand Down Expand Up @@ -381,7 +380,7 @@ def run(self):
posContribs.append(posContrib)
negContrib = {}
negTokens = [
self.to_str_tokens_safe(vocab_dict, j)
self.to_str_tokens_safe(vocab_dict, j) # type: ignore
for j in sd.bottom5_token_ids[i]
]
if len(negTokens) > 0:
Expand Down

0 comments on commit 5fe83a9

Please sign in to comment.