Skip to content

Commit 03f9ded

Browse files
author
Amit Raj
committed
Added tqdm for export and compile
Signed-off-by: Amit Raj <amitraj@qti.qualcommm.com>
1 parent 0a26f1b commit 03f9ded

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

QEfficient/diffusers/pipelines/flux/pipeline_flux.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from diffusers import FluxPipeline
1515
from diffusers.image_processor import VaeImageProcessor
1616
from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion import retrieve_timesteps
17+
from tqdm import tqdm
1718

1819
from QEfficient.diffusers.pipelines.pipeline_module import (
1920
QEffFluxTransformerModel,
@@ -161,7 +162,7 @@ def export(self, export_dir: Optional[str] = None) -> str:
161162
Returns:
162163
str: Path to the export directory
163164
"""
164-
for module_name, module_obj in self.modules.items():
165+
for module_name, module_obj in tqdm(self.modules.items(), desc="Exporting modules", unit="module"):
165166
# Get ONNX export configuration for this module
166167
example_inputs, dynamic_axes, output_names = module_obj.get_onnx_config()
167168

@@ -219,7 +220,7 @@ def compile(self, compile_config: Optional[str] = None) -> None:
219220
config_manager(self, config_source=compile_config)
220221

221222
# Compile each module with its specific configuration
222-
for module_name, module_obj in self.modules.items():
223+
for module_name, module_obj in tqdm(self.modules.items(), desc="Compiling modules", unit="module"):
223224
module_config = self.custom_config["modules"]
224225
specializations = module_config[module_name]["specializations"]
225226
compile_kwargs = module_config[module_name]["compilation"]

0 commit comments

Comments
 (0)