Skip to content

Commit

Permalink
add datafiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mht-sharma committed Oct 3, 2023
1 parent 8ee658d commit 8a2874b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimum/onnxruntime/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ def quantize(
def get_calibration_dataset(
self,
dataset_name: str,
data_files: str = None,
num_samples: int = 100,
dataset_config_name: Optional[str] = None,
dataset_split: Optional[str] = None,
Expand Down Expand Up @@ -525,6 +526,7 @@ def get_calibration_dataset(
calib_dataset = load_dataset(
dataset_name,
name=dataset_config_name,
data_files=data_files,
split=dataset_split,
use_auth_token=use_auth_token,
)
Expand Down

0 comments on commit 8a2874b

Please sign in to comment.