llmcompressor.pipelines.basic.pipeline
BasicPipeline
Bases: CalibrationPipeline
Source code in src/llmcompressor/pipelines/basic/pipeline.py
__call__(model, dataloader, dataset_args)
staticmethod
Run a basic data pipeline.
Batches are fetched from the data loader and are used to perform forward passes through the model. This pipeline is typically used for basic model calibration and, unlike the sequential pipelines, does not propagate compression error when used to calibrate model compression
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model | Module | model being calibrated | required |
dataloader | DataLoader | loads data for calibration | required |
dataset_args | Union[DatasetArguments, None] | dataset arguments relevant to pipelines | required |