Skip to content
Open
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
8 changes: 4 additions & 4 deletions src/llmcompressor/pipelines/sequential/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ def __call__(
"""
session = active_session()

# prepare model for sequential onloading
dispatch_for_sequential(model)
model_device = get_execution_device(model)

# prepare to trace subgraphs
modifiers = session.lifecycle.recipe.modifiers
sequential_targets = get_sequential_targets(modifiers, model, dataset_args)
Expand All @@ -73,6 +69,10 @@ def __call__(
subgraphs = trace_subgraphs(model, sample_input, sequential_targets, ignore)
num_subgraphs = len(subgraphs)

# prepare model for sequential onloading
dispatch_for_sequential(model)
model_device = get_execution_device(model)

LifecycleCallbacks.calibration_epoch_start()

# TODO: remove this to enable quantization aware calibration
Expand Down
Loading