Skip to content

Commit a7af9ca

Browse files
committed
fix check
1 parent 3b9e2c2 commit a7af9ca

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/llmcompressor/pipelines/basic/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __call__(
4747
with contextlib.ExitStack() as stack:
4848
stack.enter_context(calibration_forward_context(model))
4949

50-
if dataset_args.calibrate_moe_context:
50+
if dataset_args is not None and dataset_args.calibrate_moe_context:
5151
moe_calibration_context(model, stack)
5252

5353
for batch in tqdm.tqdm(dataloader, desc="Calibrating"):

src/llmcompressor/pipelines/sequential/pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def __call__(
3131
model: torch.nn.Module,
3232
dataloader: DataLoader,
3333
dataset_args: "DatasetArguments",
34-
calibrate_moe_context: bool = False,
3534
):
3635
"""
3736
Run a sequential data pipeline according to the following steps:

0 commit comments

Comments
 (0)