Spaces:
Paused
Paused
nit
Browse files
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,
|
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))
|