Skip to content

Commit

Permalink
fix: replace list_files_info with list_repo_tree (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind authored May 3, 2024
1 parent 7047bcc commit 676062c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sae_lens/toolkit/pretrained_saes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Optional, Tuple

import torch
from huggingface_hub import hf_hub_download, list_files_info
from huggingface_hub import hf_hub_download, list_repo_tree
from safetensors import safe_open
from tqdm import tqdm

Expand Down Expand Up @@ -172,7 +172,7 @@ def get_gpt2_small_ckrk_attn_out_saes() -> dict[str, SparseAutoencoder]:
# list all files in repo
saes_weights = {}
sae_configs = {}
repo_files = list_files_info(REPO_ID)
repo_files = list_repo_tree(REPO_ID)
for i in tqdm(repo_files):
file_name = i.path
if file_name.endswith(".pt"):
Expand Down

0 comments on commit 676062c

Please sign in to comment.