Skip to content
Open
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion src/llmcompressor/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def format_calibration_data(
num_calibration_samples: int | None = None,
do_shuffle: bool = True,
collate_fn: Callable = default_data_collator,
) -> list[torch.Tensor]:
) -> DataLoader:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

With this change, the function's docstring is now inconsistent with the return type hint. The :return: description on line 141 still describes the old return type (list of trimmed calibration data tensors). Please update the docstring to reflect that a DataLoader is returned to maintain consistency.

"""
Creates a dataloader out of the calibration dataset split, trimming it to
the desired number of calibration samples
Expand Down
Loading