프로젝트
GitHub에서 보기
brayevalerien/Flux.1-Architecture-Diagram
소개
A detailed diagram laying out the full Flux.1 [dev] architecture as shared by Black Forest Labs at https://github.com/black-forest-labs/flux.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFlux.1-Architecture-Diagram
A detailed diagram laying out the full Flux.1 [dev] architecture as shared by Black Forest Labs, broken down to single ML blocks.

(open the file to view it zoomed in, or use the PDF)
The diagram is written in Typst with CeTZ, every figure has its own file in diagram/. To rebuild it:
typst compile diagram/flux_architecture_diagram.typ flux_architecture_diagram.png --ppi 200
The first draft made with draw.io is still in flux_architecture_diagram.drawio.
A few things worth noticing
- the 19 DoubleStream blocks keep separate weights for the text and the image, the two streams only meet inside the attention. After them the tokens are concatenated (text first) and go through 38 SingleStream blocks
- the SingleStream blocks run attention and MLP in parallel out of one fused Linear, then merge both with a second Linear
vecis the sum of three MLP embeddings (timestep, guidance and the pooled CLIP vector), every block computes its own modulation from it with a SiLU then a Linear- the guidance is distilled into an embedding, so each sampling step is a single forward pass with no CFG
- the T5 prompt is always padded to 512 tokens and the padding is never masked
- RoPE has 3 axes (16, 56 and 56 dims) and rotates interleaved pairs of dimensions, all the text tokens sit at position 0 and the first axis is only used by Kontext
- the latent has 16 channels, it is shifted (0.1159) and scaled (0.3611) then packed 2×2 into 64 channel tokens
- the sampling schedule is shifted toward high noise, more so for larger images
References
- Flux.1 source code
- @nrehiew original diagram (latter reposted on Reddit by u/pppodong)
- Tensor shapes calculations: Pytorch documentation
- Original paper that inspired the SingleStream blocks: Dehghani et al., Scaling Vision Transformers to 22 Billion Parameters, 2023
관련 프로젝트 살펴보기
불러오는 중…