joaogante HF staff commited on
Commit
0368e4a
·
1 Parent(s): 3b0ae8d
Files changed (1) hide show
  1. src/calibration_datasets.py +1 -1
src/calibration_datasets.py CHANGED
@@ -124,7 +124,7 @@ class CalibrationDataset(ABC):
124
  """Load the Hugging Face dataset at `path`, using the provided kwargs."""
125
 
126
  print(f"Loading HF dataset {path} with params: {kwargs}")
127
- data: Dataset = load_dataset(path=path, streaming=True, num_proc=len(os.sched_getaffinity(0)), **kwargs)
128
 
129
  limit = limit and min(limit, len(data)) or len(data)
130
  return data.shuffle(seed=42).take(range(limit))
 
124
  """Load the Hugging Face dataset at `path`, using the provided kwargs."""
125
 
126
  print(f"Loading HF dataset {path} with params: {kwargs}")
127
+ data: Dataset = load_dataset(path=path, streaming=True, **kwargs)
128
 
129
  limit = limit and min(limit, len(data)) or len(data)
130
  return data.shuffle(seed=42).take(range(limit))