Skip to content

[ci] fix compilation CI. - #15092

Open
sayakpaul wants to merge 2 commits into
mainfrom
ci-compile-fix
Open

sayakpaul wants to merge 2 commits into
mainfrom
ci-compile-fix

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

@github-actions github-actions Bot added tests size/M PR with diff < 200 LOC labels Oct 21, 2026
"time_dim": 16,
"patch_size": (1, 2, 2),
"model_dim": 24,
"model_dim": 32,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To satisfy the requirements of Flex + compile.

raises=(torch._dynamo.exc.Unsupported, torch._dynamo.exc.RecompileError),
strict=True,
)
def test_compile_on_different_shapes(self):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can make it work with some modeling-level changes but not a priority for this model at the moment IMO.

@sayakpaul

Copy link
Copy Markdown
Member Author

/diffusers-bot pytest tests/models/autoencoders/test_models_autoencoder_mmaudio.py tests/models/autoencoders/test_models_kandinsky6_vocoder.py tests/models/latent_upscaler/test_models_kandinsky6_latent_upscaler.py tests/models/transformers/test_models_transformer_kandinsky6_sr.py

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

✅ pytest tests/models/autoencoders/test_models_autoencoder_mmaudio.py tests/models/autoencoders/test_models_kandinsky6_vocoder.py tests/models/latent_upscaler/test_models_kandinsky6_latent_upscaler.py tests/models/transformers/test_models_transformer_kandinsky6_sr.py passed on GPU — view logs.

pass
@pytest.mark.xfail(
condition=is_torch_version("<", "2.12"),
reason="torch < 2.12 cannot trace `AttentionBackendName(backend)` in `dispatch_attention_fn` in a full graph.",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we fix this in dispatch_attention_fn? Our min supported version is torch 2.6 so if this can be addressed in src, we should handle it.

@is_torch_compile
@require_accelerator
@require_accelerate
class BFLCompileTesterMixin(BFLConfigMixin, QuantizationCompileTesterMixin):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of a helper method, why not add a decoator here:

@pytest.mark.skipif(
    torch_device == "cuda" and torch.cuda.get_device_capability() < (8, 9),
    reason="torch.compile of BFL models needs FP8 support in Triton (compute capability 8.9+)",
)
class BFLCompileTesterMixin(BFLConfigMixin, QuantizationCompileTesterMixin):

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M PR with diff < 200 LOC tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants