Skip to content

Commit

Permalink
extend ignore pattern to subfolders (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
ackizilkale authored Jan 15, 2025
1 parent bc44143 commit 7126975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clarifai/runners/utils/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def download_checkpoints(self, checkpoint_path: str):
repo_files = list_repo_files(repo_id=self.repo_id, token=self.token)
if any(f.endswith(".safetensors") for f in repo_files):
logger.info(f"SafeTensors found in {self.repo_id}, downloading only .safetensors files.")
ignore_patterns = ["original/*", "*.pth", "*.bin"]
ignore_patterns = ["**/original/*", "**/*.pth", "**/*.bin"]
snapshot_download(
repo_id=self.repo_id,
local_dir=checkpoint_path,
Expand Down

0 comments on commit 7126975

Please sign in to comment.