Text Generation
Transformers
Safetensors
Finnish
llama
finnish
conversational
text-generation-inference
aapot commited on
Commit
daa4cb1
1 Parent(s): d2f0aae
Files changed (1) hide show
  1. 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