Skip to content

Commit

Permalink
Disable cache in downloading dataset (#20)
Browse files Browse the repository at this point in the history
The cluster seems to have a corrupted copy of ag_news, so to ensure that no problem happens I'll disable the cache (it would be better to fix the problem, but it's a solo project)
  • Loading branch information
Markel authored May 2, 2024
1 parent d18abc4 commit bd08601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dataset/base_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def __init__(self, dataset_name: str) -> None:
local_dir = "./downloads/datasets/"+dataset_name
if not os.path.isdir(local_dir):
logger.info("Downloading the dataset from the internet.")
snapshot_download(dataset_name, local_dir=local_dir, repo_type="dataset")
snapshot_download(dataset_name, local_dir=local_dir,
repo_type="dataset", local_dir_use_symlinks=False)
logger.debug("Dataset downloaded successfully.")

def __str__(self):
Expand Down

0 comments on commit bd08601

Please sign in to comment.