Skip to content

Commit fbd1f64

Browse files
author
Ann Kuruvilla
committed
Format
Signed-off-by: Ann Kuruvilla <akuruvil@qti.qualcomm.com>
1 parent 6887919 commit fbd1f64

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

QEfficient/finetune/experimental/core/dataset.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ def _initialize_dataset(self):
144144
db = load_dataset_builder(self.dataset_name, **load_kwargs)
145145
except Exception as e:
146146
raise RuntimeError(
147-
f"Failed to load dataset builder for '{self.dataset_name}': {e}. "
148-
"Please check the dataset name and your network connection."
149-
)
147+
f"Failed to load dataset builder for '{self.dataset_name}': {e}. "
148+
"Please check the dataset name and your network connection."
149+
)
150150
available_splits = []
151151
if db.info.splits is not None:
152152
available_splits = list(db.info.splits.keys())
@@ -161,9 +161,9 @@ def _initialize_dataset(self):
161161
self.dataset = load_dataset(self.dataset_name, split=load_split, **load_kwargs)
162162
except Exception as e:
163163
raise RuntimeError(
164-
f"Failed to load dataset '{self.dataset_name}' with split '{load_split}': {e}. "
165-
"Please verify the dataset exists and is accessible."
166-
)
164+
f"Failed to load dataset '{self.dataset_name}' with split '{load_split}': {e}. "
165+
"Please verify the dataset exists and is accessible."
166+
)
167167
self.dataset = self.dataset.shuffle(seed=self.seed)
168168
if self.dataset_disc_style:
169169
available_styles = set(self.dataset["category"])

0 commit comments

Comments
 (0)