|
14 | 14 | from diffusers import FluxPipeline |
15 | 15 | from diffusers.image_processor import VaeImageProcessor |
16 | 16 | from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion import retrieve_timesteps |
| 17 | +from tqdm import tqdm |
17 | 18 |
|
18 | 19 | from QEfficient.diffusers.pipelines.pipeline_module import ( |
19 | 20 | QEffFluxTransformerModel, |
@@ -161,7 +162,7 @@ def export(self, export_dir: Optional[str] = None) -> str: |
161 | 162 | Returns: |
162 | 163 | str: Path to the export directory |
163 | 164 | """ |
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"): |
165 | 166 | # Get ONNX export configuration for this module |
166 | 167 | example_inputs, dynamic_axes, output_names = module_obj.get_onnx_config() |
167 | 168 |
|
@@ -219,7 +220,7 @@ def compile(self, compile_config: Optional[str] = None) -> None: |
219 | 220 | config_manager(self, config_source=compile_config) |
220 | 221 |
|
221 | 222 | # 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"): |
223 | 224 | module_config = self.custom_config["modules"] |
224 | 225 | specializations = module_config[module_name]["specializations"] |
225 | 226 | compile_kwargs = module_config[module_name]["compilation"] |
|
0 commit comments