Skip to content

Commit 001ea85

Browse files
committed
fix(flux2klein): use dynamic joint_attention_dim in AOT graph compilation for 4B and 9B
1 parent abfe781 commit 001ea85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/pipelines/flux/flux2klein_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def compile_aot_async(self, params, vae_params, qwen3_params, batch_size=1, heig
119119

120120
dummy_latents = jnp.zeros((batch_size, seq_len_img, 128), dtype=jnp.float32)
121121
dummy_img_ids = jnp.zeros((batch_size, seq_len_img, 4), dtype=jnp.int32)
122-
dummy_prompt_embeds = jnp.zeros((batch_size, seq_len_txt, 12288), dtype=jnp.bfloat16)
122+
dummy_prompt_embeds = jnp.zeros((batch_size, seq_len_txt, self.transformer.joint_attention_dim), dtype=jnp.bfloat16)
123123
dummy_txt_ids = jnp.zeros((batch_size, seq_len_txt, 4), dtype=jnp.float32)
124124
dummy_t_vec = jnp.zeros((batch_size,), dtype=jnp.float32)
125125

0 commit comments

Comments
 (0)