Skip to content

Commit

Permalink
using ~/.cache/huggingface instead of ./data/cache
Browse files Browse the repository at this point in the history
  • Loading branch information
srivarra committed Feb 17, 2024
1 parent a7c69fd commit d310679
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
cache-name: dataset
with:
path: ./data/cache/
path: ~/.cache/huggingface/datasets
key: huggingface-${{env.cache-name}}
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand Down
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def dataset_cache_dir() -> Iterator[Union[str, None]]:
# Change cache directory if running on CI
if os.environ.get("CI", None):
cache_dir = pathlib.Path("./data/cache/")
cache_dir = pathlib.Path("~/.cache/huggingface/datasets").expanduser()
else:
cache_dir = None
yield cache_dir
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/example_dataset_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def dataset_download(request, dataset_cache_dir) -> Iterator[ExampleDataset]:
Iterator[ExampleDataset]: The iterable Example Dataset.
"""
# Set up ExampleDataset class
example_dataset: ExampleDataset = ExampleDataset(
example_dataset = ExampleDataset(
dataset=request.param,
cache_dir=dataset_cache_dir,
revision=EXAMPLE_DATASET_REVISION
Expand Down

0 comments on commit d310679

Please sign in to comment.