"vscode:/vscode.git/clone" did not exist on "393c1399dc73fed4eb359b7dd1b4e7d04e3216a5"
Commit 6c328a16 authored by helloyongyang's avatar helloyongyang
Browse files

update some logs

parent a5a2e49d
...@@ -9,10 +9,16 @@ class GraphRunner: ...@@ -9,10 +9,16 @@ class GraphRunner:
self.compile() self.compile()
def compile(self): def compile(self):
logger.info("start compile...") logger.info("=" * 60)
logger.info("🚀 Starting Model Compilation - Please wait, this may take a while... 🚀")
logger.info("=" * 60)
with ProfilingContext4Debug("compile"): with ProfilingContext4Debug("compile"):
self.runner.run_step() self.runner.run_step()
logger.info("end compile...")
logger.info("=" * 60)
logger.info("✅ Model Compilation Completed ✅")
logger.info("=" * 60)
def run_pipeline(self): def run_pipeline(self):
return self.runner.run_pipeline() return self.runner.run_pipeline()
...@@ -360,7 +360,7 @@ class VideoGenerator: ...@@ -360,7 +360,7 @@ class VideoGenerator:
with ProfilingContext4Debug("step_pre"): with ProfilingContext4Debug("step_pre"):
self.model.scheduler.step_pre(step_index=step_index) self.model.scheduler.step_pre(step_index=step_index)
with ProfilingContext4Debug("infer"): with ProfilingContext4Debug("infer_main"):
self.model.infer(inputs) self.model.infer(inputs)
with ProfilingContext4Debug("step_post"): with ProfilingContext4Debug("step_post"):
......
...@@ -89,7 +89,7 @@ class WanCausVidRunner(WanRunner): ...@@ -89,7 +89,7 @@ class WanCausVidRunner(WanRunner):
self.model.scheduler.latents = self.model.scheduler.last_sample self.model.scheduler.latents = self.model.scheduler.last_sample
self.model.scheduler.step_pre(step_index=self.model.scheduler.infer_steps - 1) self.model.scheduler.step_pre(step_index=self.model.scheduler.infer_steps - 1)
with ProfilingContext4Debug("infer"): with ProfilingContext4Debug("infer_main"):
self.model.infer(self.inputs, kv_start, kv_end) self.model.infer(self.inputs, kv_start, kv_end)
kv_start += self.num_frame_per_block * self.frame_seq_length kv_start += self.num_frame_per_block * self.frame_seq_length
...@@ -108,7 +108,7 @@ class WanCausVidRunner(WanRunner): ...@@ -108,7 +108,7 @@ class WanCausVidRunner(WanRunner):
with ProfilingContext4Debug("step_pre"): with ProfilingContext4Debug("step_pre"):
self.model.scheduler.step_pre(step_index=step_index) self.model.scheduler.step_pre(step_index=step_index)
with ProfilingContext4Debug("infer"): with ProfilingContext4Debug("infer_main"):
self.model.infer(self.inputs, kv_start, kv_end) self.model.infer(self.inputs, kv_start, kv_end)
with ProfilingContext4Debug("step_post"): with ProfilingContext4Debug("step_post"):
......
...@@ -110,7 +110,7 @@ class WanSkyreelsV2DFRunner(WanRunner): # Diffustion foring for SkyReelsV2 DF I ...@@ -110,7 +110,7 @@ class WanSkyreelsV2DFRunner(WanRunner): # Diffustion foring for SkyReelsV2 DF I
with ProfilingContext4Debug("step_pre"): with ProfilingContext4Debug("step_pre"):
self.model.scheduler.step_pre(step_index=step_index) self.model.scheduler.step_pre(step_index=step_index)
with ProfilingContext4Debug("infer"): with ProfilingContext4Debug("infer_main"):
self.model.infer(self.inputs) self.model.infer(self.inputs)
with ProfilingContext4Debug("step_post"): with ProfilingContext4Debug("step_post"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment