Skip to content

Flux2klein pipeline part2#440

Open
amepas wants to merge 2 commits into
mainfrom
flux2klein-pipeline-part2
Open

Flux2klein pipeline part2#440
amepas wants to merge 2 commits into
mainfrom
flux2klein-pipeline-part2

Conversation

@amepas

@amepas amepas commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

This is part 2 of the Flux2 Klein onboarding - it contains the full end-to-end pipeline for inference w/ smoke tests and parity tests against CPU PyTorch (in both float32 and bfloat16 to isolate rounding errors vs. algorithmic issues).

This relies on pull request 439.

On a v7x (1x1x1), with batch-size 8, we achieve the following latency w/ splash attention. This timing is for the 9B model (both 4B and 9B are supported)

  • Model loading: 538s
  • Cold-start dry-run: 73s (compiling XLA)
  • E2E latency: 3.53s (0.45s / img)

The E2E latency after compilation is broken down into the following:

  • Prompt Encoding (Qwen3): 0.33s
  • Denoising Loop (Flux 4 steps): 2.96s
  • VAE Decoding (VAE): 0.24s

Future PRs will investigate faster model loading, cold-start and bringing down latency of inference

@amepas amepas requested a review from entrpn as a code owner July 8, 2026 07:01
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant