Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions tests/e2e/online_serving/test_flux_2_dev_expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
End-to-end diffusion coverage for FLUX.2-dev in online serving mode.

Coverage:
- Cache-DiT cache acceleration backend
- CPU offload

This test verifies that FLUX.2-dev can be launched with the Cache-DiT backend
and CPU offload enabled, accepts text-to-image requests through the
OpenAI-compatible API, and returns valid generated images with the requested
resolution.
This test verifies that FLUX.2-dev can be launched with CPU offload enabled,
accepts text-to-image requests through the OpenAI-compatible API, and returns
valid generated images with the requested resolution.

assert_diffusion_response validates successful generation and the expected
image resolution.
Expand All @@ -32,19 +30,17 @@


def _get_flux_2_dev_feature_cases(model: str):
"""Return FLUX.2-dev diffusion feature cases for Cache-DiT + CPU offload."""
"""Return FLUX.2-dev diffusion feature cases for CPU offload."""

return [
pytest.param(
OmniServerParams(
model=model,
server_args=[
"--cache-backend",
"cache_dit",
"--enable-cpu-offload",
],
),
id="cache_dit_cpu_offload",
id="cpu_offload",
marks=SINGLE_CARD_FEATURE_MARKS,
),
]
Expand All @@ -61,7 +57,7 @@ def test_flux_2_dev(
omni_server: OmniServer,
openai_client: OpenAIClientHandler,
):
"""Validate FLUX.2-dev online serving with Cache-DiT and CPU offload."""
"""Validate FLUX.2-dev online serving with CPU offload."""

messages = dummy_messages_from_mix_data(content_text=PROMPT)

Expand Down