From e54b32c5fbc7178b8e6258c42348ecb23027ea47 Mon Sep 17 00:00:00 2001 From: Ella Charlaix Date: Mon, 17 Jun 2024 12:12:25 +0200 Subject: [PATCH] Remove trust remove code for predefined datasets --- optimum/intel/openvino/quantization.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/optimum/intel/openvino/quantization.py b/optimum/intel/openvino/quantization.py index 37cc0a500e..3c3b751b90 100644 --- a/optimum/intel/openvino/quantization.py +++ b/optimum/intel/openvino/quantization.py @@ -757,9 +757,6 @@ def transform_fn(data_item): dataset_metadata = PREDEFINED_SD_DATASETS[dataset_name] datasets_kwargs = {"split": dataset_metadata["split"], "streaming": True} - if is_datasets_version(">=", "2.20.0"): - datasets_kwargs["trust_remote_code"] = True - dataset = load_dataset(dataset_name, **datasets_kwargs).shuffle(seed=self.seed) input_names = dataset_metadata["inputs"]