◀ 上一页
1 / 5
下一页 ▶
FLUX.1 Schnell 宏观架构
从条件编码、完整 denoiser 到 VAE 解码;关键 shape 均取自 FLUX1-SCHNELL-FULL 的实测记录。
1. FLUX.1 Schnell 宏观架构
从条件编码、完整 denoiser 到 VAE 解码;关键 shape 均取自 FLUX1-SCHNELL-FULL 的实测记录。
FLUX1-SCHNELL-FULL
Prompt
token IDs
CLIP-L
T5-XXL
完整文本编码器
[1, 512, 4096]
Noisy latent / tokens
batch = 1
[1, 4096, 64]
Timestep / Guidance
shape 等价 denoiser step
[1]
FLUX Transformer
19 double + 38 single blocks
完整生产层数,未折叠
[1, 4096, 64]
VAE Decoder
latent → pixels
[1, 3, 1024, 1024]
Final image
[1, 3, 1024, 1024]
ACTUAL-CUDA-FULL-TOPOLOGY
BF16 · NVIDIA A100-SXM4-40GB · native 1024² · 1 shape-equivalent denoiser timestep
条件编码与分支组装
保留所有实际执行的文本与图像条件分支;输出 shape 与 merge 方式分别标注。
2. 条件编码与分支组装
保留所有实际执行的文本与图像条件分支;输出 shape 与 merge 方式分别标注。
FLUX1-SCHNELL-FULL
CLIP-L
Layers ×12
hidden 768 · heads 12
[1, 768]
T5-XXL
Layers ×24
hidden 4096 · heads 64
[1, 512, 4096]
Dual condition merge
sequence condition + pooled/global condition
[1, 512, 4096]
ACTUAL-CUDA-FULL-TOPOLOGY
BF16 · NVIDIA A100-SXM4-40GB · native 1024² · 1 shape-equivalent denoiser timestep
完整 FLUX Transformer 拓扑
Double-stream 与 Single-stream 均保留完整层数;分支条件与状态转换按实际执行路径展示。
3. 完整 FLUX Transformer 拓扑
Double-stream 与 Single-stream 均保留完整层数;分支条件与状态转换按实际执行路径展示。
FLUX1-SCHNELL-FULL
Packed image tokens
token width 64
hidden 3072
[1, 4096, 64]
Double-stream Block
image stream + text stream
heads 24×128
modulated joint attention + MLP
完整执行 ×19
Single-stream Block
merged sequence
attention + gated MLP
residual update
完整执行 ×38
Project / Unpack
keep noisy tokens
[1, 4096, 64]
Text condition
joint dim 4096
[1, 512, 4096]
ACTUAL-CUDA-FULL-TOPOLOGY
BF16 · NVIDIA A100-SXM4-40GB · native 1024² · 1 shape-equivalent denoiser timestep
FLUX Block 微观结构与任务条件
Double-stream / Single-stream 的职责分开呈现,编辑、填充与缓存路径不混为 base。
4. FLUX Block 微观结构与任务条件
Double-stream / Single-stream 的职责分开呈现,编辑、填充与缓存路径不混为 base。
FLUX1-SCHNELL-FULL
Double-stream block
Modulate image + text streams
Joint multi-head attention
separate QKV, shared attention
Per-stream MLP
Residual update
Single-stream / task branch
Merge image + text sequence
Attention + gated MLP
Keep noisy-image token range
CLIP pooled condition 与 T5 token condition 同时进入 double-stream blocks。
ACTUAL-CUDA-FULL-TOPOLOGY
BF16 · NVIDIA A100-SXM4-40GB · native 1024² · 1 shape-equivalent denoiser timestep
VAE 边界与运行证据
VAE 仅把运行中真实执行的 Encode/Decode 标为 ACTUAL-CUDA;中间通道阶梯来自固定配置。
5. VAE 边界与运行证据
VAE 仅把运行中真实执行的 Encode/Decode 标为 ACTUAL-CUDA;中间通道阶梯来自固定配置。
FLUX1-SCHNELL-FULL
Denoised latent
actual denoiser output
[1, 4096, 64]
VAE Decoder
MidBlock + UpDecoder ×4
spatial upsample ×8
[1, 3, 1024, 1024]
Pixel output
native 1024²
[1, 3, 1024, 1024]
STATIC-CONFIG 通道阶梯:512 → 512 → 256 → 128;latent_channels=16
Trace evidence
实例化参数合计
16.993B
峰值 CUDA allocated
22.62 GiB
行级 shape
2,892 rows / 83,791 hits
模块级 shape
1,928 rows / 1,941 hits
运行边界
native 1024² · batch 1
确定性有限 BF16 占位参数
结构/shape 学习证据;不代表生成质量
ACTUAL-CUDA-FULL-TOPOLOGY
BF16 · NVIDIA A100-SXM4-40GB · native 1024² · 1 shape-equivalent denoiser timestep