Skip to content

Commit db2b74b

Browse files
committed
Revisit huggingface cache policy
Signed-off-by: elronbandel <[email protected]>
1 parent 49cd166 commit db2b74b

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/unitxt/api.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def load_dataset(
139139
dataset_query: Optional[str] = None,
140140
split: Optional[str] = None,
141141
streaming: bool = False,
142-
disable_cache: Optional[bool] = None,
142+
disable_cache: Optional[bool] = True,
143143
**kwargs,
144144
) -> Union[DatasetDict, IterableDatasetDict, Dataset, IterableDataset]:
145145
"""Loads dataset.
@@ -188,9 +188,6 @@ def load_dataset(
188188
if split is not None:
189189
stream = stream[split]
190190

191-
if disable_cache is None:
192-
disable_cache = settings.disable_hf_datasets_cache
193-
194191
if streaming:
195192
dataset = stream.to_iterable_dataset(
196193
features=UNITXT_DATASET_SCHEMA,

src/unitxt/loaders.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class LoadHF(Loader):
210210
Union[str, Sequence[str], Mapping[str, Union[str, Sequence[str]]]]
211211
] = None
212212
revision: Optional[str] = None
213-
streaming: bool = True
213+
streaming: bool = False
214214
filtering_lambda: Optional[str] = None
215215
num_proc: Optional[int] = None
216216
requirements_list: List[str] = OptionalField(default_factory=list)

src/unitxt/settings_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def __getattr__(self, key):
149149
settings.skip_artifacts_prepare_and_verify = (bool, False)
150150
settings.data_classification_policy = None
151151
settings.mock_inference_mode = (bool, False)
152-
settings.disable_hf_datasets_cache = (bool, True)
152+
settings.disable_hf_datasets_cache = (bool, False)
153153
settings.loader_cache_size = (int, 1)
154154
settings.task_data_as_text = (bool, True)
155155
settings.default_provider = "watsonx"

0 commit comments

Comments
 (0)