Skip to content

Commit c7f8b12

Browse files
committed
Added an example that can compile on A40 with this PR but cannot under main
1 parent 2540824 commit c7f8b12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/apps/flux_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def compile_model(
6262
torch_dtype=torch.float16,
6363
).to(torch.float16)
6464

65+
pipe.transformer = FluxTransformer2DModel(
66+
num_layers=23, num_single_layers=10, guidance_embeds=True
67+
).to(torch.float16)
68+
6569
if args.low_vram_mode:
6670
pipe.enable_model_cpu_offload()
6771
else:

0 commit comments

Comments
 (0)