Skip to content

Commit 22367e2

Browse files
committed
Added logging for model details
1 parent 6a7e4a2 commit 22367e2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/maxdiffusion/generate_wan.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,15 @@ def run(config, pipeline=None, filename_prefix=""):
168168
)
169169

170170
videos = call_pipeline(config, pipeline, prompt, negative_prompt)
171-
171+
print("===================== Model details =======================")
172+
print("model name: ", config.model_name)
173+
print("model path: ", config.pretrained_model_name_or_path)
174+
print("model type: t2v")
175+
print("hardware: ", jax.devices()[0].platform)
176+
print("number of devices: ", jax.device_count())
177+
print("per_device_batch_size: ", config.per_device_batch_size)
178+
print("============================================================")
179+
172180
compile_time = time.perf_counter() - s0
173181
print("compile_time: ", compile_time)
174182
if writer and jax.process_index() == 0:

0 commit comments

Comments
 (0)