Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tensorrt_llm/quantization/quantize_by_modelopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ def get_calib_dataloader(dataset_name_or_dir="cnn_dailymail",
dataset = dataset.select(range(calib_size))
elif "cnn_dailymail" in dataset_name_or_dir or _is_cnn_dailymail_local_repo(
dataset_name_or_dir):
# Bare "cnn_dailymail" id is rejected by newer huggingface_hub; use the namespaced repo.
if dataset_name_or_dir == "cnn_dailymail":
dataset_name_or_dir = "abisee/cnn_dailymail"
dataset = load_dataset(
dataset_name_or_dir,
name="3.0.0",
Expand Down Expand Up @@ -1154,6 +1157,9 @@ def get_nemo_calib_dataloader(dataset_name_or_dir="cnn_dailymail",
text_column = "text"
elif "cnn_dailymail" in dataset_name_or_dir or _is_cnn_dailymail_local_repo(
dataset_name_or_dir):
# Bare "cnn_dailymail" id is rejected by newer huggingface_hub; use the namespaced repo.
if dataset_name_or_dir == "cnn_dailymail":
dataset_name_or_dir = "abisee/cnn_dailymail"
dataset = load_dataset(dataset_name_or_dir,
name="3.0.0",
split="train",
Expand Down
Loading