aapot
commited on
Commit
•
daa4cb1
1
Parent(s):
d2f0aae
fix
Browse files- EasyLM/data.py +2 -0
EasyLM/data.py
CHANGED
@@ -217,6 +217,8 @@ class HuggingfaceDataset(object):
|
|
217 |
if self._eval_dataset:
|
218 |
break
|
219 |
else:
|
|
|
|
|
220 |
self._dataset_loc = 0
|
221 |
self._train_epochs += 1
|
222 |
|
|
|
217 |
if self._eval_dataset:
|
218 |
break
|
219 |
else:
|
220 |
+
if self._train_epochs == 0:
|
221 |
+
self._dataset = self._dataset.shuffle(seed=42, buffer_size=10000)
|
222 |
self._dataset_loc = 0
|
223 |
self._train_epochs += 1
|
224 |
|