File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
src/llmcompressor/pipelines Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 1010from llmcompressor .modifiers .utils .pytorch_helpers import apply_pad_mask_to_batch
1111from llmcompressor .pipelines .registry import CalibrationPipeline
1212from llmcompressor .pytorch .utils .helpers import tensors_to_device
13- from llmcompressor .utils import (
14- calibration_forward_context ,
15- dispatch_for_generation ,
16- )
13+ from llmcompressor .utils import calibration_forward_context , dispatch_for_generation
1714
1815if TYPE_CHECKING :
1916 from llmcompressor .args .dataset_arguments import DatasetArguments
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ def __call__(
8888 # Optionally disable quantization
8989 if not dataset_args .quantization_aware_calibration or disable_qac :
9090 stack .enter_context (DisableQuantization (model ))
91- # Optionally disable lm_head
9291
9392 # prepare intermediates cache
9493 activations = IntermediatesCache .from_dataloader (dataloader , model_device )
You can’t perform that action at this time.
0 commit comments