Image-Text-to-Video
MiniMax H3
Diffusers
Safetensors
GGUF
English
Chinese
hyperflow-h3
audio-video-generation
text-to-video
image-to-video
reference-to-video
few-step
int8
bf16
comfyui
stable-diffusion.cpp
unsloth
Instructions to use VideoRebirthAI/hyperflow-h3-flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Desktop
Add the unquantized BF16 transformers (fl2va_bf16/, ref2va_bf16/)
Browse files- fl2va_bf16/config.json +139 -0
- fl2va_bf16/diffusion_pytorch_model-00001-of-00006.safetensors +3 -0
- fl2va_bf16/diffusion_pytorch_model-00002-of-00006.safetensors +3 -0
- fl2va_bf16/diffusion_pytorch_model-00003-of-00006.safetensors +3 -0
- fl2va_bf16/diffusion_pytorch_model-00004-of-00006.safetensors +3 -0
- fl2va_bf16/diffusion_pytorch_model-00005-of-00006.safetensors +3 -0
- fl2va_bf16/diffusion_pytorch_model-00006-of-00006.safetensors +3 -0
- fl2va_bf16/diffusion_pytorch_model.safetensors.index.json +715 -0
- fl2va_bf16/hyperflow_h3_flash_int8.py +410 -0
- fl2va_bf16/hyperflow_h3_flash_transformer.py +403 -0
- ref2va_bf16/config.json +149 -0
- ref2va_bf16/diffusion_pytorch_model-00001-of-00006.safetensors +3 -0
- ref2va_bf16/diffusion_pytorch_model-00002-of-00006.safetensors +3 -0
- ref2va_bf16/diffusion_pytorch_model-00003-of-00006.safetensors +3 -0
- ref2va_bf16/diffusion_pytorch_model-00004-of-00006.safetensors +3 -0
- ref2va_bf16/diffusion_pytorch_model-00005-of-00006.safetensors +3 -0
- ref2va_bf16/diffusion_pytorch_model-00006-of-00006.safetensors +3 -0
- ref2va_bf16/diffusion_pytorch_model.safetensors.index.json +751 -0
- ref2va_bf16/hyperflow_h3_flash_int8.py +410 -0
- ref2va_bf16/hyperflow_h3_flash_transformer.py +403 -0
fl2va_bf16/config.json
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "HyperFlowH3FlashTransformer3DModel",
|
| 3 |
+
"_diffusers_version": "0.36.0.dev0",
|
| 4 |
+
"num_attention_heads": 56,
|
| 5 |
+
"attention_head_dim": 128,
|
| 6 |
+
"hidden_size": 5376,
|
| 7 |
+
"num_layers": 50,
|
| 8 |
+
"num_refiner_layers": 2,
|
| 9 |
+
"ffn_dim": 14336,
|
| 10 |
+
"in_channels": 24,
|
| 11 |
+
"audio_in_channels": 32,
|
| 12 |
+
"patch_size": [
|
| 13 |
+
1,
|
| 14 |
+
2,
|
| 15 |
+
2
|
| 16 |
+
],
|
| 17 |
+
"text_dim": 5120,
|
| 18 |
+
"freq_dim": 256,
|
| 19 |
+
"time_embed_hidden_dim": 5376,
|
| 20 |
+
"time_embed_dim": 16,
|
| 21 |
+
"rope_freq_dim": 16,
|
| 22 |
+
"rope_theta": 10000.0,
|
| 23 |
+
"norm_eps": 1e-05,
|
| 24 |
+
"qk_norm_eps": 1e-05,
|
| 25 |
+
"final_norm_eps": 1e-05,
|
| 26 |
+
"hyperflow_gate": 0.25,
|
| 27 |
+
"lowrank_ranks": {
|
| 28 |
+
"transformer_blocks.1.attn.to_k": 670,
|
| 29 |
+
"transformer_blocks.1.attn.to_out.0": 1731,
|
| 30 |
+
"transformer_blocks.1.attn.to_q": 743,
|
| 31 |
+
"transformer_blocks.1.attn.to_v": 836,
|
| 32 |
+
"transformer_blocks.1.ff.net.0.proj": 1642,
|
| 33 |
+
"transformer_blocks.1.ff.net.2": 2450,
|
| 34 |
+
"transformer_blocks.10.attn.to_k": 273,
|
| 35 |
+
"transformer_blocks.10.attn.to_out.0": 388,
|
| 36 |
+
"transformer_blocks.10.attn.to_q": 265,
|
| 37 |
+
"transformer_blocks.10.attn.to_v": 448,
|
| 38 |
+
"transformer_blocks.10.ff.net.0.proj": 335,
|
| 39 |
+
"transformer_blocks.10.ff.net.2": 1478,
|
| 40 |
+
"transformer_blocks.11.attn.to_k": 256,
|
| 41 |
+
"transformer_blocks.11.attn.to_out.0": 410,
|
| 42 |
+
"transformer_blocks.11.attn.to_q": 264,
|
| 43 |
+
"transformer_blocks.11.attn.to_v": 445,
|
| 44 |
+
"transformer_blocks.11.ff.net.0.proj": 361,
|
| 45 |
+
"transformer_blocks.11.ff.net.2": 456,
|
| 46 |
+
"transformer_blocks.12.attn.to_k": 145,
|
| 47 |
+
"transformer_blocks.12.attn.to_out.0": 201,
|
| 48 |
+
"transformer_blocks.12.attn.to_q": 155,
|
| 49 |
+
"transformer_blocks.12.attn.to_v": 300,
|
| 50 |
+
"transformer_blocks.12.ff.net.0.proj": 210,
|
| 51 |
+
"transformer_blocks.12.ff.net.2": 1082,
|
| 52 |
+
"transformer_blocks.13.attn.to_k": 559,
|
| 53 |
+
"transformer_blocks.13.attn.to_out.0": 696,
|
| 54 |
+
"transformer_blocks.13.attn.to_q": 565,
|
| 55 |
+
"transformer_blocks.13.attn.to_v": 790,
|
| 56 |
+
"transformer_blocks.13.ff.net.0.proj": 734,
|
| 57 |
+
"transformer_blocks.13.ff.net.2": 2,
|
| 58 |
+
"transformer_blocks.14.attn.to_k": 238,
|
| 59 |
+
"transformer_blocks.14.attn.to_out.0": 357,
|
| 60 |
+
"transformer_blocks.14.attn.to_q": 258,
|
| 61 |
+
"transformer_blocks.14.attn.to_v": 438,
|
| 62 |
+
"transformer_blocks.14.ff.net.0.proj": 315,
|
| 63 |
+
"transformer_blocks.14.ff.net.2": 1566,
|
| 64 |
+
"transformer_blocks.15.attn.to_k": 248,
|
| 65 |
+
"transformer_blocks.15.attn.to_out.0": 394,
|
| 66 |
+
"transformer_blocks.15.attn.to_q": 261,
|
| 67 |
+
"transformer_blocks.15.attn.to_v": 431,
|
| 68 |
+
"transformer_blocks.15.ff.net.0.proj": 315,
|
| 69 |
+
"transformer_blocks.15.ff.net.2": 1539,
|
| 70 |
+
"transformer_blocks.16.attn.to_k": 451,
|
| 71 |
+
"transformer_blocks.16.attn.to_out.0": 711,
|
| 72 |
+
"transformer_blocks.16.attn.to_q": 460,
|
| 73 |
+
"transformer_blocks.16.attn.to_v": 694,
|
| 74 |
+
"transformer_blocks.16.ff.net.0.proj": 652,
|
| 75 |
+
"transformer_blocks.16.ff.net.2": 2287,
|
| 76 |
+
"transformer_blocks.17.attn.to_k": 242,
|
| 77 |
+
"transformer_blocks.17.attn.to_out.0": 413,
|
| 78 |
+
"transformer_blocks.17.attn.to_q": 261,
|
| 79 |
+
"transformer_blocks.17.attn.to_v": 443,
|
| 80 |
+
"transformer_blocks.17.ff.net.0.proj": 334,
|
| 81 |
+
"transformer_blocks.17.ff.net.2": 1489,
|
| 82 |
+
"transformer_blocks.18.attn.to_k": 210,
|
| 83 |
+
"transformer_blocks.18.attn.to_out.0": 440,
|
| 84 |
+
"transformer_blocks.18.attn.to_q": 238,
|
| 85 |
+
"transformer_blocks.18.attn.to_v": 433,
|
| 86 |
+
"transformer_blocks.18.ff.net.0.proj": 390,
|
| 87 |
+
"transformer_blocks.18.ff.net.2": 1417,
|
| 88 |
+
"transformer_blocks.2.attn.to_k": 1551,
|
| 89 |
+
"transformer_blocks.2.attn.to_out.0": 2092,
|
| 90 |
+
"transformer_blocks.2.attn.to_q": 1587,
|
| 91 |
+
"transformer_blocks.2.attn.to_v": 1615,
|
| 92 |
+
"transformer_blocks.2.ff.net.0.proj": 3137,
|
| 93 |
+
"transformer_blocks.20.attn.to_k": 814,
|
| 94 |
+
"transformer_blocks.20.attn.to_out.0": 1209,
|
| 95 |
+
"transformer_blocks.20.attn.to_q": 831,
|
| 96 |
+
"transformer_blocks.20.attn.to_v": 1093,
|
| 97 |
+
"transformer_blocks.20.ff.net.0.proj": 1300,
|
| 98 |
+
"transformer_blocks.20.ff.net.2": 3061,
|
| 99 |
+
"transformer_blocks.23.attn.to_k": 70,
|
| 100 |
+
"transformer_blocks.23.attn.to_out.0": 267,
|
| 101 |
+
"transformer_blocks.23.attn.to_q": 102,
|
| 102 |
+
"transformer_blocks.23.attn.to_v": 241,
|
| 103 |
+
"transformer_blocks.23.ff.net.0.proj": 232,
|
| 104 |
+
"transformer_blocks.23.ff.net.2": 1121,
|
| 105 |
+
"transformer_blocks.4.attn.to_k": 182,
|
| 106 |
+
"transformer_blocks.4.attn.to_out.0": 255,
|
| 107 |
+
"transformer_blocks.4.attn.to_q": 170,
|
| 108 |
+
"transformer_blocks.4.attn.to_v": 280,
|
| 109 |
+
"transformer_blocks.4.ff.net.0.proj": 333,
|
| 110 |
+
"transformer_blocks.4.ff.net.2": 815,
|
| 111 |
+
"transformer_blocks.49.ff.net.2": 2932,
|
| 112 |
+
"transformer_blocks.7.attn.to_k": 186,
|
| 113 |
+
"transformer_blocks.7.attn.to_out.0": 315,
|
| 114 |
+
"transformer_blocks.7.attn.to_q": 197,
|
| 115 |
+
"transformer_blocks.7.attn.to_v": 330,
|
| 116 |
+
"transformer_blocks.7.ff.net.0.proj": 265,
|
| 117 |
+
"transformer_blocks.7.ff.net.2": 843,
|
| 118 |
+
"transformer_blocks.8.attn.to_k": 129,
|
| 119 |
+
"transformer_blocks.8.attn.to_out.0": 224,
|
| 120 |
+
"transformer_blocks.8.attn.to_q": 136,
|
| 121 |
+
"transformer_blocks.8.attn.to_v": 255,
|
| 122 |
+
"transformer_blocks.8.ff.net.0.proj": 209,
|
| 123 |
+
"transformer_blocks.8.ff.net.2": 1120,
|
| 124 |
+
"transformer_blocks.9.attn.to_k": 132,
|
| 125 |
+
"transformer_blocks.9.attn.to_out.0": 270,
|
| 126 |
+
"transformer_blocks.9.attn.to_q": 146,
|
| 127 |
+
"transformer_blocks.9.attn.to_v": 260,
|
| 128 |
+
"transformer_blocks.9.ff.net.0.proj": 185,
|
| 129 |
+
"transformer_blocks.9.ff.net.2": 1121
|
| 130 |
+
},
|
| 131 |
+
"dropped_blocks": [
|
| 132 |
+
6,
|
| 133 |
+
21,
|
| 134 |
+
22
|
| 135 |
+
],
|
| 136 |
+
"auto_map": {
|
| 137 |
+
"AutoModel": "hyperflow_h3_flash_transformer.HyperFlowH3FlashTransformer3DModel"
|
| 138 |
+
}
|
| 139 |
+
}
|
fl2va_bf16/diffusion_pytorch_model-00001-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ecbdc09128a86d2764478e1aeea4551bb97b418370cfdc58fd61273d814ba9b
|
| 3 |
+
size 5365163944
|
fl2va_bf16/diffusion_pytorch_model-00002-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5eab76f555488d4cd0a61f32a3bcfce34c7a777a739a641e97ca52e02f190350
|
| 3 |
+
size 5068974528
|
fl2va_bf16/diffusion_pytorch_model-00003-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f7e46fbefdd9fbc6fcbdb54f36c9776d4642220107ffb3c6e3cd387fb0e163e
|
| 3 |
+
size 5341047744
|
fl2va_bf16/diffusion_pytorch_model-00004-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3084fd43a292377243e0bf14e606af7ec243935083f98c7cfb8a46bdf3f8495
|
| 3 |
+
size 5344351120
|
fl2va_bf16/diffusion_pytorch_model-00005-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e94b4b44531fff80440eb728dd5e800961cbea2a82d389b6dc688ac82261658c
|
| 3 |
+
size 5302498352
|
fl2va_bf16/diffusion_pytorch_model-00006-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ead01b7b1c4785caa7cd1bd10d329afa8bab0c6ca0ee3dd8f55d47f7c6f5e7e8
|
| 3 |
+
size 1011854376
|
fl2va_bf16/diffusion_pytorch_model.safetensors.index.json
ADDED
|
@@ -0,0 +1,715 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 27433807488
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"audio_proj_in.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 7 |
+
"audio_proj_in.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 8 |
+
"audio_proj_out.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 9 |
+
"audio_proj_out.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 10 |
+
"context_embedder.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 11 |
+
"context_embedder.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 12 |
+
"endpoint_time_embedder.linear_1.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 13 |
+
"endpoint_time_embedder.linear_1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 14 |
+
"endpoint_time_embedder.linear_2.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 15 |
+
"endpoint_time_embedder.linear_2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 16 |
+
"norm_out.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 17 |
+
"norm_out.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 18 |
+
"norm_out.norm.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 19 |
+
"proj_in.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 20 |
+
"proj_in.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 21 |
+
"proj_out.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 22 |
+
"proj_out.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 23 |
+
"time_embedder.linear_1.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 24 |
+
"time_embedder.linear_1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 25 |
+
"time_embedder.linear_2.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 26 |
+
"time_embedder.linear_2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 27 |
+
"token_refiner.final_norm.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 28 |
+
"token_refiner.refiner_blocks.0.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 29 |
+
"token_refiner.refiner_blocks.0.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 30 |
+
"token_refiner.refiner_blocks.0.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 31 |
+
"token_refiner.refiner_blocks.0.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 32 |
+
"token_refiner.refiner_blocks.0.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 33 |
+
"token_refiner.refiner_blocks.0.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 34 |
+
"token_refiner.refiner_blocks.0.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 35 |
+
"token_refiner.refiner_blocks.0.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 36 |
+
"token_refiner.refiner_blocks.0.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 37 |
+
"token_refiner.refiner_blocks.0.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 38 |
+
"token_refiner.refiner_blocks.1.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 39 |
+
"token_refiner.refiner_blocks.1.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 40 |
+
"token_refiner.refiner_blocks.1.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 41 |
+
"token_refiner.refiner_blocks.1.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 42 |
+
"token_refiner.refiner_blocks.1.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 43 |
+
"token_refiner.refiner_blocks.1.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 44 |
+
"token_refiner.refiner_blocks.1.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 45 |
+
"token_refiner.refiner_blocks.1.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 46 |
+
"token_refiner.refiner_blocks.1.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 47 |
+
"token_refiner.refiner_blocks.1.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 48 |
+
"transformer_blocks.0.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 49 |
+
"transformer_blocks.0.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 50 |
+
"transformer_blocks.0.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 51 |
+
"transformer_blocks.0.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 52 |
+
"transformer_blocks.0.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 53 |
+
"transformer_blocks.0.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 54 |
+
"transformer_blocks.0.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 55 |
+
"transformer_blocks.0.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 56 |
+
"transformer_blocks.0.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 57 |
+
"transformer_blocks.0.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 58 |
+
"transformer_blocks.0.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 59 |
+
"transformer_blocks.0.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 60 |
+
"transformer_blocks.1.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 61 |
+
"transformer_blocks.1.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 62 |
+
"transformer_blocks.1.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 63 |
+
"transformer_blocks.1.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 64 |
+
"transformer_blocks.1.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 65 |
+
"transformer_blocks.1.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 66 |
+
"transformer_blocks.1.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 67 |
+
"transformer_blocks.1.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 68 |
+
"transformer_blocks.1.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 69 |
+
"transformer_blocks.1.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 70 |
+
"transformer_blocks.1.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 71 |
+
"transformer_blocks.1.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 72 |
+
"transformer_blocks.1.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 73 |
+
"transformer_blocks.1.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 74 |
+
"transformer_blocks.1.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 75 |
+
"transformer_blocks.1.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 76 |
+
"transformer_blocks.1.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 77 |
+
"transformer_blocks.1.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 78 |
+
"transformer_blocks.10.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 79 |
+
"transformer_blocks.10.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 80 |
+
"transformer_blocks.10.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 81 |
+
"transformer_blocks.10.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 82 |
+
"transformer_blocks.10.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 83 |
+
"transformer_blocks.10.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 84 |
+
"transformer_blocks.10.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 85 |
+
"transformer_blocks.10.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 86 |
+
"transformer_blocks.10.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 87 |
+
"transformer_blocks.10.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 88 |
+
"transformer_blocks.10.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 89 |
+
"transformer_blocks.10.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 90 |
+
"transformer_blocks.10.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 91 |
+
"transformer_blocks.10.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 92 |
+
"transformer_blocks.10.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 93 |
+
"transformer_blocks.10.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 94 |
+
"transformer_blocks.10.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 95 |
+
"transformer_blocks.10.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 96 |
+
"transformer_blocks.11.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 97 |
+
"transformer_blocks.11.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 98 |
+
"transformer_blocks.11.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 99 |
+
"transformer_blocks.11.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 100 |
+
"transformer_blocks.11.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 101 |
+
"transformer_blocks.11.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 102 |
+
"transformer_blocks.11.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 103 |
+
"transformer_blocks.11.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 104 |
+
"transformer_blocks.11.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 105 |
+
"transformer_blocks.11.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 106 |
+
"transformer_blocks.11.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 107 |
+
"transformer_blocks.11.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 108 |
+
"transformer_blocks.11.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 109 |
+
"transformer_blocks.11.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 110 |
+
"transformer_blocks.11.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 111 |
+
"transformer_blocks.11.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 112 |
+
"transformer_blocks.11.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 113 |
+
"transformer_blocks.11.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 114 |
+
"transformer_blocks.12.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 115 |
+
"transformer_blocks.12.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 116 |
+
"transformer_blocks.12.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 117 |
+
"transformer_blocks.12.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 118 |
+
"transformer_blocks.12.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 119 |
+
"transformer_blocks.12.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 120 |
+
"transformer_blocks.12.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 121 |
+
"transformer_blocks.12.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 122 |
+
"transformer_blocks.12.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 123 |
+
"transformer_blocks.12.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 124 |
+
"transformer_blocks.12.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 125 |
+
"transformer_blocks.12.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 126 |
+
"transformer_blocks.12.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 127 |
+
"transformer_blocks.12.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 128 |
+
"transformer_blocks.12.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 129 |
+
"transformer_blocks.12.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 130 |
+
"transformer_blocks.12.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 131 |
+
"transformer_blocks.12.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 132 |
+
"transformer_blocks.13.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 133 |
+
"transformer_blocks.13.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 134 |
+
"transformer_blocks.13.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 135 |
+
"transformer_blocks.13.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 136 |
+
"transformer_blocks.13.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 137 |
+
"transformer_blocks.13.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 138 |
+
"transformer_blocks.13.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 139 |
+
"transformer_blocks.13.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 140 |
+
"transformer_blocks.13.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 141 |
+
"transformer_blocks.13.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 142 |
+
"transformer_blocks.13.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 143 |
+
"transformer_blocks.13.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 144 |
+
"transformer_blocks.13.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 145 |
+
"transformer_blocks.13.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 146 |
+
"transformer_blocks.13.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 147 |
+
"transformer_blocks.13.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 148 |
+
"transformer_blocks.13.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 149 |
+
"transformer_blocks.13.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 150 |
+
"transformer_blocks.14.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 151 |
+
"transformer_blocks.14.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 152 |
+
"transformer_blocks.14.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 153 |
+
"transformer_blocks.14.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 154 |
+
"transformer_blocks.14.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 155 |
+
"transformer_blocks.14.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 156 |
+
"transformer_blocks.14.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 157 |
+
"transformer_blocks.14.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 158 |
+
"transformer_blocks.14.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 159 |
+
"transformer_blocks.14.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 160 |
+
"transformer_blocks.14.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 161 |
+
"transformer_blocks.14.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 162 |
+
"transformer_blocks.14.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 163 |
+
"transformer_blocks.14.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 164 |
+
"transformer_blocks.14.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 165 |
+
"transformer_blocks.14.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 166 |
+
"transformer_blocks.14.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 167 |
+
"transformer_blocks.14.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 168 |
+
"transformer_blocks.15.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 169 |
+
"transformer_blocks.15.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 170 |
+
"transformer_blocks.15.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 171 |
+
"transformer_blocks.15.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 172 |
+
"transformer_blocks.15.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 173 |
+
"transformer_blocks.15.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 174 |
+
"transformer_blocks.15.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 175 |
+
"transformer_blocks.15.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 176 |
+
"transformer_blocks.15.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 177 |
+
"transformer_blocks.15.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 178 |
+
"transformer_blocks.15.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 179 |
+
"transformer_blocks.15.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 180 |
+
"transformer_blocks.15.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 181 |
+
"transformer_blocks.15.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 182 |
+
"transformer_blocks.15.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 183 |
+
"transformer_blocks.15.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 184 |
+
"transformer_blocks.15.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 185 |
+
"transformer_blocks.15.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 186 |
+
"transformer_blocks.16.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 187 |
+
"transformer_blocks.16.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 188 |
+
"transformer_blocks.16.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 189 |
+
"transformer_blocks.16.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 190 |
+
"transformer_blocks.16.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 191 |
+
"transformer_blocks.16.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 192 |
+
"transformer_blocks.16.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 193 |
+
"transformer_blocks.16.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 194 |
+
"transformer_blocks.16.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 195 |
+
"transformer_blocks.16.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 196 |
+
"transformer_blocks.16.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 197 |
+
"transformer_blocks.16.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 198 |
+
"transformer_blocks.16.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 199 |
+
"transformer_blocks.16.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 200 |
+
"transformer_blocks.16.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 201 |
+
"transformer_blocks.16.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 202 |
+
"transformer_blocks.16.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 203 |
+
"transformer_blocks.16.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 204 |
+
"transformer_blocks.17.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 205 |
+
"transformer_blocks.17.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 206 |
+
"transformer_blocks.17.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 207 |
+
"transformer_blocks.17.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 208 |
+
"transformer_blocks.17.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 209 |
+
"transformer_blocks.17.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 210 |
+
"transformer_blocks.17.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 211 |
+
"transformer_blocks.17.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 212 |
+
"transformer_blocks.17.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 213 |
+
"transformer_blocks.17.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 214 |
+
"transformer_blocks.17.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 215 |
+
"transformer_blocks.17.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 216 |
+
"transformer_blocks.17.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 217 |
+
"transformer_blocks.17.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 218 |
+
"transformer_blocks.17.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 219 |
+
"transformer_blocks.17.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 220 |
+
"transformer_blocks.17.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 221 |
+
"transformer_blocks.17.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 222 |
+
"transformer_blocks.18.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 223 |
+
"transformer_blocks.18.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 224 |
+
"transformer_blocks.18.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 225 |
+
"transformer_blocks.18.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 226 |
+
"transformer_blocks.18.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 227 |
+
"transformer_blocks.18.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 228 |
+
"transformer_blocks.18.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 229 |
+
"transformer_blocks.18.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 230 |
+
"transformer_blocks.18.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 231 |
+
"transformer_blocks.18.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 232 |
+
"transformer_blocks.18.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 233 |
+
"transformer_blocks.18.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 234 |
+
"transformer_blocks.18.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 235 |
+
"transformer_blocks.18.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 236 |
+
"transformer_blocks.18.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 237 |
+
"transformer_blocks.18.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 238 |
+
"transformer_blocks.18.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 239 |
+
"transformer_blocks.18.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 240 |
+
"transformer_blocks.19.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 241 |
+
"transformer_blocks.19.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 242 |
+
"transformer_blocks.19.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 243 |
+
"transformer_blocks.19.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 244 |
+
"transformer_blocks.19.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 245 |
+
"transformer_blocks.19.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 246 |
+
"transformer_blocks.19.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 247 |
+
"transformer_blocks.19.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 248 |
+
"transformer_blocks.19.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 249 |
+
"transformer_blocks.19.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 250 |
+
"transformer_blocks.19.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 251 |
+
"transformer_blocks.19.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 252 |
+
"transformer_blocks.2.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 253 |
+
"transformer_blocks.2.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 254 |
+
"transformer_blocks.2.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 255 |
+
"transformer_blocks.2.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 256 |
+
"transformer_blocks.2.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 257 |
+
"transformer_blocks.2.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 258 |
+
"transformer_blocks.2.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 259 |
+
"transformer_blocks.2.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 260 |
+
"transformer_blocks.2.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 261 |
+
"transformer_blocks.2.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 262 |
+
"transformer_blocks.2.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 263 |
+
"transformer_blocks.2.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 264 |
+
"transformer_blocks.2.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 265 |
+
"transformer_blocks.2.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 266 |
+
"transformer_blocks.2.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 267 |
+
"transformer_blocks.2.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 268 |
+
"transformer_blocks.2.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 269 |
+
"transformer_blocks.20.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 270 |
+
"transformer_blocks.20.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 271 |
+
"transformer_blocks.20.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 272 |
+
"transformer_blocks.20.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 273 |
+
"transformer_blocks.20.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 274 |
+
"transformer_blocks.20.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 275 |
+
"transformer_blocks.20.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 276 |
+
"transformer_blocks.20.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 277 |
+
"transformer_blocks.20.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 278 |
+
"transformer_blocks.20.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 279 |
+
"transformer_blocks.20.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 280 |
+
"transformer_blocks.20.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 281 |
+
"transformer_blocks.20.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 282 |
+
"transformer_blocks.20.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 283 |
+
"transformer_blocks.20.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 284 |
+
"transformer_blocks.20.ff.net.2.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 285 |
+
"transformer_blocks.20.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 286 |
+
"transformer_blocks.20.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 287 |
+
"transformer_blocks.23.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 288 |
+
"transformer_blocks.23.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 289 |
+
"transformer_blocks.23.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 290 |
+
"transformer_blocks.23.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 291 |
+
"transformer_blocks.23.attn.to_k.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 292 |
+
"transformer_blocks.23.attn.to_k.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 293 |
+
"transformer_blocks.23.attn.to_out.0.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 294 |
+
"transformer_blocks.23.attn.to_out.0.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 295 |
+
"transformer_blocks.23.attn.to_q.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 296 |
+
"transformer_blocks.23.attn.to_q.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 297 |
+
"transformer_blocks.23.attn.to_v.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 298 |
+
"transformer_blocks.23.attn.to_v.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 299 |
+
"transformer_blocks.23.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 300 |
+
"transformer_blocks.23.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 301 |
+
"transformer_blocks.23.ff.net.2.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 302 |
+
"transformer_blocks.23.ff.net.2.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 303 |
+
"transformer_blocks.23.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 304 |
+
"transformer_blocks.23.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 305 |
+
"transformer_blocks.24.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 306 |
+
"transformer_blocks.24.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 307 |
+
"transformer_blocks.24.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 308 |
+
"transformer_blocks.24.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 309 |
+
"transformer_blocks.24.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 310 |
+
"transformer_blocks.24.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 311 |
+
"transformer_blocks.24.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 312 |
+
"transformer_blocks.24.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 313 |
+
"transformer_blocks.24.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 314 |
+
"transformer_blocks.24.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 315 |
+
"transformer_blocks.24.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 316 |
+
"transformer_blocks.24.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 317 |
+
"transformer_blocks.25.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 318 |
+
"transformer_blocks.25.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 319 |
+
"transformer_blocks.25.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 320 |
+
"transformer_blocks.25.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 321 |
+
"transformer_blocks.25.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 322 |
+
"transformer_blocks.25.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 323 |
+
"transformer_blocks.25.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 324 |
+
"transformer_blocks.25.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 325 |
+
"transformer_blocks.25.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 326 |
+
"transformer_blocks.25.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 327 |
+
"transformer_blocks.25.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 328 |
+
"transformer_blocks.25.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 329 |
+
"transformer_blocks.26.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 330 |
+
"transformer_blocks.26.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 331 |
+
"transformer_blocks.26.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 332 |
+
"transformer_blocks.26.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 333 |
+
"transformer_blocks.26.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 334 |
+
"transformer_blocks.26.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 335 |
+
"transformer_blocks.26.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 336 |
+
"transformer_blocks.26.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 337 |
+
"transformer_blocks.26.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 338 |
+
"transformer_blocks.26.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 339 |
+
"transformer_blocks.26.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 340 |
+
"transformer_blocks.26.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 341 |
+
"transformer_blocks.27.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 342 |
+
"transformer_blocks.27.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 343 |
+
"transformer_blocks.27.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 344 |
+
"transformer_blocks.27.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 345 |
+
"transformer_blocks.27.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 346 |
+
"transformer_blocks.27.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 347 |
+
"transformer_blocks.27.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 348 |
+
"transformer_blocks.27.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 349 |
+
"transformer_blocks.27.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 350 |
+
"transformer_blocks.27.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 351 |
+
"transformer_blocks.27.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 352 |
+
"transformer_blocks.27.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 353 |
+
"transformer_blocks.28.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 354 |
+
"transformer_blocks.28.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 355 |
+
"transformer_blocks.28.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 356 |
+
"transformer_blocks.28.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 357 |
+
"transformer_blocks.28.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 358 |
+
"transformer_blocks.28.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 359 |
+
"transformer_blocks.28.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 360 |
+
"transformer_blocks.28.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 361 |
+
"transformer_blocks.28.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 362 |
+
"transformer_blocks.28.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 363 |
+
"transformer_blocks.28.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 364 |
+
"transformer_blocks.28.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 365 |
+
"transformer_blocks.29.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 366 |
+
"transformer_blocks.29.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 367 |
+
"transformer_blocks.29.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 368 |
+
"transformer_blocks.29.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 369 |
+
"transformer_blocks.29.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 370 |
+
"transformer_blocks.29.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 371 |
+
"transformer_blocks.29.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 372 |
+
"transformer_blocks.29.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 373 |
+
"transformer_blocks.29.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 374 |
+
"transformer_blocks.29.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 375 |
+
"transformer_blocks.29.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 376 |
+
"transformer_blocks.29.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 377 |
+
"transformer_blocks.3.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 378 |
+
"transformer_blocks.3.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 379 |
+
"transformer_blocks.3.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 380 |
+
"transformer_blocks.3.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 381 |
+
"transformer_blocks.3.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 382 |
+
"transformer_blocks.3.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 383 |
+
"transformer_blocks.3.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 384 |
+
"transformer_blocks.3.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 385 |
+
"transformer_blocks.3.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 386 |
+
"transformer_blocks.3.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 387 |
+
"transformer_blocks.3.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 388 |
+
"transformer_blocks.3.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 389 |
+
"transformer_blocks.30.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 390 |
+
"transformer_blocks.30.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 391 |
+
"transformer_blocks.30.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 392 |
+
"transformer_blocks.30.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 393 |
+
"transformer_blocks.30.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 394 |
+
"transformer_blocks.30.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 395 |
+
"transformer_blocks.30.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 396 |
+
"transformer_blocks.30.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 397 |
+
"transformer_blocks.30.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 398 |
+
"transformer_blocks.30.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 399 |
+
"transformer_blocks.30.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 400 |
+
"transformer_blocks.30.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 401 |
+
"transformer_blocks.31.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 402 |
+
"transformer_blocks.31.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 403 |
+
"transformer_blocks.31.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 404 |
+
"transformer_blocks.31.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 405 |
+
"transformer_blocks.31.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 406 |
+
"transformer_blocks.31.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 407 |
+
"transformer_blocks.31.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 408 |
+
"transformer_blocks.31.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 409 |
+
"transformer_blocks.31.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 410 |
+
"transformer_blocks.31.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 411 |
+
"transformer_blocks.31.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 412 |
+
"transformer_blocks.31.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 413 |
+
"transformer_blocks.32.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 414 |
+
"transformer_blocks.32.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 415 |
+
"transformer_blocks.32.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 416 |
+
"transformer_blocks.32.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 417 |
+
"transformer_blocks.32.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 418 |
+
"transformer_blocks.32.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 419 |
+
"transformer_blocks.32.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 420 |
+
"transformer_blocks.32.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 421 |
+
"transformer_blocks.32.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 422 |
+
"transformer_blocks.32.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 423 |
+
"transformer_blocks.32.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 424 |
+
"transformer_blocks.32.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 425 |
+
"transformer_blocks.33.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 426 |
+
"transformer_blocks.33.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 427 |
+
"transformer_blocks.33.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 428 |
+
"transformer_blocks.33.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 429 |
+
"transformer_blocks.33.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 430 |
+
"transformer_blocks.33.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 431 |
+
"transformer_blocks.33.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 432 |
+
"transformer_blocks.33.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 433 |
+
"transformer_blocks.33.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 434 |
+
"transformer_blocks.33.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 435 |
+
"transformer_blocks.33.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 436 |
+
"transformer_blocks.33.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 437 |
+
"transformer_blocks.34.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 438 |
+
"transformer_blocks.34.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 439 |
+
"transformer_blocks.34.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 440 |
+
"transformer_blocks.34.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 441 |
+
"transformer_blocks.34.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 442 |
+
"transformer_blocks.34.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 443 |
+
"transformer_blocks.34.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 444 |
+
"transformer_blocks.34.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 445 |
+
"transformer_blocks.34.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 446 |
+
"transformer_blocks.34.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 447 |
+
"transformer_blocks.34.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 448 |
+
"transformer_blocks.34.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 449 |
+
"transformer_blocks.35.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 450 |
+
"transformer_blocks.35.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 451 |
+
"transformer_blocks.35.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 452 |
+
"transformer_blocks.35.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 453 |
+
"transformer_blocks.35.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 454 |
+
"transformer_blocks.35.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 455 |
+
"transformer_blocks.35.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 456 |
+
"transformer_blocks.35.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 457 |
+
"transformer_blocks.35.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 458 |
+
"transformer_blocks.35.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 459 |
+
"transformer_blocks.35.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 460 |
+
"transformer_blocks.35.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 461 |
+
"transformer_blocks.36.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 462 |
+
"transformer_blocks.36.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 463 |
+
"transformer_blocks.36.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 464 |
+
"transformer_blocks.36.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 465 |
+
"transformer_blocks.36.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 466 |
+
"transformer_blocks.36.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 467 |
+
"transformer_blocks.36.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 468 |
+
"transformer_blocks.36.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 469 |
+
"transformer_blocks.36.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 470 |
+
"transformer_blocks.36.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 471 |
+
"transformer_blocks.36.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 472 |
+
"transformer_blocks.36.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 473 |
+
"transformer_blocks.37.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 474 |
+
"transformer_blocks.37.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 475 |
+
"transformer_blocks.37.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 476 |
+
"transformer_blocks.37.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 477 |
+
"transformer_blocks.37.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 478 |
+
"transformer_blocks.37.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 479 |
+
"transformer_blocks.37.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 480 |
+
"transformer_blocks.37.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 481 |
+
"transformer_blocks.37.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 482 |
+
"transformer_blocks.37.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 483 |
+
"transformer_blocks.37.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 484 |
+
"transformer_blocks.37.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 485 |
+
"transformer_blocks.38.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 486 |
+
"transformer_blocks.38.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 487 |
+
"transformer_blocks.38.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 488 |
+
"transformer_blocks.38.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 489 |
+
"transformer_blocks.38.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 490 |
+
"transformer_blocks.38.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 491 |
+
"transformer_blocks.38.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 492 |
+
"transformer_blocks.38.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 493 |
+
"transformer_blocks.38.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 494 |
+
"transformer_blocks.38.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 495 |
+
"transformer_blocks.38.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 496 |
+
"transformer_blocks.38.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 497 |
+
"transformer_blocks.39.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 498 |
+
"transformer_blocks.39.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 499 |
+
"transformer_blocks.39.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 500 |
+
"transformer_blocks.39.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 501 |
+
"transformer_blocks.39.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 502 |
+
"transformer_blocks.39.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 503 |
+
"transformer_blocks.39.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 504 |
+
"transformer_blocks.39.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 505 |
+
"transformer_blocks.39.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 506 |
+
"transformer_blocks.39.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 507 |
+
"transformer_blocks.39.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 508 |
+
"transformer_blocks.39.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 509 |
+
"transformer_blocks.4.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 510 |
+
"transformer_blocks.4.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 511 |
+
"transformer_blocks.4.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 512 |
+
"transformer_blocks.4.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 513 |
+
"transformer_blocks.4.attn.to_k.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 514 |
+
"transformer_blocks.4.attn.to_k.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 515 |
+
"transformer_blocks.4.attn.to_out.0.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 516 |
+
"transformer_blocks.4.attn.to_out.0.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 517 |
+
"transformer_blocks.4.attn.to_q.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 518 |
+
"transformer_blocks.4.attn.to_q.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 519 |
+
"transformer_blocks.4.attn.to_v.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 520 |
+
"transformer_blocks.4.attn.to_v.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 521 |
+
"transformer_blocks.4.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 522 |
+
"transformer_blocks.4.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 523 |
+
"transformer_blocks.4.ff.net.2.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 524 |
+
"transformer_blocks.4.ff.net.2.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 525 |
+
"transformer_blocks.4.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 526 |
+
"transformer_blocks.4.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 527 |
+
"transformer_blocks.40.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 528 |
+
"transformer_blocks.40.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 529 |
+
"transformer_blocks.40.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 530 |
+
"transformer_blocks.40.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 531 |
+
"transformer_blocks.40.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 532 |
+
"transformer_blocks.40.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 533 |
+
"transformer_blocks.40.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 534 |
+
"transformer_blocks.40.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 535 |
+
"transformer_blocks.40.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 536 |
+
"transformer_blocks.40.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 537 |
+
"transformer_blocks.40.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 538 |
+
"transformer_blocks.40.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 539 |
+
"transformer_blocks.41.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 540 |
+
"transformer_blocks.41.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 541 |
+
"transformer_blocks.41.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 542 |
+
"transformer_blocks.41.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 543 |
+
"transformer_blocks.41.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 544 |
+
"transformer_blocks.41.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 545 |
+
"transformer_blocks.41.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 546 |
+
"transformer_blocks.41.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 547 |
+
"transformer_blocks.41.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 548 |
+
"transformer_blocks.41.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 549 |
+
"transformer_blocks.41.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 550 |
+
"transformer_blocks.41.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 551 |
+
"transformer_blocks.42.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 552 |
+
"transformer_blocks.42.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 553 |
+
"transformer_blocks.42.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 554 |
+
"transformer_blocks.42.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 555 |
+
"transformer_blocks.42.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 556 |
+
"transformer_blocks.42.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 557 |
+
"transformer_blocks.42.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 558 |
+
"transformer_blocks.42.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 559 |
+
"transformer_blocks.42.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 560 |
+
"transformer_blocks.42.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 561 |
+
"transformer_blocks.42.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 562 |
+
"transformer_blocks.42.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 563 |
+
"transformer_blocks.43.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 564 |
+
"transformer_blocks.43.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 565 |
+
"transformer_blocks.43.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 566 |
+
"transformer_blocks.43.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 567 |
+
"transformer_blocks.43.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 568 |
+
"transformer_blocks.43.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 569 |
+
"transformer_blocks.43.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 570 |
+
"transformer_blocks.43.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 571 |
+
"transformer_blocks.43.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 572 |
+
"transformer_blocks.43.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 573 |
+
"transformer_blocks.43.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 574 |
+
"transformer_blocks.43.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 575 |
+
"transformer_blocks.44.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 576 |
+
"transformer_blocks.44.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 577 |
+
"transformer_blocks.44.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 578 |
+
"transformer_blocks.44.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 579 |
+
"transformer_blocks.44.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 580 |
+
"transformer_blocks.44.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 581 |
+
"transformer_blocks.44.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 582 |
+
"transformer_blocks.44.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 583 |
+
"transformer_blocks.44.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 584 |
+
"transformer_blocks.44.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 585 |
+
"transformer_blocks.44.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 586 |
+
"transformer_blocks.44.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 587 |
+
"transformer_blocks.45.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 588 |
+
"transformer_blocks.45.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 589 |
+
"transformer_blocks.45.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 590 |
+
"transformer_blocks.45.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 591 |
+
"transformer_blocks.45.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 592 |
+
"transformer_blocks.45.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 593 |
+
"transformer_blocks.45.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 594 |
+
"transformer_blocks.45.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 595 |
+
"transformer_blocks.45.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 596 |
+
"transformer_blocks.45.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 597 |
+
"transformer_blocks.45.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 598 |
+
"transformer_blocks.45.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 599 |
+
"transformer_blocks.46.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 600 |
+
"transformer_blocks.46.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 601 |
+
"transformer_blocks.46.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 602 |
+
"transformer_blocks.46.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 603 |
+
"transformer_blocks.46.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 604 |
+
"transformer_blocks.46.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 605 |
+
"transformer_blocks.46.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 606 |
+
"transformer_blocks.46.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 607 |
+
"transformer_blocks.46.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 608 |
+
"transformer_blocks.46.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 609 |
+
"transformer_blocks.46.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 610 |
+
"transformer_blocks.46.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 611 |
+
"transformer_blocks.47.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 612 |
+
"transformer_blocks.47.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 613 |
+
"transformer_blocks.47.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 614 |
+
"transformer_blocks.47.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 615 |
+
"transformer_blocks.47.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 616 |
+
"transformer_blocks.47.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 617 |
+
"transformer_blocks.47.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 618 |
+
"transformer_blocks.47.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 619 |
+
"transformer_blocks.47.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 620 |
+
"transformer_blocks.47.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 621 |
+
"transformer_blocks.47.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 622 |
+
"transformer_blocks.47.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 623 |
+
"transformer_blocks.48.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 624 |
+
"transformer_blocks.48.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 625 |
+
"transformer_blocks.48.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 626 |
+
"transformer_blocks.48.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 627 |
+
"transformer_blocks.48.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 628 |
+
"transformer_blocks.48.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 629 |
+
"transformer_blocks.48.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 630 |
+
"transformer_blocks.48.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 631 |
+
"transformer_blocks.48.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 632 |
+
"transformer_blocks.48.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 633 |
+
"transformer_blocks.48.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 634 |
+
"transformer_blocks.48.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 635 |
+
"transformer_blocks.49.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 636 |
+
"transformer_blocks.49.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 637 |
+
"transformer_blocks.49.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 638 |
+
"transformer_blocks.49.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 639 |
+
"transformer_blocks.49.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 640 |
+
"transformer_blocks.49.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 641 |
+
"transformer_blocks.49.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 642 |
+
"transformer_blocks.49.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 643 |
+
"transformer_blocks.49.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 644 |
+
"transformer_blocks.49.ff.net.2.down.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 645 |
+
"transformer_blocks.49.ff.net.2.up.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 646 |
+
"transformer_blocks.49.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 647 |
+
"transformer_blocks.49.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 648 |
+
"transformer_blocks.5.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 649 |
+
"transformer_blocks.5.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 650 |
+
"transformer_blocks.5.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 651 |
+
"transformer_blocks.5.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 652 |
+
"transformer_blocks.5.attn.to_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 653 |
+
"transformer_blocks.5.attn.to_out.0.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 654 |
+
"transformer_blocks.5.attn.to_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 655 |
+
"transformer_blocks.5.attn.to_v.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 656 |
+
"transformer_blocks.5.ff.net.0.proj.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 657 |
+
"transformer_blocks.5.ff.net.2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 658 |
+
"transformer_blocks.5.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 659 |
+
"transformer_blocks.5.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 660 |
+
"transformer_blocks.7.adaln_proj.linear.bias": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 661 |
+
"transformer_blocks.7.adaln_proj.linear.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 662 |
+
"transformer_blocks.7.attn.norm_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 663 |
+
"transformer_blocks.7.attn.norm_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 664 |
+
"transformer_blocks.7.attn.to_k.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 665 |
+
"transformer_blocks.7.attn.to_k.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 666 |
+
"transformer_blocks.7.attn.to_out.0.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 667 |
+
"transformer_blocks.7.attn.to_out.0.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 668 |
+
"transformer_blocks.7.attn.to_q.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 669 |
+
"transformer_blocks.7.attn.to_q.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 670 |
+
"transformer_blocks.7.attn.to_v.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 671 |
+
"transformer_blocks.7.attn.to_v.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 672 |
+
"transformer_blocks.7.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 673 |
+
"transformer_blocks.7.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 674 |
+
"transformer_blocks.7.ff.net.2.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 675 |
+
"transformer_blocks.7.ff.net.2.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 676 |
+
"transformer_blocks.7.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 677 |
+
"transformer_blocks.7.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 678 |
+
"transformer_blocks.8.adaln_proj.linear.bias": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 679 |
+
"transformer_blocks.8.adaln_proj.linear.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 680 |
+
"transformer_blocks.8.attn.norm_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 681 |
+
"transformer_blocks.8.attn.norm_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 682 |
+
"transformer_blocks.8.attn.to_k.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 683 |
+
"transformer_blocks.8.attn.to_k.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 684 |
+
"transformer_blocks.8.attn.to_out.0.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 685 |
+
"transformer_blocks.8.attn.to_out.0.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 686 |
+
"transformer_blocks.8.attn.to_q.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 687 |
+
"transformer_blocks.8.attn.to_q.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 688 |
+
"transformer_blocks.8.attn.to_v.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 689 |
+
"transformer_blocks.8.attn.to_v.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 690 |
+
"transformer_blocks.8.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 691 |
+
"transformer_blocks.8.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 692 |
+
"transformer_blocks.8.ff.net.2.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 693 |
+
"transformer_blocks.8.ff.net.2.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 694 |
+
"transformer_blocks.8.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 695 |
+
"transformer_blocks.8.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 696 |
+
"transformer_blocks.9.adaln_proj.linear.bias": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 697 |
+
"transformer_blocks.9.adaln_proj.linear.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 698 |
+
"transformer_blocks.9.attn.norm_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 699 |
+
"transformer_blocks.9.attn.norm_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 700 |
+
"transformer_blocks.9.attn.to_k.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 701 |
+
"transformer_blocks.9.attn.to_k.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 702 |
+
"transformer_blocks.9.attn.to_out.0.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 703 |
+
"transformer_blocks.9.attn.to_out.0.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 704 |
+
"transformer_blocks.9.attn.to_q.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 705 |
+
"transformer_blocks.9.attn.to_q.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 706 |
+
"transformer_blocks.9.attn.to_v.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 707 |
+
"transformer_blocks.9.attn.to_v.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 708 |
+
"transformer_blocks.9.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 709 |
+
"transformer_blocks.9.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 710 |
+
"transformer_blocks.9.ff.net.2.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 711 |
+
"transformer_blocks.9.ff.net.2.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 712 |
+
"transformer_blocks.9.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 713 |
+
"transformer_blocks.9.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors"
|
| 714 |
+
}
|
| 715 |
+
}
|
fl2va_bf16/hyperflow_h3_flash_int8.py
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2026 The HyperFlow authors. Licensed under the Apache License, Version 2.0.
|
| 2 |
+
"""INT8 W8A8 linears with a Hadamard-rotated input dimension.
|
| 3 |
+
|
| 4 |
+
A dense ``y = x @ W^T`` is stored as ``qweight = round(W R / wscale)`` (int8, one fp32 scale per output channel), where
|
| 5 |
+
``R`` is a block-diagonal regular Hadamard of size ``group``. ``R`` is orthonormal, so ``y = (x R) @ (W R)^T``: at run
|
| 6 |
+
time the activation is rotated and quantized per token, multiplied in int8 with an exact int32 accumulator, and
|
| 7 |
+
rescaled. The rotation spreads outlier channels across the group, which is what makes per-token int8 activations work.
|
| 8 |
+
|
| 9 |
+
On CUDA the rotation + quantization and the GEMM are Triton kernels (compiled on first use). Every kernel fits the
|
| 10 |
+
99 KiB of shared memory per block of Ampere, Ada and consumer Blackwell GPUs. The int8 GEMM runs as a Triton kernel or
|
| 11 |
+
as cuBLASLt (``torch._int_mm``) plus a Triton epilogue; both use the same int32 accumulator and the same fp32 multiply
|
| 12 |
+
order, so they give bitwise identical outputs. cuBLASLt is faster from compute capability 10 on, Triton on Hopper.
|
| 13 |
+
The B300 (compute capability 10.3) has INT8 tensor cores at about 1/20 of the B200's, so there the int8 codes are
|
| 14 |
+
multiplied on bf16 tensor cores into an fp32 accumulator: products are exact, and the sum matches the int32 one while
|
| 15 |
+
it stays below 2**24, which the rotated activations keep well clear of.
|
| 16 |
+
Elsewhere a plain torch implementation of the same scheme runs.
|
| 17 |
+
|
| 18 |
+
`KERNEL_OPTIONS` (set by `load_pipeline`, no weight change) picks the kernels at run time:
|
| 19 |
+
|
| 20 |
+
* ``int8_gemm``: ``"auto"`` (the choice above), ``"triton"``, ``"cublas"``, ``"bf16"``, or ``"sgl"``: CUTLASS
|
| 21 |
+
``sgl_kernel.int8_scaled_mm`` with the scales in its epilogue, within 1 ulp of Triton and 1.25 to 1.45x faster on
|
| 22 |
+
H200 (Triton when sgl_kernel is missing).
|
| 23 |
+
* ``rotate_quant``: ``"dense"`` (the kernel above) or ``"factored"``: a 256-channel group rotated as ``H16 X H16``, two
|
| 24 |
+
K = 16 dots in 8.5 KiB of shared memory, 1.6 to 2.0x faster on H200; it rounds the rotated activation like the dense
|
| 25 |
+
kernel up to rare one-code differences.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
from __future__ import annotations
|
| 29 |
+
|
| 30 |
+
import functools
|
| 31 |
+
from types import SimpleNamespace
|
| 32 |
+
from typing import Any, ClassVar
|
| 33 |
+
|
| 34 |
+
import torch
|
| 35 |
+
from torch import Tensor, nn
|
| 36 |
+
|
| 37 |
+
#: Run-time kernel choices.
|
| 38 |
+
INT8_GEMMS = ("auto", "triton", "cublas", "sgl", "bf16")
|
| 39 |
+
ROTATE_QUANTS = ("dense", "factored")
|
| 40 |
+
|
| 41 |
+
#: Rows below this go through the torch path: `torch._int_mm` needs more than 16 rows, and so few rows are not worth
|
| 42 |
+
#: a kernel launch.
|
| 43 |
+
_MIN_KERNEL_ROWS = 17
|
| 44 |
+
|
| 45 |
+
#: Run-time kernel choices for every `Int8RotLinear`; `load_pipeline` sets them.
|
| 46 |
+
KERNEL_OPTIONS: dict[str, Any] = {"int8_gemm": "auto", "rotate_quant": "dense"}
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def set_kernel_options(*, int8_gemm: str | None = None, rotate_quant: str | None = None) -> None:
|
| 50 |
+
if int8_gemm is not None:
|
| 51 |
+
if int8_gemm not in INT8_GEMMS:
|
| 52 |
+
raise ValueError(f"int8_gemm must be one of {INT8_GEMMS}, got {int8_gemm!r}")
|
| 53 |
+
KERNEL_OPTIONS["int8_gemm"] = int8_gemm
|
| 54 |
+
if rotate_quant is not None:
|
| 55 |
+
if rotate_quant not in ROTATE_QUANTS:
|
| 56 |
+
raise ValueError(f"rotate_quant must be one of {ROTATE_QUANTS}, got {rotate_quant!r}")
|
| 57 |
+
KERNEL_OPTIONS["rotate_quant"] = rotate_quant
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
@functools.cache
|
| 61 |
+
def _sgl_int8_scaled_mm():
|
| 62 |
+
"""sgl_kernel's ``int8_scaled_mm``, or None when sgl_kernel is not importable."""
|
| 63 |
+
try:
|
| 64 |
+
from sgl_kernel import int8_scaled_mm
|
| 65 |
+
except ImportError:
|
| 66 |
+
return None
|
| 67 |
+
return int8_scaled_mm
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def _has_bf16_mm() -> bool:
|
| 71 |
+
# `torch.mm(..., out_dtype=)` is PyTorch 2.8+.
|
| 72 |
+
return tuple(int(v) for v in torch.__version__.split(".")[:2]) >= (2, 8)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
@functools.cache
|
| 76 |
+
def _auto_int8_gemm(device: torch.device) -> str:
|
| 77 |
+
capability = torch.cuda.get_device_capability(device)
|
| 78 |
+
if capability == (10, 3) and _has_bf16_mm():
|
| 79 |
+
return "bf16"
|
| 80 |
+
if hasattr(torch, "_int_mm") and capability[0] >= 10:
|
| 81 |
+
return "cublas"
|
| 82 |
+
return "triton"
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def resolve_int8_gemm(device: torch.device) -> str:
|
| 86 |
+
"""The GEMM ``KERNEL_OPTIONS["int8_gemm"]`` runs as on ``device``: ``"triton"``, ``"cublas"``, ``"bf16"`` or
|
| 87 |
+
``"sgl"``."""
|
| 88 |
+
choice = KERNEL_OPTIONS["int8_gemm"]
|
| 89 |
+
if choice == "auto":
|
| 90 |
+
return _auto_int8_gemm(device)
|
| 91 |
+
if (
|
| 92 |
+
(choice == "sgl" and _sgl_int8_scaled_mm() is None)
|
| 93 |
+
or (choice == "cublas" and not hasattr(torch, "_int_mm"))
|
| 94 |
+
or (choice == "bf16" and not _has_bf16_mm())
|
| 95 |
+
):
|
| 96 |
+
return "triton"
|
| 97 |
+
return choice
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
@functools.cache
|
| 101 |
+
def regular_hadamard(group: int) -> Tensor:
|
| 102 |
+
"""``kron(H4 / 2, ..., H4 / 2)`` of size ``group`` (a power of 4): orthonormal, symmetric, rows sum to one."""
|
| 103 |
+
h4 = torch.tensor([[1, 1, 1, -1], [1, 1, -1, 1], [1, -1, 1, 1], [-1, 1, 1, 1]], dtype=torch.float64) / 2
|
| 104 |
+
h, n = torch.ones(1, 1, dtype=torch.float64), 1
|
| 105 |
+
while n < group:
|
| 106 |
+
h, n = torch.kron(h, h4), n * 4
|
| 107 |
+
if n != group:
|
| 108 |
+
raise ValueError(f"Hadamard group {group} is not a power of 4")
|
| 109 |
+
return h.float()
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def hadamard_factors(group: int) -> tuple[int, int] | None:
|
| 113 |
+
"""``(GA, GB)`` with ``regular_hadamard(group) == kron(regular_hadamard(GA), regular_hadamard(GB))``, both at
|
| 114 |
+
least 16 (the smallest bf16 ``tl.dot`` K); None when ``group`` cannot be split that way."""
|
| 115 |
+
n = group.bit_length() - 1
|
| 116 |
+
if group < 256 or group != 1 << n or n % 2:
|
| 117 |
+
return None
|
| 118 |
+
ga = 4 ** (n // 4)
|
| 119 |
+
return ga, group // ga
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
@functools.cache
|
| 123 |
+
def _rotation(group: int, device: torch.device) -> Tensor:
|
| 124 |
+
return regular_hadamard(group).to(device=device, dtype=torch.bfloat16)
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
class Int8RotLinear(nn.Module):
|
| 128 |
+
"""Bias-free W8A8 linear: ``y = (q(x R) @ qweight^T) * s_x * wscale``, ``R = blockdiag(regular Hadamard)``.
|
| 129 |
+
|
| 130 |
+
Linears that read one input (``to_q``, ``to_k``, ``to_v``) quantize it once: a layer with ``keep_input = True``
|
| 131 |
+
leaves its quantized input for the next layer, which reuses it if it receives the exact same, unmodified tensor.
|
| 132 |
+
Any other layer clears it, so nothing outlives the projections.
|
| 133 |
+
"""
|
| 134 |
+
|
| 135 |
+
_last_input: ClassVar[dict[str, Any]] = {}
|
| 136 |
+
|
| 137 |
+
def __init__(self, in_features: int, out_features: int, group: int) -> None:
|
| 138 |
+
super().__init__()
|
| 139 |
+
if in_features % group:
|
| 140 |
+
raise ValueError(f"in_features {in_features} is not a multiple of the Hadamard group {group}")
|
| 141 |
+
self.in_features, self.out_features, self.group = in_features, out_features, group
|
| 142 |
+
self.keep_input = False
|
| 143 |
+
# Parameters, not buffers: diffusers' streamed group offloading moves module buffers on but never back off.
|
| 144 |
+
self.qweight = nn.Parameter(torch.zeros(out_features, in_features, dtype=torch.int8), requires_grad=False)
|
| 145 |
+
self.wscale = nn.Parameter(torch.ones(out_features, dtype=torch.float32), requires_grad=False)
|
| 146 |
+
|
| 147 |
+
def extra_repr(self) -> str:
|
| 148 |
+
return f"in_features={self.in_features}, out_features={self.out_features}, group={self.group}"
|
| 149 |
+
|
| 150 |
+
def _quantize(self, x: Tensor, x2: Tensor, kernels: SimpleNamespace) -> tuple[Tensor, Tensor]:
|
| 151 |
+
cache = Int8RotLinear._last_input
|
| 152 |
+
# Inference tensors (`torch.inference_mode`) have no version counter.
|
| 153 |
+
version = None if x.is_inference() else x._version
|
| 154 |
+
hit = cache.get("x") is x and cache.get("version") == version and cache.get("group") == self.group
|
| 155 |
+
quantized = cache["value"] if hit else kernels.rotate_quant(x2, self.group)
|
| 156 |
+
cache.clear()
|
| 157 |
+
if self.keep_input:
|
| 158 |
+
cache.update(x=x, version=version, group=self.group, value=quantized)
|
| 159 |
+
return quantized
|
| 160 |
+
|
| 161 |
+
def forward(self, x: Tensor) -> Tensor:
|
| 162 |
+
shape = x.shape
|
| 163 |
+
x2 = x.reshape(-1, self.in_features).to(torch.bfloat16).contiguous()
|
| 164 |
+
kernels = _kernels() if x2.is_cuda and x2.shape[0] >= _MIN_KERNEL_ROWS else None
|
| 165 |
+
if kernels is None:
|
| 166 |
+
Int8RotLinear._last_input.clear()
|
| 167 |
+
y = self._forward_torch(x2, _rotation(self.group, x2.device))
|
| 168 |
+
else:
|
| 169 |
+
xq, sx = self._quantize(x, x2, kernels)
|
| 170 |
+
y = kernels.int8_matmul(xq, self.qweight, sx, self.wscale)
|
| 171 |
+
return y.reshape(*shape[:-1], self.out_features).to(x.dtype)
|
| 172 |
+
|
| 173 |
+
def _forward_torch(self, x2: Tensor, rot: Tensor) -> Tensor:
|
| 174 |
+
"""The same scheme in plain torch; the rotated activation is rounded to bf16 before quantization."""
|
| 175 |
+
g = self.group
|
| 176 |
+
xr = (x2.reshape(-1, self.in_features // g, g) @ rot).reshape(x2.shape).float()
|
| 177 |
+
sx = xr.abs().amax(1, keepdim=True).clamp_min(1e-12) / 127.0
|
| 178 |
+
xq = (xr / sx).round().clamp(-127, 127)
|
| 179 |
+
return ((xq @ self.qweight.float().t()) * sx * self.wscale[None, :]).to(torch.bfloat16)
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
@functools.cache
|
| 183 |
+
def _kernels() -> SimpleNamespace | None:
|
| 184 |
+
"""``rotate_quant`` and ``int8_matmul`` as Triton kernels; ``None`` when Triton is not installed."""
|
| 185 |
+
try:
|
| 186 |
+
import triton
|
| 187 |
+
import triton.language as tl
|
| 188 |
+
except ImportError:
|
| 189 |
+
return None
|
| 190 |
+
|
| 191 |
+
ROTATE_BM = 64
|
| 192 |
+
FACTORED_BM = 16
|
| 193 |
+
|
| 194 |
+
@triton.jit
|
| 195 |
+
def rotate_quant_kernel(
|
| 196 |
+
x_ptr, h_ptr, q_ptr, s_ptr, M, K, stride_xm, stride_qm,
|
| 197 |
+
G: tl.constexpr, BM: tl.constexpr, BN: tl.constexpr,
|
| 198 |
+
): # fmt: skip
|
| 199 |
+
# Two passes over the row block: the per-token scale needs the absmax of the whole rotated row first.
|
| 200 |
+
# The Hadamard streams through in G x BN column tiles, so shared memory is (BM * G + G * BN) * 2 bytes.
|
| 201 |
+
rows = tl.program_id(0) * BM + tl.arange(0, BM)
|
| 202 |
+
rows64 = rows.to(tl.int64)
|
| 203 |
+
cols = tl.arange(0, G)
|
| 204 |
+
tile = tl.arange(0, BN)
|
| 205 |
+
rmask = rows < M
|
| 206 |
+
amax = tl.zeros((BM,), dtype=tl.float32)
|
| 207 |
+
for g in range(0, K, G):
|
| 208 |
+
x = tl.load(x_ptr + rows64[:, None] * stride_xm + (g + cols)[None, :], mask=rmask[:, None], other=0.0)
|
| 209 |
+
for n in range(0, G, BN):
|
| 210 |
+
h = tl.load(h_ptr + cols[:, None] * G + (n + tile)[None, :])
|
| 211 |
+
amax = tl.maximum(amax, tl.max(tl.abs(tl.dot(x, h)), axis=1))
|
| 212 |
+
scale = tl.maximum(amax, 1e-12) / 127.0
|
| 213 |
+
tl.store(s_ptr + rows, scale, mask=rmask)
|
| 214 |
+
inv = 1.0 / scale
|
| 215 |
+
for g in range(0, K, G):
|
| 216 |
+
x = tl.load(x_ptr + rows64[:, None] * stride_xm + (g + cols)[None, :], mask=rmask[:, None], other=0.0)
|
| 217 |
+
for n in range(0, G, BN):
|
| 218 |
+
h = tl.load(h_ptr + cols[:, None] * G + (n + tile)[None, :])
|
| 219 |
+
q = tl.extra.cuda.libdevice.rint(tl.dot(x, h) * inv[:, None])
|
| 220 |
+
q = tl.minimum(tl.maximum(q, -127.0), 127.0).to(tl.int8)
|
| 221 |
+
tl.store(q_ptr + rows64[:, None] * stride_qm + (g + n + tile)[None, :], q, mask=rmask[:, None])
|
| 222 |
+
|
| 223 |
+
@triton.jit
|
| 224 |
+
def rotate_quant_factored_kernel(
|
| 225 |
+
x_ptr, ha_ptr, hb_ptr, q_ptr, s_ptr, M, K, stride_xm, stride_qm,
|
| 226 |
+
GA: tl.constexpr, GB: tl.constexpr, BM: tl.constexpr,
|
| 227 |
+
): # fmt: skip
|
| 228 |
+
# Channel g + a * GB + b of a group is X[a, b]; the rotated group is H_GA X H_GB. Pass 0 takes the row absmax,
|
| 229 |
+
# pass 1 rotates again and writes int8. The fp32 input of the second dot is split into three bf16 terms
|
| 230 |
+
# (8 + 8 + 8 significand bits), so it is exact; a tf32 dot or a two-term split rounds it measurably.
|
| 231 |
+
# The second dot is batched per row, so its result is already in channel order.
|
| 232 |
+
G: tl.constexpr = GA * GB
|
| 233 |
+
rows = tl.program_id(0) * BM + tl.arange(0, BM)
|
| 234 |
+
rows64 = rows.to(tl.int64)
|
| 235 |
+
cols = tl.arange(0, G)
|
| 236 |
+
rmask = rows < M
|
| 237 |
+
ia = tl.arange(0, GA)
|
| 238 |
+
ib = tl.arange(0, GB)
|
| 239 |
+
ha = tl.broadcast_to(tl.load(ha_ptr + ia[:, None] * GA + ia[None, :])[None, :, :], (BM, GA, GA))
|
| 240 |
+
hb = tl.load(hb_ptr + ib[:, None] * GB + ib[None, :])
|
| 241 |
+
amax = tl.zeros((BM,), dtype=tl.float32)
|
| 242 |
+
inv = tl.zeros((BM,), dtype=tl.float32)
|
| 243 |
+
for p in tl.static_range(2):
|
| 244 |
+
for g in range(0, K, G):
|
| 245 |
+
x = tl.load(x_ptr + rows64[:, None] * stride_xm + (g + cols)[None, :], mask=rmask[:, None], other=0.0)
|
| 246 |
+
z = tl.reshape(tl.dot(tl.reshape(x, (BM * GA, GB)), hb), (BM, GA, GB))
|
| 247 |
+
z_hi = z.to(tl.bfloat16)
|
| 248 |
+
z = z - z_hi.to(tl.float32)
|
| 249 |
+
z_mid = z.to(tl.bfloat16)
|
| 250 |
+
z_lo = (z - z_mid.to(tl.float32)).to(tl.bfloat16)
|
| 251 |
+
y = tl.dot(ha, z_lo, acc=tl.dot(ha, z_mid, acc=tl.dot(ha, z_hi)))
|
| 252 |
+
y = tl.reshape(y, (BM, G))
|
| 253 |
+
if p == 0:
|
| 254 |
+
amax = tl.maximum(amax, tl.max(tl.abs(y), axis=1))
|
| 255 |
+
else:
|
| 256 |
+
q = tl.extra.cuda.libdevice.rint(y * inv[:, None])
|
| 257 |
+
q = tl.minimum(tl.maximum(q, -127.0), 127.0).to(tl.int8)
|
| 258 |
+
tl.store(q_ptr + rows64[:, None] * stride_qm + (g + cols)[None, :], q, mask=rmask[:, None])
|
| 259 |
+
if p == 0:
|
| 260 |
+
scale = tl.maximum(amax, 1e-12) / 127.0
|
| 261 |
+
tl.store(s_ptr + rows, scale, mask=rmask)
|
| 262 |
+
inv = 1.0 / scale
|
| 263 |
+
|
| 264 |
+
@functools.cache
|
| 265 |
+
def rotate_tile(device_index: int, group: int) -> int:
|
| 266 |
+
# At group 256, 128 columns take 96 KiB: that fits every GPU from Ampere on (99 KiB per block).
|
| 267 |
+
shared = triton.runtime.driver.active.utils.get_device_properties(device_index)["max_shared_mem"]
|
| 268 |
+
tile = 128 if (ROTATE_BM * group + group * 128) * 2 <= shared else 64
|
| 269 |
+
return min(tile, group)
|
| 270 |
+
|
| 271 |
+
configs = [
|
| 272 |
+
triton.Config({"BM": bm, "BN": bn, "BK": bk, "GROUP_M": 8}, num_stages=stages, num_warps=warps)
|
| 273 |
+
for bm, bn, bk, stages, warps in [
|
| 274 |
+
(128, 256, 128, 3, 8),
|
| 275 |
+
(256, 128, 128, 3, 8),
|
| 276 |
+
(128, 128, 128, 4, 8),
|
| 277 |
+
(128, 256, 64, 4, 8),
|
| 278 |
+
(256, 128, 64, 4, 8),
|
| 279 |
+
(128, 128, 64, 5, 4),
|
| 280 |
+
]
|
| 281 |
+
]
|
| 282 |
+
|
| 283 |
+
@triton.autotune(configs=configs, key=["M_BUCKET", "N", "K"])
|
| 284 |
+
@triton.jit
|
| 285 |
+
def int8_mm_kernel(
|
| 286 |
+
a_ptr, b_ptr, c_ptr, sa_ptr, sb_ptr, M, N, K, M_BUCKET, stride_am, stride_bn, stride_cm,
|
| 287 |
+
BM: tl.constexpr, BN: tl.constexpr, BK: tl.constexpr, GROUP_M: tl.constexpr,
|
| 288 |
+
): # fmt: skip
|
| 289 |
+
pid = tl.program_id(0)
|
| 290 |
+
num_m = tl.cdiv(M, BM)
|
| 291 |
+
num_n = tl.cdiv(N, BN)
|
| 292 |
+
group = GROUP_M * num_n
|
| 293 |
+
first_m = (pid // group) * GROUP_M
|
| 294 |
+
size_m = tl.minimum(num_m - first_m, GROUP_M)
|
| 295 |
+
pid_m = first_m + (pid % group) % size_m
|
| 296 |
+
pid_n = (pid % group) // size_m
|
| 297 |
+
rm = pid_m * BM + tl.arange(0, BM)
|
| 298 |
+
rn = pid_n * BN + tl.arange(0, BN)
|
| 299 |
+
rk = tl.arange(0, BK)
|
| 300 |
+
a_ptrs = a_ptr + rm.to(tl.int64)[:, None] * stride_am + rk[None, :]
|
| 301 |
+
b_ptrs = b_ptr + rn.to(tl.int64)[None, :] * stride_bn + rk[:, None]
|
| 302 |
+
acc = tl.zeros((BM, BN), dtype=tl.int32)
|
| 303 |
+
for k in range(0, K, BK):
|
| 304 |
+
a = tl.load(a_ptrs, mask=(rm[:, None] < M) & (k + rk[None, :] < K), other=0)
|
| 305 |
+
b = tl.load(b_ptrs, mask=(rn[None, :] < N) & (k + rk[:, None] < K), other=0)
|
| 306 |
+
acc += tl.dot(a, b, out_dtype=tl.int32)
|
| 307 |
+
a_ptrs += BK
|
| 308 |
+
b_ptrs += BK
|
| 309 |
+
sa = tl.load(sa_ptr + rm, mask=rm < M, other=0.0)
|
| 310 |
+
sb = tl.load(sb_ptr + rn, mask=rn < N, other=0.0)
|
| 311 |
+
c = (acc.to(tl.float32) * sa[:, None] * sb[None, :]).to(tl.bfloat16)
|
| 312 |
+
mask = (rm[:, None] < M) & (rn[None, :] < N)
|
| 313 |
+
tl.store(c_ptr + rm.to(tl.int64)[:, None] * stride_cm + rn[None, :], c, mask=mask)
|
| 314 |
+
|
| 315 |
+
@triton.jit
|
| 316 |
+
def rescale_kernel(acc_ptr, sa_ptr, sb_ptr, c_ptr, M, N, BM: tl.constexpr, BN: tl.constexpr):
|
| 317 |
+
rm = tl.program_id(0) * BM + tl.arange(0, BM)
|
| 318 |
+
rn = tl.program_id(1) * BN + tl.arange(0, BN)
|
| 319 |
+
mask = (rm[:, None] < M) & (rn[None, :] < N)
|
| 320 |
+
offsets = rm.to(tl.int64)[:, None] * N + rn[None, :]
|
| 321 |
+
acc = tl.load(acc_ptr + offsets, mask=mask, other=0)
|
| 322 |
+
sa = tl.load(sa_ptr + rm, mask=rm < M, other=0.0)
|
| 323 |
+
sb = tl.load(sb_ptr + rn, mask=rn < N, other=0.0)
|
| 324 |
+
tl.store(c_ptr + offsets, (acc.to(tl.float32) * sa[:, None] * sb[None, :]).to(tl.bfloat16), mask=mask)
|
| 325 |
+
|
| 326 |
+
def rotate_quant(x: Tensor, group: int) -> tuple[Tensor, Tensor]:
|
| 327 |
+
M, K = x.shape
|
| 328 |
+
q = torch.empty(M, K, device=x.device, dtype=torch.int8)
|
| 329 |
+
s = torch.empty(M, device=x.device, dtype=torch.float32)
|
| 330 |
+
factors = hadamard_factors(group) if KERNEL_OPTIONS["rotate_quant"] == "factored" else None
|
| 331 |
+
if factors is not None:
|
| 332 |
+
ga, gb = factors
|
| 333 |
+
ha, hb = _rotation(ga, x.device), _rotation(gb, x.device)
|
| 334 |
+
rotate_quant_factored_kernel[(triton.cdiv(M, FACTORED_BM),)](
|
| 335 |
+
x, ha, hb, q, s, M, K, x.stride(0), q.stride(0), GA=ga, GB=gb, BM=FACTORED_BM, num_warps=4,
|
| 336 |
+
num_stages=4,
|
| 337 |
+
) # fmt: skip
|
| 338 |
+
return q, s
|
| 339 |
+
BN = rotate_tile(x.device.index, group)
|
| 340 |
+
rotate_quant_kernel[(triton.cdiv(M, ROTATE_BM),)](
|
| 341 |
+
x, _rotation(group, x.device), q, s, M, K, x.stride(0), q.stride(0), G=group, BM=ROTATE_BM, BN=BN,
|
| 342 |
+
num_warps=8, num_stages=1,
|
| 343 |
+
) # fmt: skip
|
| 344 |
+
return q, s
|
| 345 |
+
|
| 346 |
+
def matmul_triton(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor, c: Tensor) -> None:
|
| 347 |
+
M, K = a.shape
|
| 348 |
+
N = b.shape[0]
|
| 349 |
+
grid = lambda meta: (triton.cdiv(M, meta["BM"]) * triton.cdiv(N, meta["BN"]),) # noqa: E731
|
| 350 |
+
m_bucket = 1 << max(M - 1, 1).bit_length()
|
| 351 |
+
int8_mm_kernel[grid](a, b, c, sa, sb, M, N, K, m_bucket, a.stride(0), b.stride(0), c.stride(0))
|
| 352 |
+
|
| 353 |
+
def matmul_cublas(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor, c: Tensor) -> None:
|
| 354 |
+
# Row chunks keep the int32 accumulator near 1 GiB.
|
| 355 |
+
M, N = a.shape[0], b.shape[0]
|
| 356 |
+
chunk = max(128, ((1 << 28) // N) // 128 * 128)
|
| 357 |
+
for start in range(0, M, chunk):
|
| 358 |
+
stop = min(M, start + chunk)
|
| 359 |
+
if stop - start < _MIN_KERNEL_ROWS:
|
| 360 |
+
matmul_triton(a[start:stop], b, sa[start:stop], sb, c[start:stop])
|
| 361 |
+
continue
|
| 362 |
+
acc = torch._int_mm(a[start:stop], b.t())
|
| 363 |
+
grid = (triton.cdiv(stop - start, 64), triton.cdiv(N, 128))
|
| 364 |
+
rescale_kernel[grid](acc, sa[start:stop], sb, c[start:stop], stop - start, N, BM=64, BN=128, num_warps=8)
|
| 365 |
+
|
| 366 |
+
def matmul_bf16(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor, c: Tensor) -> None:
|
| 367 |
+
M, N = a.shape[0], b.shape[0]
|
| 368 |
+
weight = b.to(torch.bfloat16)
|
| 369 |
+
chunk = max(128, ((1 << 28) // N) // 128 * 128)
|
| 370 |
+
for start in range(0, M, chunk):
|
| 371 |
+
stop = min(M, start + chunk)
|
| 372 |
+
acc = torch.mm(a[start:stop].to(torch.bfloat16), weight.t(), out_dtype=torch.float32)
|
| 373 |
+
grid = (triton.cdiv(stop - start, 64), triton.cdiv(N, 128))
|
| 374 |
+
rescale_kernel[grid](acc, sa[start:stop], sb, c[start:stop], stop - start, N, BM=64, BN=128, num_warps=8)
|
| 375 |
+
|
| 376 |
+
def int8_matmul(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor) -> Tensor:
|
| 377 |
+
M, K = a.shape
|
| 378 |
+
N = b.shape[0]
|
| 379 |
+
gemm = resolve_int8_gemm(a.device)
|
| 380 |
+
if gemm == "sgl" and K % 16 == 0 and N % 16 == 0:
|
| 381 |
+
# b is the [N, K] row-major qweight; its transpose is the column-major [K, N] operand CUTLASS expects.
|
| 382 |
+
return _sgl_int8_scaled_mm()(a, b.t(), sa, sb, torch.bfloat16)
|
| 383 |
+
c = torch.empty(M, N, device=a.device, dtype=torch.bfloat16)
|
| 384 |
+
if gemm == "bf16":
|
| 385 |
+
matmul_bf16(a, b, sa, sb, c)
|
| 386 |
+
elif gemm == "cublas" and K % 8 == 0 and N % 8 == 0:
|
| 387 |
+
matmul_cublas(a, b, sa, sb, c)
|
| 388 |
+
else:
|
| 389 |
+
matmul_triton(a, b, sa, sb, c)
|
| 390 |
+
return c
|
| 391 |
+
|
| 392 |
+
jit = SimpleNamespace(
|
| 393 |
+
rotate_quant=rotate_quant_kernel,
|
| 394 |
+
rotate_quant_factored=rotate_quant_factored_kernel,
|
| 395 |
+
int8_mm=int8_mm_kernel,
|
| 396 |
+
rescale=rescale_kernel,
|
| 397 |
+
)
|
| 398 |
+
return SimpleNamespace(rotate_quant=rotate_quant, int8_matmul=int8_matmul, jit=jit, rotate_tile=rotate_tile)
|
| 399 |
+
|
| 400 |
+
|
| 401 |
+
__all__ = [
|
| 402 |
+
"INT8_GEMMS",
|
| 403 |
+
"KERNEL_OPTIONS",
|
| 404 |
+
"ROTATE_QUANTS",
|
| 405 |
+
"Int8RotLinear",
|
| 406 |
+
"hadamard_factors",
|
| 407 |
+
"regular_hadamard",
|
| 408 |
+
"resolve_int8_gemm",
|
| 409 |
+
"set_kernel_options",
|
| 410 |
+
]
|
fl2va_bf16/hyperflow_h3_flash_transformer.py
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2026 The HyperFlow authors. Licensed under the Apache License, Version 2.0.
|
| 2 |
+
#
|
| 3 |
+
# `HyperFlowH3FlashTransformer3DModel.forward` is derived from `MiniMaxH3Transformer3DModel.forward` in diffusers
|
| 4 |
+
# (`models/transformers/transformer_minimax_h3.py`), Copyright 2025 The MiniMax Team and The HuggingFace Team,
|
| 5 |
+
# Apache License 2.0. See https://github.com/Video-Rebirth/hyperflow-h3-flash/blob/main/THIRD_PARTY_NOTICES.md.
|
| 6 |
+
"""The HyperFlow H3 Flash transformer: MiniMax-H3, compressed and conditioned on two times.
|
| 7 |
+
|
| 8 |
+
Four changes to `MiniMaxH3Transformer3DModel`, all driven by `config.json`:
|
| 9 |
+
|
| 10 |
+
* **Two-time conditioning.** An `endpoint_time_embedder` embeds the step's endpoint ``r`` next to the current time
|
| 11 |
+
``t``; every AdaLN reads ``temb(t, r) = emb_t(t) + hyperflow_gate * (emb_r(r) - emb_t(t))``.
|
| 12 |
+
* **Dropped blocks** (`dropped_blocks`): those blocks are identities and have no weights.
|
| 13 |
+
* **Low-rank linears** (`lowrank_ranks`): ``W ~= up @ down``, stored as `<name>.down.weight` (rank x in) and
|
| 14 |
+
`<name>.up.weight` (out x rank). Ranks are zero-padded to multiples of 64, in the checkpoint or at load
|
| 15 |
+
(`pad_lowrank_ranks`), so both GEMMs are aligned; `set_lowrank_rank_multiple` re-pads them at run time.
|
| 16 |
+
* **INT8 linears** (`quantization`): W8A8 with a Hadamard-rotated input, see `int8.py`.
|
| 17 |
+
|
| 18 |
+
Embeddings, AdaLN, the token refiner and the output heads are the base model's, in bf16 / fp32. The block
|
| 19 |
+
feed-forwards run in token chunks (`ChunkedFeedForward`, `set_ff_chunk`), which bounds their activations;
|
| 20 |
+
`set_block_chunk` slices every token-wise op of a block.
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
from __future__ import annotations
|
| 24 |
+
|
| 25 |
+
import sys
|
| 26 |
+
from typing import Any, ClassVar
|
| 27 |
+
|
| 28 |
+
import torch
|
| 29 |
+
from diffusers import MiniMaxH3Transformer3DModel
|
| 30 |
+
from diffusers.configuration_utils import register_to_config
|
| 31 |
+
from diffusers.models.embeddings import TimestepEmbedding
|
| 32 |
+
from diffusers.models.modeling_utils import get_parameter_dtype
|
| 33 |
+
from diffusers.models.transformers.transformer_minimax_h3 import (
|
| 34 |
+
MINIMAX_H3_MODALITY_NUM,
|
| 35 |
+
MiniMaxH3TransformerOutput,
|
| 36 |
+
)
|
| 37 |
+
from diffusers.utils import apply_lora_scale
|
| 38 |
+
from torch import Tensor, nn
|
| 39 |
+
|
| 40 |
+
from .hyperflow_h3_flash_int8 import Int8RotLinear
|
| 41 |
+
|
| 42 |
+
#: Tokens per feed-forward chunk; a 5.2 s clip has about 38k, a 14.4 s clip about 105k.
|
| 43 |
+
FF_CHUNK_TOKENS = 16384
|
| 44 |
+
#: Low-rank ranks are padded to multiples of this at load, so both GEMMs of a low-rank linear are aligned.
|
| 45 |
+
RANK_MULTIPLE = 64
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
class LowRankLinear(nn.Module):
|
| 49 |
+
"""``y = up(down(x))``, the factorized replacement of a bias-free `nn.Linear`."""
|
| 50 |
+
|
| 51 |
+
def __init__(self, in_features: int, out_features: int, rank: int) -> None:
|
| 52 |
+
super().__init__()
|
| 53 |
+
self.in_features, self.out_features, self.rank = in_features, out_features, rank
|
| 54 |
+
self.down = nn.Linear(in_features, rank, bias=False)
|
| 55 |
+
self.up = nn.Linear(rank, out_features, bias=False)
|
| 56 |
+
|
| 57 |
+
def forward(self, x: Tensor) -> Tensor:
|
| 58 |
+
return self.up(self.down(x))
|
| 59 |
+
|
| 60 |
+
@torch.no_grad()
|
| 61 |
+
def pad_rank(self, multiple: int = RANK_MULTIPLE) -> bool:
|
| 62 |
+
"""Zero-pad the rank up to a multiple of ``multiple``: new rows of ``down`` and columns of ``up`` are zero, so
|
| 63 |
+
``up @ down`` is unchanged. Returns whether the rank changed."""
|
| 64 |
+
rank = -(-self.rank // multiple) * multiple
|
| 65 |
+
if rank == self.rank:
|
| 66 |
+
return False
|
| 67 |
+
extra = rank - self.rank
|
| 68 |
+
down, up = self.down.weight, self.up.weight
|
| 69 |
+
self.down.weight = nn.Parameter(torch.cat([down, down.new_zeros(extra, down.shape[1])]), requires_grad=False)
|
| 70 |
+
self.up.weight = nn.Parameter(torch.cat([up, up.new_zeros(up.shape[0], extra)], dim=1), requires_grad=False)
|
| 71 |
+
self.down.out_features = self.up.in_features = self.rank = rank
|
| 72 |
+
return True
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
class ChunkedFeedForward(nn.Module):
|
| 76 |
+
"""A block's feed-forward run over at most ``chunk_tokens`` tokens at a time; it keeps the block's ``net``.
|
| 77 |
+
|
| 78 |
+
The feed-forward is token-wise, so the chunks compute the same function; only the rounding of bf16 GEMMs can
|
| 79 |
+
change with their row count. It bounds the SwiGLU input, ``2 * ffn_dim`` wide per token (6 GiB for a 14.4 s
|
| 80 |
+
clip), to one chunk.
|
| 81 |
+
"""
|
| 82 |
+
|
| 83 |
+
def __init__(self, net: nn.ModuleList, out_features: int, chunk_tokens: int) -> None:
|
| 84 |
+
super().__init__()
|
| 85 |
+
self.net, self.out_features, self.chunk_tokens = net, out_features, chunk_tokens
|
| 86 |
+
|
| 87 |
+
def _forward(self, hidden_states: Tensor) -> Tensor:
|
| 88 |
+
for module in self.net:
|
| 89 |
+
hidden_states = module(hidden_states)
|
| 90 |
+
return hidden_states
|
| 91 |
+
|
| 92 |
+
def forward(self, hidden_states: Tensor) -> Tensor:
|
| 93 |
+
if hidden_states.shape[-2] <= self.chunk_tokens:
|
| 94 |
+
return self._forward(hidden_states)
|
| 95 |
+
out = hidden_states.new_empty(*hidden_states.shape[:-1], self.out_features)
|
| 96 |
+
for start in range(0, hidden_states.shape[-2], self.chunk_tokens):
|
| 97 |
+
stop = start + self.chunk_tokens
|
| 98 |
+
out[..., start:stop, :] = self._forward(hidden_states[..., start:stop, :])
|
| 99 |
+
return out
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
class DroppedBlock(nn.Module):
|
| 103 |
+
"""A removed transformer block: the hidden states go straight to the next block.
|
| 104 |
+
|
| 105 |
+
The signature is the block's own: context parallel hooks address `adaln_indices` by name.
|
| 106 |
+
"""
|
| 107 |
+
|
| 108 |
+
def forward(self, hidden_states: Tensor, temb=None, adaln_indices=None, rotary_emb=None, attention_mask=None):
|
| 109 |
+
return hidden_states
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def _replace_linear(model: nn.Module, name: str, make: type[nn.Module], *args: Any) -> None:
|
| 113 |
+
owner_name, _, attr = name.rpartition(".")
|
| 114 |
+
owner = model.get_submodule(owner_name)
|
| 115 |
+
dense = owner[int(attr)] if isinstance(owner, nn.ModuleList) else getattr(owner, attr)
|
| 116 |
+
if type(dense) is not nn.Linear or dense.bias is not None:
|
| 117 |
+
raise TypeError(f"{name} is not a bias-free nn.Linear")
|
| 118 |
+
replacement = make(dense.in_features, dense.out_features, *args)
|
| 119 |
+
if isinstance(owner, nn.ModuleList):
|
| 120 |
+
owner[int(attr)] = replacement
|
| 121 |
+
else:
|
| 122 |
+
setattr(owner, attr, replacement)
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
class HyperFlowH3FlashTransformer3DModel(MiniMaxH3Transformer3DModel):
|
| 126 |
+
"""`MiniMaxH3Transformer3DModel` conditioned on ``(t, r)``, with dropped blocks, low-rank and INT8 linears."""
|
| 127 |
+
|
| 128 |
+
# Matched against whole dotted name parts at load time, so `time_embedder` does not cover the endpoint embedder.
|
| 129 |
+
_keep_in_fp32_modules: ClassVar[list[str]] = [
|
| 130 |
+
*MiniMaxH3Transformer3DModel._keep_in_fp32_modules,
|
| 131 |
+
"endpoint_time_embedder",
|
| 132 |
+
"wscale",
|
| 133 |
+
]
|
| 134 |
+
|
| 135 |
+
@register_to_config
|
| 136 |
+
def __init__(
|
| 137 |
+
self,
|
| 138 |
+
num_attention_heads: int = 56,
|
| 139 |
+
attention_head_dim: int = 128,
|
| 140 |
+
hidden_size: int = 5376,
|
| 141 |
+
num_layers: int = 50,
|
| 142 |
+
num_refiner_layers: int = 2,
|
| 143 |
+
ffn_dim: int = 14336,
|
| 144 |
+
in_channels: int = 24,
|
| 145 |
+
audio_in_channels: int = 32,
|
| 146 |
+
patch_size: tuple[int, int, int] = (1, 2, 2),
|
| 147 |
+
text_dim: int = 5120,
|
| 148 |
+
freq_dim: int = 256,
|
| 149 |
+
time_embed_hidden_dim: int = 5376,
|
| 150 |
+
time_embed_dim: int = 16,
|
| 151 |
+
rope_freq_dim: int = 16,
|
| 152 |
+
rope_theta: float = 10000.0,
|
| 153 |
+
norm_eps: float = 1e-5,
|
| 154 |
+
qk_norm_eps: float = 1e-5,
|
| 155 |
+
final_norm_eps: float = 1e-5,
|
| 156 |
+
hyperflow_gate: float = 0.25,
|
| 157 |
+
dropped_blocks: list[int] | None = None,
|
| 158 |
+
lowrank_ranks: dict[str, int] | None = None,
|
| 159 |
+
quantization: dict[str, Any] | None = None,
|
| 160 |
+
) -> None:
|
| 161 |
+
super().__init__(
|
| 162 |
+
num_attention_heads=num_attention_heads,
|
| 163 |
+
attention_head_dim=attention_head_dim,
|
| 164 |
+
hidden_size=hidden_size,
|
| 165 |
+
num_layers=num_layers,
|
| 166 |
+
num_refiner_layers=num_refiner_layers,
|
| 167 |
+
ffn_dim=ffn_dim,
|
| 168 |
+
in_channels=in_channels,
|
| 169 |
+
audio_in_channels=audio_in_channels,
|
| 170 |
+
patch_size=patch_size,
|
| 171 |
+
text_dim=text_dim,
|
| 172 |
+
freq_dim=freq_dim,
|
| 173 |
+
time_embed_hidden_dim=time_embed_hidden_dim,
|
| 174 |
+
time_embed_dim=time_embed_dim,
|
| 175 |
+
rope_freq_dim=rope_freq_dim,
|
| 176 |
+
rope_theta=rope_theta,
|
| 177 |
+
norm_eps=norm_eps,
|
| 178 |
+
qk_norm_eps=qk_norm_eps,
|
| 179 |
+
final_norm_eps=final_norm_eps,
|
| 180 |
+
)
|
| 181 |
+
self.endpoint_time_embedder = TimestepEmbedding(
|
| 182 |
+
in_channels=freq_dim, time_embed_dim=time_embed_hidden_dim, out_dim=time_embed_dim
|
| 183 |
+
)
|
| 184 |
+
|
| 185 |
+
dropped = set(dropped_blocks or [])
|
| 186 |
+
for index, block in enumerate(self.transformer_blocks):
|
| 187 |
+
if index in dropped:
|
| 188 |
+
self.transformer_blocks[index] = DroppedBlock()
|
| 189 |
+
else:
|
| 190 |
+
block.ff = ChunkedFeedForward(block.ff.net, block.ff.net[-1].out_features, FF_CHUNK_TOKENS)
|
| 191 |
+
for name, rank in (lowrank_ranks or {}).items():
|
| 192 |
+
if int(name.split(".")[1]) not in dropped:
|
| 193 |
+
_replace_linear(self, name, LowRankLinear, int(rank))
|
| 194 |
+
if quantization:
|
| 195 |
+
if quantization.get("method") != "int8_convrot":
|
| 196 |
+
raise ValueError(f"unsupported quantization method {quantization.get('method')!r}")
|
| 197 |
+
for name in quantization["linears"]:
|
| 198 |
+
_replace_linear(self, name, Int8RotLinear, int(quantization["group"]))
|
| 199 |
+
for block in self.transformer_blocks:
|
| 200 |
+
attn = getattr(block, "attn", None)
|
| 201 |
+
for name in ("to_q", "to_k"):
|
| 202 |
+
if isinstance(layer := getattr(attn, name, None), Int8RotLinear):
|
| 203 |
+
layer.keep_input = True
|
| 204 |
+
|
| 205 |
+
def pad_lowrank_ranks(self, multiple: int = RANK_MULTIPLE) -> int:
|
| 206 |
+
"""Zero-pad every low-rank linear to a rank multiple of ``multiple`` (see `LowRankLinear.pad_rank`) for a
|
| 207 |
+
checkpoint stored at its unpadded ranks. Returns how many linears changed."""
|
| 208 |
+
ranks = dict(self.config.lowrank_ranks or {})
|
| 209 |
+
padded = 0
|
| 210 |
+
for name, module in self.named_modules():
|
| 211 |
+
if isinstance(module, LowRankLinear) and module.pad_rank(multiple):
|
| 212 |
+
ranks[name] = module.rank
|
| 213 |
+
padded += 1
|
| 214 |
+
if padded:
|
| 215 |
+
self.register_to_config(lowrank_ranks=ranks)
|
| 216 |
+
return padded
|
| 217 |
+
|
| 218 |
+
def time_embedding(self, timestep: Tensor, endpoint_timestep: Tensor) -> Tensor:
|
| 219 |
+
"""``temb`` of every distinct ``(t, r)`` pair, at the time embedders' precision (fp32)."""
|
| 220 |
+
if endpoint_timestep.shape != timestep.shape:
|
| 221 |
+
raise ValueError(f"endpoint_timestep {list(endpoint_timestep.shape)} != timestep {list(timestep.shape)}")
|
| 222 |
+
dtype = get_parameter_dtype(self.time_embedder)
|
| 223 |
+
current = self.time_embedder(self.time_proj(timestep).to(dtype))
|
| 224 |
+
endpoint = self.endpoint_time_embedder(self.time_proj(endpoint_timestep).to(dtype))
|
| 225 |
+
return current + self.config.hyperflow_gate * (endpoint - current)
|
| 226 |
+
|
| 227 |
+
@apply_lora_scale("attention_kwargs")
|
| 228 |
+
def forward(
|
| 229 |
+
self,
|
| 230 |
+
hidden_states: Tensor,
|
| 231 |
+
audio_hidden_states: Tensor,
|
| 232 |
+
encoder_hidden_states: Tensor,
|
| 233 |
+
timestep: Tensor,
|
| 234 |
+
timestep_indices: Tensor,
|
| 235 |
+
token_tags: Tensor,
|
| 236 |
+
position_ids: Tensor,
|
| 237 |
+
video_indices: Tensor,
|
| 238 |
+
audio_indices: Tensor,
|
| 239 |
+
text_indices: Tensor,
|
| 240 |
+
endpoint_timestep: Tensor | None = None,
|
| 241 |
+
attention_kwargs: dict[str, Any] | None = None,
|
| 242 |
+
return_dict: bool = True,
|
| 243 |
+
) -> MiniMaxH3TransformerOutput | tuple[Tensor, Tensor]:
|
| 244 |
+
"""The base forward plus ``endpoint_timestep``: ``(timestep[i], endpoint_timestep[i])`` is the ``i``-th pair.
|
| 245 |
+
|
| 246 |
+
``timestep_indices`` maps every row of the packed sequence to its pair. Build the pairs with
|
| 247 |
+
`hyperflow_h3_flash.schedule.build_row_time_pairs`, or run the model through `flash_blocks(...)`.
|
| 248 |
+
"""
|
| 249 |
+
if endpoint_timestep is None:
|
| 250 |
+
raise ValueError(
|
| 251 |
+
"HyperFlow H3 Flash needs `endpoint_timestep`, the endpoint `r` of every `(t, r)` pair: it is a "
|
| 252 |
+
"few-step model and has no single-time mode. Run it through `hyperflow_h3_flash.flash_blocks(...)`."
|
| 253 |
+
)
|
| 254 |
+
if position_ids.ndim != 2 or position_ids.shape[-1] != 3:
|
| 255 |
+
raise ValueError(f"`position_ids` must be a `(seq_len, 3)` tensor, got {list(position_ids.shape)}.")
|
| 256 |
+
sequence_length = position_ids.shape[0]
|
| 257 |
+
if token_tags.shape != (sequence_length,) or timestep_indices.shape != (sequence_length,):
|
| 258 |
+
raise ValueError("`token_tags` and `timestep_indices` must both be `(seq_len,)` tensors.")
|
| 259 |
+
|
| 260 |
+
rotary_emb = self.rope(position_ids)
|
| 261 |
+
|
| 262 |
+
video_embeds = self.proj_in(hidden_states.to(get_parameter_dtype(self.proj_in)))
|
| 263 |
+
audio_embeds = self.audio_proj_in(audio_hidden_states.to(get_parameter_dtype(self.audio_proj_in)))
|
| 264 |
+
text_embeds = self.context_embedder(encoder_hidden_states.to(get_parameter_dtype(self.context_embedder)))
|
| 265 |
+
text_embeds = self.token_refiner(text_embeds)
|
| 266 |
+
|
| 267 |
+
hidden_states = text_embeds.new_zeros((text_embeds.shape[0], sequence_length, text_embeds.shape[-1]))
|
| 268 |
+
hidden_states = hidden_states.index_copy(1, text_indices, text_embeds)
|
| 269 |
+
hidden_states = hidden_states.index_copy(1, video_indices, video_embeds.to(text_embeds.dtype))
|
| 270 |
+
hidden_states = hidden_states.index_copy(1, audio_indices, audio_embeds.to(text_embeds.dtype))
|
| 271 |
+
|
| 272 |
+
temb = self.time_embedding(timestep, endpoint_timestep)
|
| 273 |
+
adaln_indices = timestep_indices * MINIMAX_H3_MODALITY_NUM + token_tags
|
| 274 |
+
for block in self.transformer_blocks:
|
| 275 |
+
hidden_states = block(hidden_states, temb, adaln_indices, rotary_emb)
|
| 276 |
+
|
| 277 |
+
hidden_states = self.norm_out(hidden_states, temb, timestep_indices).to(get_parameter_dtype(self.proj_out))
|
| 278 |
+
video_output = self.proj_out(hidden_states).index_select(1, video_indices)
|
| 279 |
+
audio_output = self.audio_proj_out(hidden_states).index_select(1, audio_indices)
|
| 280 |
+
if not return_dict:
|
| 281 |
+
return (video_output, audio_output)
|
| 282 |
+
return MiniMaxH3TransformerOutput(sample=video_output, audio_sample=audio_output)
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
def _used_rank(layer: LowRankLinear) -> int:
|
| 286 |
+
"""The rank without the zero padding (trailing zero rows of ``down`` and columns of ``up``)."""
|
| 287 |
+
used = (layer.down.weight.detach().abs().amax(1) != 0) | (layer.up.weight.detach().abs().amax(0) != 0)
|
| 288 |
+
nonzero = used.nonzero()
|
| 289 |
+
return int(nonzero[-1]) + 1 if len(nonzero) else 1
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
def set_lowrank_rank_multiple(model: nn.Module, multiple: int) -> int:
|
| 293 |
+
"""Re-pad every low-rank linear to a rank multiple of ``multiple`` (0: no padding); returns the layers changed.
|
| 294 |
+
|
| 295 |
+
Zero rows and columns add exact zeros, so any multiple computes the same function; the GEMM shapes change, and with
|
| 296 |
+
them the bf16 rounding (8 is 2 to 7 % faster than 64 on H200). Run time only: the config still lists the stored
|
| 297 |
+
ranks, so do not `save_pretrained` the re-padded model.
|
| 298 |
+
"""
|
| 299 |
+
changed = 0
|
| 300 |
+
for layer in model.modules():
|
| 301 |
+
if not isinstance(layer, LowRankLinear):
|
| 302 |
+
continue
|
| 303 |
+
rank = _used_rank(layer)
|
| 304 |
+
target = -(-rank // multiple) * multiple if multiple > 0 else rank
|
| 305 |
+
if target == layer.rank:
|
| 306 |
+
continue
|
| 307 |
+
down, up = layer.down.weight.detach(), layer.up.weight.detach()
|
| 308 |
+
if target < layer.rank:
|
| 309 |
+
down, up = down[:target], up[:, :target]
|
| 310 |
+
else:
|
| 311 |
+
down = torch.cat([down, down.new_zeros(target - layer.rank, down.shape[1])])
|
| 312 |
+
up = torch.cat([up, up.new_zeros(up.shape[0], target - layer.rank)], dim=1)
|
| 313 |
+
layer.down.weight = nn.Parameter(down.contiguous(), requires_grad=False)
|
| 314 |
+
layer.up.weight = nn.Parameter(up.contiguous(), requires_grad=False)
|
| 315 |
+
layer.rank = layer.down.out_features = layer.up.in_features = target
|
| 316 |
+
changed += 1
|
| 317 |
+
return changed
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
def set_ff_chunk(model: nn.Module, tokens: int) -> None:
|
| 321 |
+
"""Run every feed-forward over at most ``tokens`` tokens at a time (0: whole sequence)."""
|
| 322 |
+
for module in model.modules():
|
| 323 |
+
if isinstance(module, ChunkedFeedForward):
|
| 324 |
+
module.chunk_tokens = tokens if tokens > 0 else sys.maxsize
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
def chunk_block(block: nn.Module, chunk: int) -> None:
|
| 328 |
+
"""Run every token-wise op of a transformer block over ``chunk``-token slices; only the attention sees all of q /
|
| 329 |
+
k / v.
|
| 330 |
+
|
| 331 |
+
The unchunked block holds about a dozen ``(seq, hidden)`` tensors at once (each modulation picked per token, the
|
| 332 |
+
modulated norm, the residual sums), 1.2 GB apiece at 108k tokens. Per-row results are the same up to the bf16 GEMM
|
| 333 |
+
rounding for the smaller row count. Apply before context parallelism and offloading, which hook the block.
|
| 334 |
+
"""
|
| 335 |
+
import diffusers.models.transformers.transformer_minimax_h3 as h3
|
| 336 |
+
|
| 337 |
+
attn = block.attn
|
| 338 |
+
|
| 339 |
+
def forward(hidden_states, temb, adaln_indices, rotary_emb, attention_mask=None):
|
| 340 |
+
shift_msa, scale_msa, gate_msa, shift_mlp, scale_mlp, gate_mlp = block.adaln_proj(temb)
|
| 341 |
+
batch, seq, _ = hidden_states.shape
|
| 342 |
+
cos, sin = rotary_emb
|
| 343 |
+
qkv = None
|
| 344 |
+
for start in range(0, seq, chunk):
|
| 345 |
+
rows = slice(start, min(start + chunk, seq))
|
| 346 |
+
idx = adaln_indices[rows]
|
| 347 |
+
h = block.norm1(hidden_states[:, rows])
|
| 348 |
+
h = h * (1.0 + scale_msa.index_select(0, idx)) + shift_msa.index_select(0, idx)
|
| 349 |
+
parts = []
|
| 350 |
+
for proj, norm in ((attn.to_q, attn.norm_q), (attn.to_k, attn.norm_k), (attn.to_v, None)):
|
| 351 |
+
x = proj(h).unflatten(-1, (attn.heads, -1))
|
| 352 |
+
if norm is not None:
|
| 353 |
+
x = h3._apply_rotary_emb(norm(x), cos[rows], sin[rows])
|
| 354 |
+
parts.append(x)
|
| 355 |
+
if qkv is None:
|
| 356 |
+
qkv = [x.new_empty((batch, seq, *x.shape[2:])) for x in parts]
|
| 357 |
+
for full, x in zip(qkv, parts, strict=True):
|
| 358 |
+
full[:, rows] = x
|
| 359 |
+
del h, parts, x
|
| 360 |
+
out = h3.dispatch_attention_fn(
|
| 361 |
+
*qkv,
|
| 362 |
+
attn_mask=attention_mask,
|
| 363 |
+
dropout_p=0.0,
|
| 364 |
+
is_causal=False,
|
| 365 |
+
backend=attn.processor._attention_backend,
|
| 366 |
+
parallel_config=attn.processor._parallel_config,
|
| 367 |
+
)
|
| 368 |
+
dtype = qkv[0].dtype
|
| 369 |
+
del qkv
|
| 370 |
+
result = torch.empty_like(hidden_states)
|
| 371 |
+
for start in range(0, seq, chunk):
|
| 372 |
+
rows = slice(start, min(start + chunk, seq))
|
| 373 |
+
idx = adaln_indices[rows]
|
| 374 |
+
a = attn.to_out[1](attn.to_out[0](out[:, rows].flatten(2, 3).to(dtype)))
|
| 375 |
+
h = hidden_states[:, rows] + gate_msa.index_select(0, idx) * a
|
| 376 |
+
n = block.norm2(h)
|
| 377 |
+
n = n * (1.0 + scale_mlp.index_select(0, idx)) + shift_mlp.index_select(0, idx)
|
| 378 |
+
result[:, rows] = h + gate_mlp.index_select(0, idx) * block.ff(n)
|
| 379 |
+
del a, h, n
|
| 380 |
+
return result
|
| 381 |
+
|
| 382 |
+
block.forward = forward
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
def set_block_chunk(model: nn.Module, tokens: int) -> None:
|
| 386 |
+
"""`chunk_block` on every kept block (0: off). Call once, before context parallelism and offloading."""
|
| 387 |
+
if tokens > 0:
|
| 388 |
+
for block in model.transformer_blocks:
|
| 389 |
+
if not isinstance(block, DroppedBlock):
|
| 390 |
+
chunk_block(block, tokens)
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
__all__ = [
|
| 394 |
+
"RANK_MULTIPLE",
|
| 395 |
+
"ChunkedFeedForward",
|
| 396 |
+
"DroppedBlock",
|
| 397 |
+
"HyperFlowH3FlashTransformer3DModel",
|
| 398 |
+
"LowRankLinear",
|
| 399 |
+
"chunk_block",
|
| 400 |
+
"set_block_chunk",
|
| 401 |
+
"set_ff_chunk",
|
| 402 |
+
"set_lowrank_rank_multiple",
|
| 403 |
+
]
|
ref2va_bf16/config.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "HyperFlowH3FlashTransformer3DModel",
|
| 3 |
+
"_diffusers_version": "0.36.0.dev0",
|
| 4 |
+
"num_attention_heads": 56,
|
| 5 |
+
"attention_head_dim": 128,
|
| 6 |
+
"hidden_size": 5376,
|
| 7 |
+
"num_layers": 50,
|
| 8 |
+
"num_refiner_layers": 2,
|
| 9 |
+
"ffn_dim": 14336,
|
| 10 |
+
"in_channels": 24,
|
| 11 |
+
"audio_in_channels": 32,
|
| 12 |
+
"patch_size": [
|
| 13 |
+
1,
|
| 14 |
+
2,
|
| 15 |
+
2
|
| 16 |
+
],
|
| 17 |
+
"text_dim": 5120,
|
| 18 |
+
"freq_dim": 256,
|
| 19 |
+
"time_embed_hidden_dim": 5376,
|
| 20 |
+
"time_embed_dim": 16,
|
| 21 |
+
"rope_freq_dim": 16,
|
| 22 |
+
"rope_theta": 10000.0,
|
| 23 |
+
"norm_eps": 1e-05,
|
| 24 |
+
"qk_norm_eps": 1e-05,
|
| 25 |
+
"final_norm_eps": 1e-05,
|
| 26 |
+
"hyperflow_gate": 0.25,
|
| 27 |
+
"lowrank_ranks": {
|
| 28 |
+
"transformer_blocks.1.attn.to_k": 990,
|
| 29 |
+
"transformer_blocks.1.attn.to_out.0": 1872,
|
| 30 |
+
"transformer_blocks.1.attn.to_q": 1102,
|
| 31 |
+
"transformer_blocks.1.attn.to_v": 1200,
|
| 32 |
+
"transformer_blocks.1.ff.net.0.proj": 2516,
|
| 33 |
+
"transformer_blocks.1.ff.net.2": 3120,
|
| 34 |
+
"transformer_blocks.10.attn.to_k": 275,
|
| 35 |
+
"transformer_blocks.10.attn.to_out.0": 362,
|
| 36 |
+
"transformer_blocks.10.attn.to_q": 269,
|
| 37 |
+
"transformer_blocks.10.attn.to_v": 471,
|
| 38 |
+
"transformer_blocks.10.ff.net.0.proj": 359,
|
| 39 |
+
"transformer_blocks.10.ff.net.2": 1436,
|
| 40 |
+
"transformer_blocks.11.attn.to_k": 420,
|
| 41 |
+
"transformer_blocks.11.attn.to_out.0": 572,
|
| 42 |
+
"transformer_blocks.11.attn.to_q": 426,
|
| 43 |
+
"transformer_blocks.11.attn.to_v": 673,
|
| 44 |
+
"transformer_blocks.11.ff.net.0.proj": 604,
|
| 45 |
+
"transformer_blocks.11.ff.net.2": 557,
|
| 46 |
+
"transformer_blocks.12.attn.to_k": 171,
|
| 47 |
+
"transformer_blocks.12.attn.to_out.0": 210,
|
| 48 |
+
"transformer_blocks.12.attn.to_q": 181,
|
| 49 |
+
"transformer_blocks.12.attn.to_v": 342,
|
| 50 |
+
"transformer_blocks.12.ff.net.0.proj": 247,
|
| 51 |
+
"transformer_blocks.12.ff.net.2": 953,
|
| 52 |
+
"transformer_blocks.13.attn.to_k": 379,
|
| 53 |
+
"transformer_blocks.13.attn.to_out.0": 474,
|
| 54 |
+
"transformer_blocks.13.attn.to_q": 381,
|
| 55 |
+
"transformer_blocks.13.attn.to_v": 582,
|
| 56 |
+
"transformer_blocks.13.ff.net.0.proj": 462,
|
| 57 |
+
"transformer_blocks.13.ff.net.2": 1,
|
| 58 |
+
"transformer_blocks.14.attn.to_k": 286,
|
| 59 |
+
"transformer_blocks.14.attn.to_out.0": 376,
|
| 60 |
+
"transformer_blocks.14.attn.to_q": 305,
|
| 61 |
+
"transformer_blocks.14.attn.to_v": 505,
|
| 62 |
+
"transformer_blocks.14.ff.net.0.proj": 374,
|
| 63 |
+
"transformer_blocks.14.ff.net.2": 1348,
|
| 64 |
+
"transformer_blocks.15.attn.to_k": 155,
|
| 65 |
+
"transformer_blocks.15.attn.to_out.0": 261,
|
| 66 |
+
"transformer_blocks.15.attn.to_q": 167,
|
| 67 |
+
"transformer_blocks.15.attn.to_v": 311,
|
| 68 |
+
"transformer_blocks.15.ff.net.0.proj": 201,
|
| 69 |
+
"transformer_blocks.15.ff.net.2": 1038,
|
| 70 |
+
"transformer_blocks.16.attn.to_k": 239,
|
| 71 |
+
"transformer_blocks.16.attn.to_out.0": 400,
|
| 72 |
+
"transformer_blocks.16.attn.to_q": 246,
|
| 73 |
+
"transformer_blocks.16.attn.to_v": 440,
|
| 74 |
+
"transformer_blocks.16.ff.net.0.proj": 335,
|
| 75 |
+
"transformer_blocks.16.ff.net.2": 1510,
|
| 76 |
+
"transformer_blocks.17.attn.to_k": 951,
|
| 77 |
+
"transformer_blocks.17.attn.to_out.0": 1116,
|
| 78 |
+
"transformer_blocks.17.attn.to_q": 952,
|
| 79 |
+
"transformer_blocks.17.attn.to_v": 1216,
|
| 80 |
+
"transformer_blocks.17.ff.net.0.proj": 1325,
|
| 81 |
+
"transformer_blocks.17.ff.net.2": 2836,
|
| 82 |
+
"transformer_blocks.18.attn.to_k": 121,
|
| 83 |
+
"transformer_blocks.18.attn.to_out.0": 279,
|
| 84 |
+
"transformer_blocks.18.attn.to_q": 140,
|
| 85 |
+
"transformer_blocks.18.attn.to_v": 287,
|
| 86 |
+
"transformer_blocks.18.ff.net.0.proj": 234,
|
| 87 |
+
"transformer_blocks.18.ff.net.2": 1024,
|
| 88 |
+
"transformer_blocks.20.attn.to_k": 433,
|
| 89 |
+
"transformer_blocks.20.attn.to_out.0": 725,
|
| 90 |
+
"transformer_blocks.20.attn.to_q": 445,
|
| 91 |
+
"transformer_blocks.20.attn.to_v": 656,
|
| 92 |
+
"transformer_blocks.20.ff.net.0.proj": 698,
|
| 93 |
+
"transformer_blocks.20.ff.net.2": 2243,
|
| 94 |
+
"transformer_blocks.21.attn.to_k": 389,
|
| 95 |
+
"transformer_blocks.21.attn.to_out.0": 704,
|
| 96 |
+
"transformer_blocks.21.attn.to_q": 434,
|
| 97 |
+
"transformer_blocks.21.attn.to_v": 669,
|
| 98 |
+
"transformer_blocks.21.ff.net.0.proj": 711,
|
| 99 |
+
"transformer_blocks.21.ff.net.2": 2261,
|
| 100 |
+
"transformer_blocks.22.attn.to_k": 170,
|
| 101 |
+
"transformer_blocks.22.attn.to_out.0": 459,
|
| 102 |
+
"transformer_blocks.22.attn.to_q": 199,
|
| 103 |
+
"transformer_blocks.22.attn.to_v": 385,
|
| 104 |
+
"transformer_blocks.22.ff.net.0.proj": 378,
|
| 105 |
+
"transformer_blocks.22.ff.net.2": 1507,
|
| 106 |
+
"transformer_blocks.23.attn.to_k": 78,
|
| 107 |
+
"transformer_blocks.23.attn.to_out.0": 261,
|
| 108 |
+
"transformer_blocks.23.attn.to_q": 103,
|
| 109 |
+
"transformer_blocks.23.attn.to_v": 227,
|
| 110 |
+
"transformer_blocks.23.ff.net.0.proj": 221,
|
| 111 |
+
"transformer_blocks.23.ff.net.2": 1147,
|
| 112 |
+
"transformer_blocks.4.attn.to_k": 284,
|
| 113 |
+
"transformer_blocks.4.attn.to_out.0": 398,
|
| 114 |
+
"transformer_blocks.4.attn.to_q": 265,
|
| 115 |
+
"transformer_blocks.4.attn.to_v": 403,
|
| 116 |
+
"transformer_blocks.4.ff.net.0.proj": 546,
|
| 117 |
+
"transformer_blocks.4.ff.net.2": 1130,
|
| 118 |
+
"transformer_blocks.5.attn.to_k": 224,
|
| 119 |
+
"transformer_blocks.5.attn.to_out.0": 424,
|
| 120 |
+
"transformer_blocks.5.attn.to_q": 224,
|
| 121 |
+
"transformer_blocks.5.attn.to_v": 413,
|
| 122 |
+
"transformer_blocks.5.ff.net.0.proj": 991,
|
| 123 |
+
"transformer_blocks.5.ff.net.2": 2357,
|
| 124 |
+
"transformer_blocks.6.attn.to_k": 439,
|
| 125 |
+
"transformer_blocks.6.attn.to_out.0": 673,
|
| 126 |
+
"transformer_blocks.6.attn.to_q": 428,
|
| 127 |
+
"transformer_blocks.6.attn.to_v": 607,
|
| 128 |
+
"transformer_blocks.6.ff.net.0.proj": 836,
|
| 129 |
+
"transformer_blocks.6.ff.net.2": 2076,
|
| 130 |
+
"transformer_blocks.7.attn.to_k": 621,
|
| 131 |
+
"transformer_blocks.7.attn.to_out.0": 815,
|
| 132 |
+
"transformer_blocks.7.attn.to_q": 626,
|
| 133 |
+
"transformer_blocks.7.attn.to_v": 864,
|
| 134 |
+
"transformer_blocks.7.ff.net.0.proj": 986,
|
| 135 |
+
"transformer_blocks.7.ff.net.2": 1322,
|
| 136 |
+
"transformer_blocks.8.attn.to_k": 483,
|
| 137 |
+
"transformer_blocks.8.attn.to_out.0": 609,
|
| 138 |
+
"transformer_blocks.8.attn.to_q": 479,
|
| 139 |
+
"transformer_blocks.8.attn.to_v": 704,
|
| 140 |
+
"transformer_blocks.8.ff.net.0.proj": 802,
|
| 141 |
+
"transformer_blocks.8.ff.net.2": 2054
|
| 142 |
+
},
|
| 143 |
+
"dropped_blocks": [
|
| 144 |
+
9
|
| 145 |
+
],
|
| 146 |
+
"auto_map": {
|
| 147 |
+
"AutoModel": "hyperflow_h3_flash_transformer.HyperFlowH3FlashTransformer3DModel"
|
| 148 |
+
}
|
| 149 |
+
}
|
ref2va_bf16/diffusion_pytorch_model-00001-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9348c719cb1aa0efb243546d9954b87b6fe19b0e43c67054cc89fb665a47fb9f
|
| 3 |
+
size 5317891296
|
ref2va_bf16/diffusion_pytorch_model-00002-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96b15d3c7ab9f7f7f6762d7fa27cd79265eb257106afbec1bb053d2bcdb42be7
|
| 3 |
+
size 5235274672
|
ref2va_bf16/diffusion_pytorch_model-00003-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfb76218b5dc58070dc26fc4a5d4b82842350115fb30cd20e46c0824ea6db6ec
|
| 3 |
+
size 5109836704
|
ref2va_bf16/diffusion_pytorch_model-00004-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f4251f77eaee84a207df4382ae4b6a7f2156c01abf9e9103125b5664cbd14520
|
| 3 |
+
size 5305819424
|
ref2va_bf16/diffusion_pytorch_model-00005-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efbb43cc5cc52097b7f4f012a6490845bb1fe902107230af4f3840d82f774458
|
| 3 |
+
size 5341047736
|
ref2va_bf16/diffusion_pytorch_model-00006-of-00006.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98cee8a1b6fe1b22bb0af11f99a047dbce565d5c7f38429a2249809817d588e0
|
| 3 |
+
size 1554596528
|
ref2va_bf16/diffusion_pytorch_model.safetensors.index.json
ADDED
|
@@ -0,0 +1,751 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metadata": {
|
| 3 |
+
"total_size": 27864379520
|
| 4 |
+
},
|
| 5 |
+
"weight_map": {
|
| 6 |
+
"audio_proj_in.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 7 |
+
"audio_proj_in.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 8 |
+
"audio_proj_out.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 9 |
+
"audio_proj_out.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 10 |
+
"context_embedder.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 11 |
+
"context_embedder.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 12 |
+
"endpoint_time_embedder.linear_1.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 13 |
+
"endpoint_time_embedder.linear_1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 14 |
+
"endpoint_time_embedder.linear_2.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 15 |
+
"endpoint_time_embedder.linear_2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 16 |
+
"norm_out.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 17 |
+
"norm_out.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 18 |
+
"norm_out.norm.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 19 |
+
"proj_in.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 20 |
+
"proj_in.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 21 |
+
"proj_out.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 22 |
+
"proj_out.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 23 |
+
"time_embedder.linear_1.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 24 |
+
"time_embedder.linear_1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 25 |
+
"time_embedder.linear_2.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 26 |
+
"time_embedder.linear_2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 27 |
+
"token_refiner.final_norm.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 28 |
+
"token_refiner.refiner_blocks.0.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 29 |
+
"token_refiner.refiner_blocks.0.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 30 |
+
"token_refiner.refiner_blocks.0.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 31 |
+
"token_refiner.refiner_blocks.0.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 32 |
+
"token_refiner.refiner_blocks.0.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 33 |
+
"token_refiner.refiner_blocks.0.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 34 |
+
"token_refiner.refiner_blocks.0.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 35 |
+
"token_refiner.refiner_blocks.0.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 36 |
+
"token_refiner.refiner_blocks.0.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 37 |
+
"token_refiner.refiner_blocks.0.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 38 |
+
"token_refiner.refiner_blocks.1.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 39 |
+
"token_refiner.refiner_blocks.1.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 40 |
+
"token_refiner.refiner_blocks.1.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 41 |
+
"token_refiner.refiner_blocks.1.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 42 |
+
"token_refiner.refiner_blocks.1.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 43 |
+
"token_refiner.refiner_blocks.1.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 44 |
+
"token_refiner.refiner_blocks.1.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 45 |
+
"token_refiner.refiner_blocks.1.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 46 |
+
"token_refiner.refiner_blocks.1.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 47 |
+
"token_refiner.refiner_blocks.1.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 48 |
+
"transformer_blocks.0.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 49 |
+
"transformer_blocks.0.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 50 |
+
"transformer_blocks.0.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 51 |
+
"transformer_blocks.0.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 52 |
+
"transformer_blocks.0.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 53 |
+
"transformer_blocks.0.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 54 |
+
"transformer_blocks.0.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 55 |
+
"transformer_blocks.0.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 56 |
+
"transformer_blocks.0.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 57 |
+
"transformer_blocks.0.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 58 |
+
"transformer_blocks.0.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 59 |
+
"transformer_blocks.0.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 60 |
+
"transformer_blocks.1.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 61 |
+
"transformer_blocks.1.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 62 |
+
"transformer_blocks.1.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 63 |
+
"transformer_blocks.1.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 64 |
+
"transformer_blocks.1.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 65 |
+
"transformer_blocks.1.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 66 |
+
"transformer_blocks.1.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 67 |
+
"transformer_blocks.1.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 68 |
+
"transformer_blocks.1.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 69 |
+
"transformer_blocks.1.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 70 |
+
"transformer_blocks.1.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 71 |
+
"transformer_blocks.1.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 72 |
+
"transformer_blocks.1.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 73 |
+
"transformer_blocks.1.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 74 |
+
"transformer_blocks.1.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 75 |
+
"transformer_blocks.1.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 76 |
+
"transformer_blocks.1.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 77 |
+
"transformer_blocks.1.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 78 |
+
"transformer_blocks.10.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 79 |
+
"transformer_blocks.10.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 80 |
+
"transformer_blocks.10.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 81 |
+
"transformer_blocks.10.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 82 |
+
"transformer_blocks.10.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 83 |
+
"transformer_blocks.10.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 84 |
+
"transformer_blocks.10.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 85 |
+
"transformer_blocks.10.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 86 |
+
"transformer_blocks.10.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 87 |
+
"transformer_blocks.10.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 88 |
+
"transformer_blocks.10.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 89 |
+
"transformer_blocks.10.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 90 |
+
"transformer_blocks.10.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 91 |
+
"transformer_blocks.10.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 92 |
+
"transformer_blocks.10.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 93 |
+
"transformer_blocks.10.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 94 |
+
"transformer_blocks.10.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 95 |
+
"transformer_blocks.10.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 96 |
+
"transformer_blocks.11.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 97 |
+
"transformer_blocks.11.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 98 |
+
"transformer_blocks.11.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 99 |
+
"transformer_blocks.11.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 100 |
+
"transformer_blocks.11.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 101 |
+
"transformer_blocks.11.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 102 |
+
"transformer_blocks.11.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 103 |
+
"transformer_blocks.11.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 104 |
+
"transformer_blocks.11.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 105 |
+
"transformer_blocks.11.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 106 |
+
"transformer_blocks.11.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 107 |
+
"transformer_blocks.11.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 108 |
+
"transformer_blocks.11.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 109 |
+
"transformer_blocks.11.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 110 |
+
"transformer_blocks.11.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 111 |
+
"transformer_blocks.11.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 112 |
+
"transformer_blocks.11.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 113 |
+
"transformer_blocks.11.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 114 |
+
"transformer_blocks.12.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 115 |
+
"transformer_blocks.12.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 116 |
+
"transformer_blocks.12.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 117 |
+
"transformer_blocks.12.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 118 |
+
"transformer_blocks.12.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 119 |
+
"transformer_blocks.12.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 120 |
+
"transformer_blocks.12.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 121 |
+
"transformer_blocks.12.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 122 |
+
"transformer_blocks.12.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 123 |
+
"transformer_blocks.12.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 124 |
+
"transformer_blocks.12.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 125 |
+
"transformer_blocks.12.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 126 |
+
"transformer_blocks.12.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 127 |
+
"transformer_blocks.12.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 128 |
+
"transformer_blocks.12.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 129 |
+
"transformer_blocks.12.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 130 |
+
"transformer_blocks.12.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 131 |
+
"transformer_blocks.12.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 132 |
+
"transformer_blocks.13.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 133 |
+
"transformer_blocks.13.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 134 |
+
"transformer_blocks.13.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 135 |
+
"transformer_blocks.13.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 136 |
+
"transformer_blocks.13.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 137 |
+
"transformer_blocks.13.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 138 |
+
"transformer_blocks.13.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 139 |
+
"transformer_blocks.13.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 140 |
+
"transformer_blocks.13.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 141 |
+
"transformer_blocks.13.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 142 |
+
"transformer_blocks.13.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 143 |
+
"transformer_blocks.13.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 144 |
+
"transformer_blocks.13.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 145 |
+
"transformer_blocks.13.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 146 |
+
"transformer_blocks.13.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 147 |
+
"transformer_blocks.13.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 148 |
+
"transformer_blocks.13.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 149 |
+
"transformer_blocks.13.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 150 |
+
"transformer_blocks.14.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 151 |
+
"transformer_blocks.14.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 152 |
+
"transformer_blocks.14.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 153 |
+
"transformer_blocks.14.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 154 |
+
"transformer_blocks.14.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 155 |
+
"transformer_blocks.14.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 156 |
+
"transformer_blocks.14.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 157 |
+
"transformer_blocks.14.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 158 |
+
"transformer_blocks.14.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 159 |
+
"transformer_blocks.14.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 160 |
+
"transformer_blocks.14.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 161 |
+
"transformer_blocks.14.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 162 |
+
"transformer_blocks.14.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 163 |
+
"transformer_blocks.14.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 164 |
+
"transformer_blocks.14.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 165 |
+
"transformer_blocks.14.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 166 |
+
"transformer_blocks.14.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 167 |
+
"transformer_blocks.14.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 168 |
+
"transformer_blocks.15.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 169 |
+
"transformer_blocks.15.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 170 |
+
"transformer_blocks.15.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 171 |
+
"transformer_blocks.15.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 172 |
+
"transformer_blocks.15.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 173 |
+
"transformer_blocks.15.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 174 |
+
"transformer_blocks.15.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 175 |
+
"transformer_blocks.15.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 176 |
+
"transformer_blocks.15.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 177 |
+
"transformer_blocks.15.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 178 |
+
"transformer_blocks.15.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 179 |
+
"transformer_blocks.15.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 180 |
+
"transformer_blocks.15.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 181 |
+
"transformer_blocks.15.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 182 |
+
"transformer_blocks.15.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 183 |
+
"transformer_blocks.15.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 184 |
+
"transformer_blocks.15.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 185 |
+
"transformer_blocks.15.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 186 |
+
"transformer_blocks.16.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 187 |
+
"transformer_blocks.16.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 188 |
+
"transformer_blocks.16.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 189 |
+
"transformer_blocks.16.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 190 |
+
"transformer_blocks.16.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 191 |
+
"transformer_blocks.16.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 192 |
+
"transformer_blocks.16.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 193 |
+
"transformer_blocks.16.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 194 |
+
"transformer_blocks.16.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 195 |
+
"transformer_blocks.16.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 196 |
+
"transformer_blocks.16.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 197 |
+
"transformer_blocks.16.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 198 |
+
"transformer_blocks.16.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 199 |
+
"transformer_blocks.16.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 200 |
+
"transformer_blocks.16.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 201 |
+
"transformer_blocks.16.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 202 |
+
"transformer_blocks.16.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 203 |
+
"transformer_blocks.16.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 204 |
+
"transformer_blocks.17.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 205 |
+
"transformer_blocks.17.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 206 |
+
"transformer_blocks.17.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 207 |
+
"transformer_blocks.17.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 208 |
+
"transformer_blocks.17.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 209 |
+
"transformer_blocks.17.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 210 |
+
"transformer_blocks.17.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 211 |
+
"transformer_blocks.17.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 212 |
+
"transformer_blocks.17.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 213 |
+
"transformer_blocks.17.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 214 |
+
"transformer_blocks.17.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 215 |
+
"transformer_blocks.17.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 216 |
+
"transformer_blocks.17.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 217 |
+
"transformer_blocks.17.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 218 |
+
"transformer_blocks.17.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 219 |
+
"transformer_blocks.17.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 220 |
+
"transformer_blocks.17.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 221 |
+
"transformer_blocks.17.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 222 |
+
"transformer_blocks.18.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 223 |
+
"transformer_blocks.18.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 224 |
+
"transformer_blocks.18.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 225 |
+
"transformer_blocks.18.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 226 |
+
"transformer_blocks.18.attn.to_k.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 227 |
+
"transformer_blocks.18.attn.to_k.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 228 |
+
"transformer_blocks.18.attn.to_out.0.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 229 |
+
"transformer_blocks.18.attn.to_out.0.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 230 |
+
"transformer_blocks.18.attn.to_q.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 231 |
+
"transformer_blocks.18.attn.to_q.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 232 |
+
"transformer_blocks.18.attn.to_v.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 233 |
+
"transformer_blocks.18.attn.to_v.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 234 |
+
"transformer_blocks.18.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 235 |
+
"transformer_blocks.18.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 236 |
+
"transformer_blocks.18.ff.net.2.down.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 237 |
+
"transformer_blocks.18.ff.net.2.up.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 238 |
+
"transformer_blocks.18.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 239 |
+
"transformer_blocks.18.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 240 |
+
"transformer_blocks.19.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 241 |
+
"transformer_blocks.19.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 242 |
+
"transformer_blocks.19.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 243 |
+
"transformer_blocks.19.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 244 |
+
"transformer_blocks.19.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 245 |
+
"transformer_blocks.19.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 246 |
+
"transformer_blocks.19.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 247 |
+
"transformer_blocks.19.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 248 |
+
"transformer_blocks.19.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 249 |
+
"transformer_blocks.19.ff.net.2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 250 |
+
"transformer_blocks.19.norm1.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 251 |
+
"transformer_blocks.19.norm2.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 252 |
+
"transformer_blocks.2.adaln_proj.linear.bias": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 253 |
+
"transformer_blocks.2.adaln_proj.linear.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 254 |
+
"transformer_blocks.2.attn.norm_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 255 |
+
"transformer_blocks.2.attn.norm_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 256 |
+
"transformer_blocks.2.attn.to_k.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 257 |
+
"transformer_blocks.2.attn.to_out.0.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 258 |
+
"transformer_blocks.2.attn.to_q.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 259 |
+
"transformer_blocks.2.attn.to_v.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 260 |
+
"transformer_blocks.2.ff.net.0.proj.weight": "diffusion_pytorch_model-00001-of-00006.safetensors",
|
| 261 |
+
"transformer_blocks.2.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 262 |
+
"transformer_blocks.2.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 263 |
+
"transformer_blocks.2.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 264 |
+
"transformer_blocks.20.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 265 |
+
"transformer_blocks.20.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 266 |
+
"transformer_blocks.20.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 267 |
+
"transformer_blocks.20.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 268 |
+
"transformer_blocks.20.attn.to_k.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 269 |
+
"transformer_blocks.20.attn.to_k.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 270 |
+
"transformer_blocks.20.attn.to_out.0.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 271 |
+
"transformer_blocks.20.attn.to_out.0.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 272 |
+
"transformer_blocks.20.attn.to_q.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 273 |
+
"transformer_blocks.20.attn.to_q.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 274 |
+
"transformer_blocks.20.attn.to_v.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 275 |
+
"transformer_blocks.20.attn.to_v.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 276 |
+
"transformer_blocks.20.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 277 |
+
"transformer_blocks.20.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 278 |
+
"transformer_blocks.20.ff.net.2.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 279 |
+
"transformer_blocks.20.ff.net.2.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 280 |
+
"transformer_blocks.20.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 281 |
+
"transformer_blocks.20.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 282 |
+
"transformer_blocks.21.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 283 |
+
"transformer_blocks.21.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 284 |
+
"transformer_blocks.21.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 285 |
+
"transformer_blocks.21.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 286 |
+
"transformer_blocks.21.attn.to_k.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 287 |
+
"transformer_blocks.21.attn.to_k.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 288 |
+
"transformer_blocks.21.attn.to_out.0.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 289 |
+
"transformer_blocks.21.attn.to_out.0.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 290 |
+
"transformer_blocks.21.attn.to_q.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 291 |
+
"transformer_blocks.21.attn.to_q.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 292 |
+
"transformer_blocks.21.attn.to_v.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 293 |
+
"transformer_blocks.21.attn.to_v.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 294 |
+
"transformer_blocks.21.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 295 |
+
"transformer_blocks.21.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 296 |
+
"transformer_blocks.21.ff.net.2.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 297 |
+
"transformer_blocks.21.ff.net.2.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 298 |
+
"transformer_blocks.21.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 299 |
+
"transformer_blocks.21.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 300 |
+
"transformer_blocks.22.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 301 |
+
"transformer_blocks.22.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 302 |
+
"transformer_blocks.22.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 303 |
+
"transformer_blocks.22.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 304 |
+
"transformer_blocks.22.attn.to_k.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 305 |
+
"transformer_blocks.22.attn.to_k.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 306 |
+
"transformer_blocks.22.attn.to_out.0.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 307 |
+
"transformer_blocks.22.attn.to_out.0.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 308 |
+
"transformer_blocks.22.attn.to_q.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 309 |
+
"transformer_blocks.22.attn.to_q.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 310 |
+
"transformer_blocks.22.attn.to_v.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 311 |
+
"transformer_blocks.22.attn.to_v.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 312 |
+
"transformer_blocks.22.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 313 |
+
"transformer_blocks.22.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 314 |
+
"transformer_blocks.22.ff.net.2.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 315 |
+
"transformer_blocks.22.ff.net.2.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 316 |
+
"transformer_blocks.22.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 317 |
+
"transformer_blocks.22.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 318 |
+
"transformer_blocks.23.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 319 |
+
"transformer_blocks.23.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 320 |
+
"transformer_blocks.23.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 321 |
+
"transformer_blocks.23.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 322 |
+
"transformer_blocks.23.attn.to_k.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 323 |
+
"transformer_blocks.23.attn.to_k.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 324 |
+
"transformer_blocks.23.attn.to_out.0.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 325 |
+
"transformer_blocks.23.attn.to_out.0.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 326 |
+
"transformer_blocks.23.attn.to_q.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 327 |
+
"transformer_blocks.23.attn.to_q.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 328 |
+
"transformer_blocks.23.attn.to_v.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 329 |
+
"transformer_blocks.23.attn.to_v.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 330 |
+
"transformer_blocks.23.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 331 |
+
"transformer_blocks.23.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 332 |
+
"transformer_blocks.23.ff.net.2.down.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 333 |
+
"transformer_blocks.23.ff.net.2.up.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 334 |
+
"transformer_blocks.23.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 335 |
+
"transformer_blocks.23.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 336 |
+
"transformer_blocks.24.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 337 |
+
"transformer_blocks.24.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 338 |
+
"transformer_blocks.24.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 339 |
+
"transformer_blocks.24.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 340 |
+
"transformer_blocks.24.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 341 |
+
"transformer_blocks.24.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 342 |
+
"transformer_blocks.24.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 343 |
+
"transformer_blocks.24.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 344 |
+
"transformer_blocks.24.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 345 |
+
"transformer_blocks.24.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 346 |
+
"transformer_blocks.24.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 347 |
+
"transformer_blocks.24.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 348 |
+
"transformer_blocks.25.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 349 |
+
"transformer_blocks.25.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 350 |
+
"transformer_blocks.25.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 351 |
+
"transformer_blocks.25.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 352 |
+
"transformer_blocks.25.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 353 |
+
"transformer_blocks.25.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 354 |
+
"transformer_blocks.25.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 355 |
+
"transformer_blocks.25.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 356 |
+
"transformer_blocks.25.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 357 |
+
"transformer_blocks.25.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 358 |
+
"transformer_blocks.25.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 359 |
+
"transformer_blocks.25.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 360 |
+
"transformer_blocks.26.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 361 |
+
"transformer_blocks.26.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 362 |
+
"transformer_blocks.26.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 363 |
+
"transformer_blocks.26.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 364 |
+
"transformer_blocks.26.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 365 |
+
"transformer_blocks.26.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 366 |
+
"transformer_blocks.26.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 367 |
+
"transformer_blocks.26.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 368 |
+
"transformer_blocks.26.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 369 |
+
"transformer_blocks.26.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 370 |
+
"transformer_blocks.26.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 371 |
+
"transformer_blocks.26.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 372 |
+
"transformer_blocks.27.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 373 |
+
"transformer_blocks.27.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 374 |
+
"transformer_blocks.27.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 375 |
+
"transformer_blocks.27.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 376 |
+
"transformer_blocks.27.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 377 |
+
"transformer_blocks.27.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 378 |
+
"transformer_blocks.27.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 379 |
+
"transformer_blocks.27.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 380 |
+
"transformer_blocks.27.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 381 |
+
"transformer_blocks.27.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 382 |
+
"transformer_blocks.27.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 383 |
+
"transformer_blocks.27.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 384 |
+
"transformer_blocks.28.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 385 |
+
"transformer_blocks.28.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 386 |
+
"transformer_blocks.28.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 387 |
+
"transformer_blocks.28.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 388 |
+
"transformer_blocks.28.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 389 |
+
"transformer_blocks.28.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 390 |
+
"transformer_blocks.28.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 391 |
+
"transformer_blocks.28.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 392 |
+
"transformer_blocks.28.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 393 |
+
"transformer_blocks.28.ff.net.2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 394 |
+
"transformer_blocks.28.norm1.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 395 |
+
"transformer_blocks.28.norm2.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 396 |
+
"transformer_blocks.29.adaln_proj.linear.bias": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 397 |
+
"transformer_blocks.29.adaln_proj.linear.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 398 |
+
"transformer_blocks.29.attn.norm_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 399 |
+
"transformer_blocks.29.attn.norm_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 400 |
+
"transformer_blocks.29.attn.to_k.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 401 |
+
"transformer_blocks.29.attn.to_out.0.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 402 |
+
"transformer_blocks.29.attn.to_q.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 403 |
+
"transformer_blocks.29.attn.to_v.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 404 |
+
"transformer_blocks.29.ff.net.0.proj.weight": "diffusion_pytorch_model-00002-of-00006.safetensors",
|
| 405 |
+
"transformer_blocks.29.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 406 |
+
"transformer_blocks.29.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 407 |
+
"transformer_blocks.29.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 408 |
+
"transformer_blocks.3.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 409 |
+
"transformer_blocks.3.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 410 |
+
"transformer_blocks.3.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 411 |
+
"transformer_blocks.3.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 412 |
+
"transformer_blocks.3.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 413 |
+
"transformer_blocks.3.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 414 |
+
"transformer_blocks.3.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 415 |
+
"transformer_blocks.3.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 416 |
+
"transformer_blocks.3.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 417 |
+
"transformer_blocks.3.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 418 |
+
"transformer_blocks.3.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 419 |
+
"transformer_blocks.3.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 420 |
+
"transformer_blocks.30.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 421 |
+
"transformer_blocks.30.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 422 |
+
"transformer_blocks.30.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 423 |
+
"transformer_blocks.30.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 424 |
+
"transformer_blocks.30.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 425 |
+
"transformer_blocks.30.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 426 |
+
"transformer_blocks.30.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 427 |
+
"transformer_blocks.30.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 428 |
+
"transformer_blocks.30.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 429 |
+
"transformer_blocks.30.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 430 |
+
"transformer_blocks.30.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 431 |
+
"transformer_blocks.30.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 432 |
+
"transformer_blocks.31.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 433 |
+
"transformer_blocks.31.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 434 |
+
"transformer_blocks.31.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 435 |
+
"transformer_blocks.31.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 436 |
+
"transformer_blocks.31.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 437 |
+
"transformer_blocks.31.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 438 |
+
"transformer_blocks.31.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 439 |
+
"transformer_blocks.31.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 440 |
+
"transformer_blocks.31.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 441 |
+
"transformer_blocks.31.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 442 |
+
"transformer_blocks.31.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 443 |
+
"transformer_blocks.31.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 444 |
+
"transformer_blocks.32.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 445 |
+
"transformer_blocks.32.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 446 |
+
"transformer_blocks.32.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 447 |
+
"transformer_blocks.32.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 448 |
+
"transformer_blocks.32.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 449 |
+
"transformer_blocks.32.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 450 |
+
"transformer_blocks.32.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 451 |
+
"transformer_blocks.32.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 452 |
+
"transformer_blocks.32.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 453 |
+
"transformer_blocks.32.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 454 |
+
"transformer_blocks.32.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 455 |
+
"transformer_blocks.32.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 456 |
+
"transformer_blocks.33.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 457 |
+
"transformer_blocks.33.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 458 |
+
"transformer_blocks.33.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 459 |
+
"transformer_blocks.33.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 460 |
+
"transformer_blocks.33.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 461 |
+
"transformer_blocks.33.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 462 |
+
"transformer_blocks.33.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 463 |
+
"transformer_blocks.33.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 464 |
+
"transformer_blocks.33.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 465 |
+
"transformer_blocks.33.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 466 |
+
"transformer_blocks.33.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 467 |
+
"transformer_blocks.33.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 468 |
+
"transformer_blocks.34.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 469 |
+
"transformer_blocks.34.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 470 |
+
"transformer_blocks.34.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 471 |
+
"transformer_blocks.34.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 472 |
+
"transformer_blocks.34.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 473 |
+
"transformer_blocks.34.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 474 |
+
"transformer_blocks.34.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 475 |
+
"transformer_blocks.34.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 476 |
+
"transformer_blocks.34.ff.net.0.proj.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 477 |
+
"transformer_blocks.34.ff.net.2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 478 |
+
"transformer_blocks.34.norm1.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 479 |
+
"transformer_blocks.34.norm2.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 480 |
+
"transformer_blocks.35.adaln_proj.linear.bias": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 481 |
+
"transformer_blocks.35.adaln_proj.linear.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 482 |
+
"transformer_blocks.35.attn.norm_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 483 |
+
"transformer_blocks.35.attn.norm_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 484 |
+
"transformer_blocks.35.attn.to_k.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 485 |
+
"transformer_blocks.35.attn.to_out.0.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 486 |
+
"transformer_blocks.35.attn.to_q.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 487 |
+
"transformer_blocks.35.attn.to_v.weight": "diffusion_pytorch_model-00003-of-00006.safetensors",
|
| 488 |
+
"transformer_blocks.35.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 489 |
+
"transformer_blocks.35.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 490 |
+
"transformer_blocks.35.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 491 |
+
"transformer_blocks.35.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 492 |
+
"transformer_blocks.36.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 493 |
+
"transformer_blocks.36.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 494 |
+
"transformer_blocks.36.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 495 |
+
"transformer_blocks.36.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 496 |
+
"transformer_blocks.36.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 497 |
+
"transformer_blocks.36.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 498 |
+
"transformer_blocks.36.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 499 |
+
"transformer_blocks.36.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 500 |
+
"transformer_blocks.36.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 501 |
+
"transformer_blocks.36.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 502 |
+
"transformer_blocks.36.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 503 |
+
"transformer_blocks.36.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 504 |
+
"transformer_blocks.37.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 505 |
+
"transformer_blocks.37.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 506 |
+
"transformer_blocks.37.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 507 |
+
"transformer_blocks.37.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 508 |
+
"transformer_blocks.37.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 509 |
+
"transformer_blocks.37.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 510 |
+
"transformer_blocks.37.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 511 |
+
"transformer_blocks.37.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 512 |
+
"transformer_blocks.37.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 513 |
+
"transformer_blocks.37.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 514 |
+
"transformer_blocks.37.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 515 |
+
"transformer_blocks.37.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 516 |
+
"transformer_blocks.38.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 517 |
+
"transformer_blocks.38.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 518 |
+
"transformer_blocks.38.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 519 |
+
"transformer_blocks.38.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 520 |
+
"transformer_blocks.38.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 521 |
+
"transformer_blocks.38.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 522 |
+
"transformer_blocks.38.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 523 |
+
"transformer_blocks.38.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 524 |
+
"transformer_blocks.38.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 525 |
+
"transformer_blocks.38.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 526 |
+
"transformer_blocks.38.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 527 |
+
"transformer_blocks.38.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 528 |
+
"transformer_blocks.39.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 529 |
+
"transformer_blocks.39.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 530 |
+
"transformer_blocks.39.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 531 |
+
"transformer_blocks.39.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 532 |
+
"transformer_blocks.39.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 533 |
+
"transformer_blocks.39.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 534 |
+
"transformer_blocks.39.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 535 |
+
"transformer_blocks.39.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 536 |
+
"transformer_blocks.39.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 537 |
+
"transformer_blocks.39.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 538 |
+
"transformer_blocks.39.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 539 |
+
"transformer_blocks.39.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 540 |
+
"transformer_blocks.4.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 541 |
+
"transformer_blocks.4.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 542 |
+
"transformer_blocks.4.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 543 |
+
"transformer_blocks.4.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 544 |
+
"transformer_blocks.4.attn.to_k.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 545 |
+
"transformer_blocks.4.attn.to_k.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 546 |
+
"transformer_blocks.4.attn.to_out.0.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 547 |
+
"transformer_blocks.4.attn.to_out.0.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 548 |
+
"transformer_blocks.4.attn.to_q.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 549 |
+
"transformer_blocks.4.attn.to_q.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 550 |
+
"transformer_blocks.4.attn.to_v.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 551 |
+
"transformer_blocks.4.attn.to_v.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 552 |
+
"transformer_blocks.4.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 553 |
+
"transformer_blocks.4.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 554 |
+
"transformer_blocks.4.ff.net.2.down.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 555 |
+
"transformer_blocks.4.ff.net.2.up.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 556 |
+
"transformer_blocks.4.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 557 |
+
"transformer_blocks.4.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 558 |
+
"transformer_blocks.40.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 559 |
+
"transformer_blocks.40.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 560 |
+
"transformer_blocks.40.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 561 |
+
"transformer_blocks.40.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 562 |
+
"transformer_blocks.40.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 563 |
+
"transformer_blocks.40.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 564 |
+
"transformer_blocks.40.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 565 |
+
"transformer_blocks.40.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 566 |
+
"transformer_blocks.40.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 567 |
+
"transformer_blocks.40.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 568 |
+
"transformer_blocks.40.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 569 |
+
"transformer_blocks.40.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 570 |
+
"transformer_blocks.41.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 571 |
+
"transformer_blocks.41.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 572 |
+
"transformer_blocks.41.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 573 |
+
"transformer_blocks.41.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 574 |
+
"transformer_blocks.41.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 575 |
+
"transformer_blocks.41.attn.to_out.0.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 576 |
+
"transformer_blocks.41.attn.to_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 577 |
+
"transformer_blocks.41.attn.to_v.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 578 |
+
"transformer_blocks.41.ff.net.0.proj.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 579 |
+
"transformer_blocks.41.ff.net.2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 580 |
+
"transformer_blocks.41.norm1.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 581 |
+
"transformer_blocks.41.norm2.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 582 |
+
"transformer_blocks.42.adaln_proj.linear.bias": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 583 |
+
"transformer_blocks.42.adaln_proj.linear.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 584 |
+
"transformer_blocks.42.attn.norm_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 585 |
+
"transformer_blocks.42.attn.norm_q.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 586 |
+
"transformer_blocks.42.attn.to_k.weight": "diffusion_pytorch_model-00004-of-00006.safetensors",
|
| 587 |
+
"transformer_blocks.42.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 588 |
+
"transformer_blocks.42.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 589 |
+
"transformer_blocks.42.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 590 |
+
"transformer_blocks.42.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 591 |
+
"transformer_blocks.42.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 592 |
+
"transformer_blocks.42.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 593 |
+
"transformer_blocks.42.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 594 |
+
"transformer_blocks.43.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 595 |
+
"transformer_blocks.43.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 596 |
+
"transformer_blocks.43.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 597 |
+
"transformer_blocks.43.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 598 |
+
"transformer_blocks.43.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 599 |
+
"transformer_blocks.43.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 600 |
+
"transformer_blocks.43.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 601 |
+
"transformer_blocks.43.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 602 |
+
"transformer_blocks.43.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 603 |
+
"transformer_blocks.43.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 604 |
+
"transformer_blocks.43.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 605 |
+
"transformer_blocks.43.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 606 |
+
"transformer_blocks.44.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 607 |
+
"transformer_blocks.44.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 608 |
+
"transformer_blocks.44.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 609 |
+
"transformer_blocks.44.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 610 |
+
"transformer_blocks.44.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 611 |
+
"transformer_blocks.44.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 612 |
+
"transformer_blocks.44.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 613 |
+
"transformer_blocks.44.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 614 |
+
"transformer_blocks.44.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 615 |
+
"transformer_blocks.44.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 616 |
+
"transformer_blocks.44.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 617 |
+
"transformer_blocks.44.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 618 |
+
"transformer_blocks.45.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 619 |
+
"transformer_blocks.45.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 620 |
+
"transformer_blocks.45.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 621 |
+
"transformer_blocks.45.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 622 |
+
"transformer_blocks.45.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 623 |
+
"transformer_blocks.45.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 624 |
+
"transformer_blocks.45.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 625 |
+
"transformer_blocks.45.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 626 |
+
"transformer_blocks.45.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 627 |
+
"transformer_blocks.45.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 628 |
+
"transformer_blocks.45.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 629 |
+
"transformer_blocks.45.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 630 |
+
"transformer_blocks.46.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 631 |
+
"transformer_blocks.46.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 632 |
+
"transformer_blocks.46.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 633 |
+
"transformer_blocks.46.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 634 |
+
"transformer_blocks.46.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 635 |
+
"transformer_blocks.46.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 636 |
+
"transformer_blocks.46.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 637 |
+
"transformer_blocks.46.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 638 |
+
"transformer_blocks.46.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 639 |
+
"transformer_blocks.46.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 640 |
+
"transformer_blocks.46.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 641 |
+
"transformer_blocks.46.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 642 |
+
"transformer_blocks.47.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 643 |
+
"transformer_blocks.47.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 644 |
+
"transformer_blocks.47.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 645 |
+
"transformer_blocks.47.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 646 |
+
"transformer_blocks.47.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 647 |
+
"transformer_blocks.47.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 648 |
+
"transformer_blocks.47.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 649 |
+
"transformer_blocks.47.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 650 |
+
"transformer_blocks.47.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 651 |
+
"transformer_blocks.47.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 652 |
+
"transformer_blocks.47.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 653 |
+
"transformer_blocks.47.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 654 |
+
"transformer_blocks.48.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 655 |
+
"transformer_blocks.48.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 656 |
+
"transformer_blocks.48.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 657 |
+
"transformer_blocks.48.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 658 |
+
"transformer_blocks.48.attn.to_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 659 |
+
"transformer_blocks.48.attn.to_out.0.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 660 |
+
"transformer_blocks.48.attn.to_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 661 |
+
"transformer_blocks.48.attn.to_v.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 662 |
+
"transformer_blocks.48.ff.net.0.proj.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 663 |
+
"transformer_blocks.48.ff.net.2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 664 |
+
"transformer_blocks.48.norm1.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 665 |
+
"transformer_blocks.48.norm2.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 666 |
+
"transformer_blocks.49.adaln_proj.linear.bias": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 667 |
+
"transformer_blocks.49.adaln_proj.linear.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 668 |
+
"transformer_blocks.49.attn.norm_k.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 669 |
+
"transformer_blocks.49.attn.norm_q.weight": "diffusion_pytorch_model-00005-of-00006.safetensors",
|
| 670 |
+
"transformer_blocks.49.attn.to_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 671 |
+
"transformer_blocks.49.attn.to_out.0.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 672 |
+
"transformer_blocks.49.attn.to_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 673 |
+
"transformer_blocks.49.attn.to_v.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 674 |
+
"transformer_blocks.49.ff.net.0.proj.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 675 |
+
"transformer_blocks.49.ff.net.2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 676 |
+
"transformer_blocks.49.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 677 |
+
"transformer_blocks.49.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 678 |
+
"transformer_blocks.5.adaln_proj.linear.bias": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 679 |
+
"transformer_blocks.5.adaln_proj.linear.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 680 |
+
"transformer_blocks.5.attn.norm_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 681 |
+
"transformer_blocks.5.attn.norm_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 682 |
+
"transformer_blocks.5.attn.to_k.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 683 |
+
"transformer_blocks.5.attn.to_k.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 684 |
+
"transformer_blocks.5.attn.to_out.0.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 685 |
+
"transformer_blocks.5.attn.to_out.0.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 686 |
+
"transformer_blocks.5.attn.to_q.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 687 |
+
"transformer_blocks.5.attn.to_q.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 688 |
+
"transformer_blocks.5.attn.to_v.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 689 |
+
"transformer_blocks.5.attn.to_v.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 690 |
+
"transformer_blocks.5.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 691 |
+
"transformer_blocks.5.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 692 |
+
"transformer_blocks.5.ff.net.2.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 693 |
+
"transformer_blocks.5.ff.net.2.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 694 |
+
"transformer_blocks.5.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 695 |
+
"transformer_blocks.5.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 696 |
+
"transformer_blocks.6.adaln_proj.linear.bias": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 697 |
+
"transformer_blocks.6.adaln_proj.linear.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 698 |
+
"transformer_blocks.6.attn.norm_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 699 |
+
"transformer_blocks.6.attn.norm_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 700 |
+
"transformer_blocks.6.attn.to_k.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 701 |
+
"transformer_blocks.6.attn.to_k.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 702 |
+
"transformer_blocks.6.attn.to_out.0.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 703 |
+
"transformer_blocks.6.attn.to_out.0.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 704 |
+
"transformer_blocks.6.attn.to_q.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 705 |
+
"transformer_blocks.6.attn.to_q.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 706 |
+
"transformer_blocks.6.attn.to_v.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 707 |
+
"transformer_blocks.6.attn.to_v.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 708 |
+
"transformer_blocks.6.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 709 |
+
"transformer_blocks.6.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 710 |
+
"transformer_blocks.6.ff.net.2.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 711 |
+
"transformer_blocks.6.ff.net.2.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 712 |
+
"transformer_blocks.6.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 713 |
+
"transformer_blocks.6.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 714 |
+
"transformer_blocks.7.adaln_proj.linear.bias": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 715 |
+
"transformer_blocks.7.adaln_proj.linear.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 716 |
+
"transformer_blocks.7.attn.norm_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 717 |
+
"transformer_blocks.7.attn.norm_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 718 |
+
"transformer_blocks.7.attn.to_k.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 719 |
+
"transformer_blocks.7.attn.to_k.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 720 |
+
"transformer_blocks.7.attn.to_out.0.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 721 |
+
"transformer_blocks.7.attn.to_out.0.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 722 |
+
"transformer_blocks.7.attn.to_q.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 723 |
+
"transformer_blocks.7.attn.to_q.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 724 |
+
"transformer_blocks.7.attn.to_v.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 725 |
+
"transformer_blocks.7.attn.to_v.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 726 |
+
"transformer_blocks.7.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 727 |
+
"transformer_blocks.7.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 728 |
+
"transformer_blocks.7.ff.net.2.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 729 |
+
"transformer_blocks.7.ff.net.2.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 730 |
+
"transformer_blocks.7.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 731 |
+
"transformer_blocks.7.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 732 |
+
"transformer_blocks.8.adaln_proj.linear.bias": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 733 |
+
"transformer_blocks.8.adaln_proj.linear.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 734 |
+
"transformer_blocks.8.attn.norm_k.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 735 |
+
"transformer_blocks.8.attn.norm_q.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 736 |
+
"transformer_blocks.8.attn.to_k.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 737 |
+
"transformer_blocks.8.attn.to_k.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 738 |
+
"transformer_blocks.8.attn.to_out.0.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 739 |
+
"transformer_blocks.8.attn.to_out.0.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 740 |
+
"transformer_blocks.8.attn.to_q.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 741 |
+
"transformer_blocks.8.attn.to_q.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 742 |
+
"transformer_blocks.8.attn.to_v.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 743 |
+
"transformer_blocks.8.attn.to_v.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 744 |
+
"transformer_blocks.8.ff.net.0.proj.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 745 |
+
"transformer_blocks.8.ff.net.0.proj.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 746 |
+
"transformer_blocks.8.ff.net.2.down.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 747 |
+
"transformer_blocks.8.ff.net.2.up.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 748 |
+
"transformer_blocks.8.norm1.weight": "diffusion_pytorch_model-00006-of-00006.safetensors",
|
| 749 |
+
"transformer_blocks.8.norm2.weight": "diffusion_pytorch_model-00006-of-00006.safetensors"
|
| 750 |
+
}
|
| 751 |
+
}
|
ref2va_bf16/hyperflow_h3_flash_int8.py
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2026 The HyperFlow authors. Licensed under the Apache License, Version 2.0.
|
| 2 |
+
"""INT8 W8A8 linears with a Hadamard-rotated input dimension.
|
| 3 |
+
|
| 4 |
+
A dense ``y = x @ W^T`` is stored as ``qweight = round(W R / wscale)`` (int8, one fp32 scale per output channel), where
|
| 5 |
+
``R`` is a block-diagonal regular Hadamard of size ``group``. ``R`` is orthonormal, so ``y = (x R) @ (W R)^T``: at run
|
| 6 |
+
time the activation is rotated and quantized per token, multiplied in int8 with an exact int32 accumulator, and
|
| 7 |
+
rescaled. The rotation spreads outlier channels across the group, which is what makes per-token int8 activations work.
|
| 8 |
+
|
| 9 |
+
On CUDA the rotation + quantization and the GEMM are Triton kernels (compiled on first use). Every kernel fits the
|
| 10 |
+
99 KiB of shared memory per block of Ampere, Ada and consumer Blackwell GPUs. The int8 GEMM runs as a Triton kernel or
|
| 11 |
+
as cuBLASLt (``torch._int_mm``) plus a Triton epilogue; both use the same int32 accumulator and the same fp32 multiply
|
| 12 |
+
order, so they give bitwise identical outputs. cuBLASLt is faster from compute capability 10 on, Triton on Hopper.
|
| 13 |
+
The B300 (compute capability 10.3) has INT8 tensor cores at about 1/20 of the B200's, so there the int8 codes are
|
| 14 |
+
multiplied on bf16 tensor cores into an fp32 accumulator: products are exact, and the sum matches the int32 one while
|
| 15 |
+
it stays below 2**24, which the rotated activations keep well clear of.
|
| 16 |
+
Elsewhere a plain torch implementation of the same scheme runs.
|
| 17 |
+
|
| 18 |
+
`KERNEL_OPTIONS` (set by `load_pipeline`, no weight change) picks the kernels at run time:
|
| 19 |
+
|
| 20 |
+
* ``int8_gemm``: ``"auto"`` (the choice above), ``"triton"``, ``"cublas"``, ``"bf16"``, or ``"sgl"``: CUTLASS
|
| 21 |
+
``sgl_kernel.int8_scaled_mm`` with the scales in its epilogue, within 1 ulp of Triton and 1.25 to 1.45x faster on
|
| 22 |
+
H200 (Triton when sgl_kernel is missing).
|
| 23 |
+
* ``rotate_quant``: ``"dense"`` (the kernel above) or ``"factored"``: a 256-channel group rotated as ``H16 X H16``, two
|
| 24 |
+
K = 16 dots in 8.5 KiB of shared memory, 1.6 to 2.0x faster on H200; it rounds the rotated activation like the dense
|
| 25 |
+
kernel up to rare one-code differences.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
from __future__ import annotations
|
| 29 |
+
|
| 30 |
+
import functools
|
| 31 |
+
from types import SimpleNamespace
|
| 32 |
+
from typing import Any, ClassVar
|
| 33 |
+
|
| 34 |
+
import torch
|
| 35 |
+
from torch import Tensor, nn
|
| 36 |
+
|
| 37 |
+
#: Run-time kernel choices.
|
| 38 |
+
INT8_GEMMS = ("auto", "triton", "cublas", "sgl", "bf16")
|
| 39 |
+
ROTATE_QUANTS = ("dense", "factored")
|
| 40 |
+
|
| 41 |
+
#: Rows below this go through the torch path: `torch._int_mm` needs more than 16 rows, and so few rows are not worth
|
| 42 |
+
#: a kernel launch.
|
| 43 |
+
_MIN_KERNEL_ROWS = 17
|
| 44 |
+
|
| 45 |
+
#: Run-time kernel choices for every `Int8RotLinear`; `load_pipeline` sets them.
|
| 46 |
+
KERNEL_OPTIONS: dict[str, Any] = {"int8_gemm": "auto", "rotate_quant": "dense"}
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def set_kernel_options(*, int8_gemm: str | None = None, rotate_quant: str | None = None) -> None:
|
| 50 |
+
if int8_gemm is not None:
|
| 51 |
+
if int8_gemm not in INT8_GEMMS:
|
| 52 |
+
raise ValueError(f"int8_gemm must be one of {INT8_GEMMS}, got {int8_gemm!r}")
|
| 53 |
+
KERNEL_OPTIONS["int8_gemm"] = int8_gemm
|
| 54 |
+
if rotate_quant is not None:
|
| 55 |
+
if rotate_quant not in ROTATE_QUANTS:
|
| 56 |
+
raise ValueError(f"rotate_quant must be one of {ROTATE_QUANTS}, got {rotate_quant!r}")
|
| 57 |
+
KERNEL_OPTIONS["rotate_quant"] = rotate_quant
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
@functools.cache
|
| 61 |
+
def _sgl_int8_scaled_mm():
|
| 62 |
+
"""sgl_kernel's ``int8_scaled_mm``, or None when sgl_kernel is not importable."""
|
| 63 |
+
try:
|
| 64 |
+
from sgl_kernel import int8_scaled_mm
|
| 65 |
+
except ImportError:
|
| 66 |
+
return None
|
| 67 |
+
return int8_scaled_mm
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def _has_bf16_mm() -> bool:
|
| 71 |
+
# `torch.mm(..., out_dtype=)` is PyTorch 2.8+.
|
| 72 |
+
return tuple(int(v) for v in torch.__version__.split(".")[:2]) >= (2, 8)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
@functools.cache
|
| 76 |
+
def _auto_int8_gemm(device: torch.device) -> str:
|
| 77 |
+
capability = torch.cuda.get_device_capability(device)
|
| 78 |
+
if capability == (10, 3) and _has_bf16_mm():
|
| 79 |
+
return "bf16"
|
| 80 |
+
if hasattr(torch, "_int_mm") and capability[0] >= 10:
|
| 81 |
+
return "cublas"
|
| 82 |
+
return "triton"
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
def resolve_int8_gemm(device: torch.device) -> str:
|
| 86 |
+
"""The GEMM ``KERNEL_OPTIONS["int8_gemm"]`` runs as on ``device``: ``"triton"``, ``"cublas"``, ``"bf16"`` or
|
| 87 |
+
``"sgl"``."""
|
| 88 |
+
choice = KERNEL_OPTIONS["int8_gemm"]
|
| 89 |
+
if choice == "auto":
|
| 90 |
+
return _auto_int8_gemm(device)
|
| 91 |
+
if (
|
| 92 |
+
(choice == "sgl" and _sgl_int8_scaled_mm() is None)
|
| 93 |
+
or (choice == "cublas" and not hasattr(torch, "_int_mm"))
|
| 94 |
+
or (choice == "bf16" and not _has_bf16_mm())
|
| 95 |
+
):
|
| 96 |
+
return "triton"
|
| 97 |
+
return choice
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
@functools.cache
|
| 101 |
+
def regular_hadamard(group: int) -> Tensor:
|
| 102 |
+
"""``kron(H4 / 2, ..., H4 / 2)`` of size ``group`` (a power of 4): orthonormal, symmetric, rows sum to one."""
|
| 103 |
+
h4 = torch.tensor([[1, 1, 1, -1], [1, 1, -1, 1], [1, -1, 1, 1], [-1, 1, 1, 1]], dtype=torch.float64) / 2
|
| 104 |
+
h, n = torch.ones(1, 1, dtype=torch.float64), 1
|
| 105 |
+
while n < group:
|
| 106 |
+
h, n = torch.kron(h, h4), n * 4
|
| 107 |
+
if n != group:
|
| 108 |
+
raise ValueError(f"Hadamard group {group} is not a power of 4")
|
| 109 |
+
return h.float()
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def hadamard_factors(group: int) -> tuple[int, int] | None:
|
| 113 |
+
"""``(GA, GB)`` with ``regular_hadamard(group) == kron(regular_hadamard(GA), regular_hadamard(GB))``, both at
|
| 114 |
+
least 16 (the smallest bf16 ``tl.dot`` K); None when ``group`` cannot be split that way."""
|
| 115 |
+
n = group.bit_length() - 1
|
| 116 |
+
if group < 256 or group != 1 << n or n % 2:
|
| 117 |
+
return None
|
| 118 |
+
ga = 4 ** (n // 4)
|
| 119 |
+
return ga, group // ga
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
@functools.cache
|
| 123 |
+
def _rotation(group: int, device: torch.device) -> Tensor:
|
| 124 |
+
return regular_hadamard(group).to(device=device, dtype=torch.bfloat16)
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
class Int8RotLinear(nn.Module):
|
| 128 |
+
"""Bias-free W8A8 linear: ``y = (q(x R) @ qweight^T) * s_x * wscale``, ``R = blockdiag(regular Hadamard)``.
|
| 129 |
+
|
| 130 |
+
Linears that read one input (``to_q``, ``to_k``, ``to_v``) quantize it once: a layer with ``keep_input = True``
|
| 131 |
+
leaves its quantized input for the next layer, which reuses it if it receives the exact same, unmodified tensor.
|
| 132 |
+
Any other layer clears it, so nothing outlives the projections.
|
| 133 |
+
"""
|
| 134 |
+
|
| 135 |
+
_last_input: ClassVar[dict[str, Any]] = {}
|
| 136 |
+
|
| 137 |
+
def __init__(self, in_features: int, out_features: int, group: int) -> None:
|
| 138 |
+
super().__init__()
|
| 139 |
+
if in_features % group:
|
| 140 |
+
raise ValueError(f"in_features {in_features} is not a multiple of the Hadamard group {group}")
|
| 141 |
+
self.in_features, self.out_features, self.group = in_features, out_features, group
|
| 142 |
+
self.keep_input = False
|
| 143 |
+
# Parameters, not buffers: diffusers' streamed group offloading moves module buffers on but never back off.
|
| 144 |
+
self.qweight = nn.Parameter(torch.zeros(out_features, in_features, dtype=torch.int8), requires_grad=False)
|
| 145 |
+
self.wscale = nn.Parameter(torch.ones(out_features, dtype=torch.float32), requires_grad=False)
|
| 146 |
+
|
| 147 |
+
def extra_repr(self) -> str:
|
| 148 |
+
return f"in_features={self.in_features}, out_features={self.out_features}, group={self.group}"
|
| 149 |
+
|
| 150 |
+
def _quantize(self, x: Tensor, x2: Tensor, kernels: SimpleNamespace) -> tuple[Tensor, Tensor]:
|
| 151 |
+
cache = Int8RotLinear._last_input
|
| 152 |
+
# Inference tensors (`torch.inference_mode`) have no version counter.
|
| 153 |
+
version = None if x.is_inference() else x._version
|
| 154 |
+
hit = cache.get("x") is x and cache.get("version") == version and cache.get("group") == self.group
|
| 155 |
+
quantized = cache["value"] if hit else kernels.rotate_quant(x2, self.group)
|
| 156 |
+
cache.clear()
|
| 157 |
+
if self.keep_input:
|
| 158 |
+
cache.update(x=x, version=version, group=self.group, value=quantized)
|
| 159 |
+
return quantized
|
| 160 |
+
|
| 161 |
+
def forward(self, x: Tensor) -> Tensor:
|
| 162 |
+
shape = x.shape
|
| 163 |
+
x2 = x.reshape(-1, self.in_features).to(torch.bfloat16).contiguous()
|
| 164 |
+
kernels = _kernels() if x2.is_cuda and x2.shape[0] >= _MIN_KERNEL_ROWS else None
|
| 165 |
+
if kernels is None:
|
| 166 |
+
Int8RotLinear._last_input.clear()
|
| 167 |
+
y = self._forward_torch(x2, _rotation(self.group, x2.device))
|
| 168 |
+
else:
|
| 169 |
+
xq, sx = self._quantize(x, x2, kernels)
|
| 170 |
+
y = kernels.int8_matmul(xq, self.qweight, sx, self.wscale)
|
| 171 |
+
return y.reshape(*shape[:-1], self.out_features).to(x.dtype)
|
| 172 |
+
|
| 173 |
+
def _forward_torch(self, x2: Tensor, rot: Tensor) -> Tensor:
|
| 174 |
+
"""The same scheme in plain torch; the rotated activation is rounded to bf16 before quantization."""
|
| 175 |
+
g = self.group
|
| 176 |
+
xr = (x2.reshape(-1, self.in_features // g, g) @ rot).reshape(x2.shape).float()
|
| 177 |
+
sx = xr.abs().amax(1, keepdim=True).clamp_min(1e-12) / 127.0
|
| 178 |
+
xq = (xr / sx).round().clamp(-127, 127)
|
| 179 |
+
return ((xq @ self.qweight.float().t()) * sx * self.wscale[None, :]).to(torch.bfloat16)
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
@functools.cache
|
| 183 |
+
def _kernels() -> SimpleNamespace | None:
|
| 184 |
+
"""``rotate_quant`` and ``int8_matmul`` as Triton kernels; ``None`` when Triton is not installed."""
|
| 185 |
+
try:
|
| 186 |
+
import triton
|
| 187 |
+
import triton.language as tl
|
| 188 |
+
except ImportError:
|
| 189 |
+
return None
|
| 190 |
+
|
| 191 |
+
ROTATE_BM = 64
|
| 192 |
+
FACTORED_BM = 16
|
| 193 |
+
|
| 194 |
+
@triton.jit
|
| 195 |
+
def rotate_quant_kernel(
|
| 196 |
+
x_ptr, h_ptr, q_ptr, s_ptr, M, K, stride_xm, stride_qm,
|
| 197 |
+
G: tl.constexpr, BM: tl.constexpr, BN: tl.constexpr,
|
| 198 |
+
): # fmt: skip
|
| 199 |
+
# Two passes over the row block: the per-token scale needs the absmax of the whole rotated row first.
|
| 200 |
+
# The Hadamard streams through in G x BN column tiles, so shared memory is (BM * G + G * BN) * 2 bytes.
|
| 201 |
+
rows = tl.program_id(0) * BM + tl.arange(0, BM)
|
| 202 |
+
rows64 = rows.to(tl.int64)
|
| 203 |
+
cols = tl.arange(0, G)
|
| 204 |
+
tile = tl.arange(0, BN)
|
| 205 |
+
rmask = rows < M
|
| 206 |
+
amax = tl.zeros((BM,), dtype=tl.float32)
|
| 207 |
+
for g in range(0, K, G):
|
| 208 |
+
x = tl.load(x_ptr + rows64[:, None] * stride_xm + (g + cols)[None, :], mask=rmask[:, None], other=0.0)
|
| 209 |
+
for n in range(0, G, BN):
|
| 210 |
+
h = tl.load(h_ptr + cols[:, None] * G + (n + tile)[None, :])
|
| 211 |
+
amax = tl.maximum(amax, tl.max(tl.abs(tl.dot(x, h)), axis=1))
|
| 212 |
+
scale = tl.maximum(amax, 1e-12) / 127.0
|
| 213 |
+
tl.store(s_ptr + rows, scale, mask=rmask)
|
| 214 |
+
inv = 1.0 / scale
|
| 215 |
+
for g in range(0, K, G):
|
| 216 |
+
x = tl.load(x_ptr + rows64[:, None] * stride_xm + (g + cols)[None, :], mask=rmask[:, None], other=0.0)
|
| 217 |
+
for n in range(0, G, BN):
|
| 218 |
+
h = tl.load(h_ptr + cols[:, None] * G + (n + tile)[None, :])
|
| 219 |
+
q = tl.extra.cuda.libdevice.rint(tl.dot(x, h) * inv[:, None])
|
| 220 |
+
q = tl.minimum(tl.maximum(q, -127.0), 127.0).to(tl.int8)
|
| 221 |
+
tl.store(q_ptr + rows64[:, None] * stride_qm + (g + n + tile)[None, :], q, mask=rmask[:, None])
|
| 222 |
+
|
| 223 |
+
@triton.jit
|
| 224 |
+
def rotate_quant_factored_kernel(
|
| 225 |
+
x_ptr, ha_ptr, hb_ptr, q_ptr, s_ptr, M, K, stride_xm, stride_qm,
|
| 226 |
+
GA: tl.constexpr, GB: tl.constexpr, BM: tl.constexpr,
|
| 227 |
+
): # fmt: skip
|
| 228 |
+
# Channel g + a * GB + b of a group is X[a, b]; the rotated group is H_GA X H_GB. Pass 0 takes the row absmax,
|
| 229 |
+
# pass 1 rotates again and writes int8. The fp32 input of the second dot is split into three bf16 terms
|
| 230 |
+
# (8 + 8 + 8 significand bits), so it is exact; a tf32 dot or a two-term split rounds it measurably.
|
| 231 |
+
# The second dot is batched per row, so its result is already in channel order.
|
| 232 |
+
G: tl.constexpr = GA * GB
|
| 233 |
+
rows = tl.program_id(0) * BM + tl.arange(0, BM)
|
| 234 |
+
rows64 = rows.to(tl.int64)
|
| 235 |
+
cols = tl.arange(0, G)
|
| 236 |
+
rmask = rows < M
|
| 237 |
+
ia = tl.arange(0, GA)
|
| 238 |
+
ib = tl.arange(0, GB)
|
| 239 |
+
ha = tl.broadcast_to(tl.load(ha_ptr + ia[:, None] * GA + ia[None, :])[None, :, :], (BM, GA, GA))
|
| 240 |
+
hb = tl.load(hb_ptr + ib[:, None] * GB + ib[None, :])
|
| 241 |
+
amax = tl.zeros((BM,), dtype=tl.float32)
|
| 242 |
+
inv = tl.zeros((BM,), dtype=tl.float32)
|
| 243 |
+
for p in tl.static_range(2):
|
| 244 |
+
for g in range(0, K, G):
|
| 245 |
+
x = tl.load(x_ptr + rows64[:, None] * stride_xm + (g + cols)[None, :], mask=rmask[:, None], other=0.0)
|
| 246 |
+
z = tl.reshape(tl.dot(tl.reshape(x, (BM * GA, GB)), hb), (BM, GA, GB))
|
| 247 |
+
z_hi = z.to(tl.bfloat16)
|
| 248 |
+
z = z - z_hi.to(tl.float32)
|
| 249 |
+
z_mid = z.to(tl.bfloat16)
|
| 250 |
+
z_lo = (z - z_mid.to(tl.float32)).to(tl.bfloat16)
|
| 251 |
+
y = tl.dot(ha, z_lo, acc=tl.dot(ha, z_mid, acc=tl.dot(ha, z_hi)))
|
| 252 |
+
y = tl.reshape(y, (BM, G))
|
| 253 |
+
if p == 0:
|
| 254 |
+
amax = tl.maximum(amax, tl.max(tl.abs(y), axis=1))
|
| 255 |
+
else:
|
| 256 |
+
q = tl.extra.cuda.libdevice.rint(y * inv[:, None])
|
| 257 |
+
q = tl.minimum(tl.maximum(q, -127.0), 127.0).to(tl.int8)
|
| 258 |
+
tl.store(q_ptr + rows64[:, None] * stride_qm + (g + cols)[None, :], q, mask=rmask[:, None])
|
| 259 |
+
if p == 0:
|
| 260 |
+
scale = tl.maximum(amax, 1e-12) / 127.0
|
| 261 |
+
tl.store(s_ptr + rows, scale, mask=rmask)
|
| 262 |
+
inv = 1.0 / scale
|
| 263 |
+
|
| 264 |
+
@functools.cache
|
| 265 |
+
def rotate_tile(device_index: int, group: int) -> int:
|
| 266 |
+
# At group 256, 128 columns take 96 KiB: that fits every GPU from Ampere on (99 KiB per block).
|
| 267 |
+
shared = triton.runtime.driver.active.utils.get_device_properties(device_index)["max_shared_mem"]
|
| 268 |
+
tile = 128 if (ROTATE_BM * group + group * 128) * 2 <= shared else 64
|
| 269 |
+
return min(tile, group)
|
| 270 |
+
|
| 271 |
+
configs = [
|
| 272 |
+
triton.Config({"BM": bm, "BN": bn, "BK": bk, "GROUP_M": 8}, num_stages=stages, num_warps=warps)
|
| 273 |
+
for bm, bn, bk, stages, warps in [
|
| 274 |
+
(128, 256, 128, 3, 8),
|
| 275 |
+
(256, 128, 128, 3, 8),
|
| 276 |
+
(128, 128, 128, 4, 8),
|
| 277 |
+
(128, 256, 64, 4, 8),
|
| 278 |
+
(256, 128, 64, 4, 8),
|
| 279 |
+
(128, 128, 64, 5, 4),
|
| 280 |
+
]
|
| 281 |
+
]
|
| 282 |
+
|
| 283 |
+
@triton.autotune(configs=configs, key=["M_BUCKET", "N", "K"])
|
| 284 |
+
@triton.jit
|
| 285 |
+
def int8_mm_kernel(
|
| 286 |
+
a_ptr, b_ptr, c_ptr, sa_ptr, sb_ptr, M, N, K, M_BUCKET, stride_am, stride_bn, stride_cm,
|
| 287 |
+
BM: tl.constexpr, BN: tl.constexpr, BK: tl.constexpr, GROUP_M: tl.constexpr,
|
| 288 |
+
): # fmt: skip
|
| 289 |
+
pid = tl.program_id(0)
|
| 290 |
+
num_m = tl.cdiv(M, BM)
|
| 291 |
+
num_n = tl.cdiv(N, BN)
|
| 292 |
+
group = GROUP_M * num_n
|
| 293 |
+
first_m = (pid // group) * GROUP_M
|
| 294 |
+
size_m = tl.minimum(num_m - first_m, GROUP_M)
|
| 295 |
+
pid_m = first_m + (pid % group) % size_m
|
| 296 |
+
pid_n = (pid % group) // size_m
|
| 297 |
+
rm = pid_m * BM + tl.arange(0, BM)
|
| 298 |
+
rn = pid_n * BN + tl.arange(0, BN)
|
| 299 |
+
rk = tl.arange(0, BK)
|
| 300 |
+
a_ptrs = a_ptr + rm.to(tl.int64)[:, None] * stride_am + rk[None, :]
|
| 301 |
+
b_ptrs = b_ptr + rn.to(tl.int64)[None, :] * stride_bn + rk[:, None]
|
| 302 |
+
acc = tl.zeros((BM, BN), dtype=tl.int32)
|
| 303 |
+
for k in range(0, K, BK):
|
| 304 |
+
a = tl.load(a_ptrs, mask=(rm[:, None] < M) & (k + rk[None, :] < K), other=0)
|
| 305 |
+
b = tl.load(b_ptrs, mask=(rn[None, :] < N) & (k + rk[:, None] < K), other=0)
|
| 306 |
+
acc += tl.dot(a, b, out_dtype=tl.int32)
|
| 307 |
+
a_ptrs += BK
|
| 308 |
+
b_ptrs += BK
|
| 309 |
+
sa = tl.load(sa_ptr + rm, mask=rm < M, other=0.0)
|
| 310 |
+
sb = tl.load(sb_ptr + rn, mask=rn < N, other=0.0)
|
| 311 |
+
c = (acc.to(tl.float32) * sa[:, None] * sb[None, :]).to(tl.bfloat16)
|
| 312 |
+
mask = (rm[:, None] < M) & (rn[None, :] < N)
|
| 313 |
+
tl.store(c_ptr + rm.to(tl.int64)[:, None] * stride_cm + rn[None, :], c, mask=mask)
|
| 314 |
+
|
| 315 |
+
@triton.jit
|
| 316 |
+
def rescale_kernel(acc_ptr, sa_ptr, sb_ptr, c_ptr, M, N, BM: tl.constexpr, BN: tl.constexpr):
|
| 317 |
+
rm = tl.program_id(0) * BM + tl.arange(0, BM)
|
| 318 |
+
rn = tl.program_id(1) * BN + tl.arange(0, BN)
|
| 319 |
+
mask = (rm[:, None] < M) & (rn[None, :] < N)
|
| 320 |
+
offsets = rm.to(tl.int64)[:, None] * N + rn[None, :]
|
| 321 |
+
acc = tl.load(acc_ptr + offsets, mask=mask, other=0)
|
| 322 |
+
sa = tl.load(sa_ptr + rm, mask=rm < M, other=0.0)
|
| 323 |
+
sb = tl.load(sb_ptr + rn, mask=rn < N, other=0.0)
|
| 324 |
+
tl.store(c_ptr + offsets, (acc.to(tl.float32) * sa[:, None] * sb[None, :]).to(tl.bfloat16), mask=mask)
|
| 325 |
+
|
| 326 |
+
def rotate_quant(x: Tensor, group: int) -> tuple[Tensor, Tensor]:
|
| 327 |
+
M, K = x.shape
|
| 328 |
+
q = torch.empty(M, K, device=x.device, dtype=torch.int8)
|
| 329 |
+
s = torch.empty(M, device=x.device, dtype=torch.float32)
|
| 330 |
+
factors = hadamard_factors(group) if KERNEL_OPTIONS["rotate_quant"] == "factored" else None
|
| 331 |
+
if factors is not None:
|
| 332 |
+
ga, gb = factors
|
| 333 |
+
ha, hb = _rotation(ga, x.device), _rotation(gb, x.device)
|
| 334 |
+
rotate_quant_factored_kernel[(triton.cdiv(M, FACTORED_BM),)](
|
| 335 |
+
x, ha, hb, q, s, M, K, x.stride(0), q.stride(0), GA=ga, GB=gb, BM=FACTORED_BM, num_warps=4,
|
| 336 |
+
num_stages=4,
|
| 337 |
+
) # fmt: skip
|
| 338 |
+
return q, s
|
| 339 |
+
BN = rotate_tile(x.device.index, group)
|
| 340 |
+
rotate_quant_kernel[(triton.cdiv(M, ROTATE_BM),)](
|
| 341 |
+
x, _rotation(group, x.device), q, s, M, K, x.stride(0), q.stride(0), G=group, BM=ROTATE_BM, BN=BN,
|
| 342 |
+
num_warps=8, num_stages=1,
|
| 343 |
+
) # fmt: skip
|
| 344 |
+
return q, s
|
| 345 |
+
|
| 346 |
+
def matmul_triton(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor, c: Tensor) -> None:
|
| 347 |
+
M, K = a.shape
|
| 348 |
+
N = b.shape[0]
|
| 349 |
+
grid = lambda meta: (triton.cdiv(M, meta["BM"]) * triton.cdiv(N, meta["BN"]),) # noqa: E731
|
| 350 |
+
m_bucket = 1 << max(M - 1, 1).bit_length()
|
| 351 |
+
int8_mm_kernel[grid](a, b, c, sa, sb, M, N, K, m_bucket, a.stride(0), b.stride(0), c.stride(0))
|
| 352 |
+
|
| 353 |
+
def matmul_cublas(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor, c: Tensor) -> None:
|
| 354 |
+
# Row chunks keep the int32 accumulator near 1 GiB.
|
| 355 |
+
M, N = a.shape[0], b.shape[0]
|
| 356 |
+
chunk = max(128, ((1 << 28) // N) // 128 * 128)
|
| 357 |
+
for start in range(0, M, chunk):
|
| 358 |
+
stop = min(M, start + chunk)
|
| 359 |
+
if stop - start < _MIN_KERNEL_ROWS:
|
| 360 |
+
matmul_triton(a[start:stop], b, sa[start:stop], sb, c[start:stop])
|
| 361 |
+
continue
|
| 362 |
+
acc = torch._int_mm(a[start:stop], b.t())
|
| 363 |
+
grid = (triton.cdiv(stop - start, 64), triton.cdiv(N, 128))
|
| 364 |
+
rescale_kernel[grid](acc, sa[start:stop], sb, c[start:stop], stop - start, N, BM=64, BN=128, num_warps=8)
|
| 365 |
+
|
| 366 |
+
def matmul_bf16(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor, c: Tensor) -> None:
|
| 367 |
+
M, N = a.shape[0], b.shape[0]
|
| 368 |
+
weight = b.to(torch.bfloat16)
|
| 369 |
+
chunk = max(128, ((1 << 28) // N) // 128 * 128)
|
| 370 |
+
for start in range(0, M, chunk):
|
| 371 |
+
stop = min(M, start + chunk)
|
| 372 |
+
acc = torch.mm(a[start:stop].to(torch.bfloat16), weight.t(), out_dtype=torch.float32)
|
| 373 |
+
grid = (triton.cdiv(stop - start, 64), triton.cdiv(N, 128))
|
| 374 |
+
rescale_kernel[grid](acc, sa[start:stop], sb, c[start:stop], stop - start, N, BM=64, BN=128, num_warps=8)
|
| 375 |
+
|
| 376 |
+
def int8_matmul(a: Tensor, b: Tensor, sa: Tensor, sb: Tensor) -> Tensor:
|
| 377 |
+
M, K = a.shape
|
| 378 |
+
N = b.shape[0]
|
| 379 |
+
gemm = resolve_int8_gemm(a.device)
|
| 380 |
+
if gemm == "sgl" and K % 16 == 0 and N % 16 == 0:
|
| 381 |
+
# b is the [N, K] row-major qweight; its transpose is the column-major [K, N] operand CUTLASS expects.
|
| 382 |
+
return _sgl_int8_scaled_mm()(a, b.t(), sa, sb, torch.bfloat16)
|
| 383 |
+
c = torch.empty(M, N, device=a.device, dtype=torch.bfloat16)
|
| 384 |
+
if gemm == "bf16":
|
| 385 |
+
matmul_bf16(a, b, sa, sb, c)
|
| 386 |
+
elif gemm == "cublas" and K % 8 == 0 and N % 8 == 0:
|
| 387 |
+
matmul_cublas(a, b, sa, sb, c)
|
| 388 |
+
else:
|
| 389 |
+
matmul_triton(a, b, sa, sb, c)
|
| 390 |
+
return c
|
| 391 |
+
|
| 392 |
+
jit = SimpleNamespace(
|
| 393 |
+
rotate_quant=rotate_quant_kernel,
|
| 394 |
+
rotate_quant_factored=rotate_quant_factored_kernel,
|
| 395 |
+
int8_mm=int8_mm_kernel,
|
| 396 |
+
rescale=rescale_kernel,
|
| 397 |
+
)
|
| 398 |
+
return SimpleNamespace(rotate_quant=rotate_quant, int8_matmul=int8_matmul, jit=jit, rotate_tile=rotate_tile)
|
| 399 |
+
|
| 400 |
+
|
| 401 |
+
__all__ = [
|
| 402 |
+
"INT8_GEMMS",
|
| 403 |
+
"KERNEL_OPTIONS",
|
| 404 |
+
"ROTATE_QUANTS",
|
| 405 |
+
"Int8RotLinear",
|
| 406 |
+
"hadamard_factors",
|
| 407 |
+
"regular_hadamard",
|
| 408 |
+
"resolve_int8_gemm",
|
| 409 |
+
"set_kernel_options",
|
| 410 |
+
]
|
ref2va_bf16/hyperflow_h3_flash_transformer.py
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2026 The HyperFlow authors. Licensed under the Apache License, Version 2.0.
|
| 2 |
+
#
|
| 3 |
+
# `HyperFlowH3FlashTransformer3DModel.forward` is derived from `MiniMaxH3Transformer3DModel.forward` in diffusers
|
| 4 |
+
# (`models/transformers/transformer_minimax_h3.py`), Copyright 2025 The MiniMax Team and The HuggingFace Team,
|
| 5 |
+
# Apache License 2.0. See https://github.com/Video-Rebirth/hyperflow-h3-flash/blob/main/THIRD_PARTY_NOTICES.md.
|
| 6 |
+
"""The HyperFlow H3 Flash transformer: MiniMax-H3, compressed and conditioned on two times.
|
| 7 |
+
|
| 8 |
+
Four changes to `MiniMaxH3Transformer3DModel`, all driven by `config.json`:
|
| 9 |
+
|
| 10 |
+
* **Two-time conditioning.** An `endpoint_time_embedder` embeds the step's endpoint ``r`` next to the current time
|
| 11 |
+
``t``; every AdaLN reads ``temb(t, r) = emb_t(t) + hyperflow_gate * (emb_r(r) - emb_t(t))``.
|
| 12 |
+
* **Dropped blocks** (`dropped_blocks`): those blocks are identities and have no weights.
|
| 13 |
+
* **Low-rank linears** (`lowrank_ranks`): ``W ~= up @ down``, stored as `<name>.down.weight` (rank x in) and
|
| 14 |
+
`<name>.up.weight` (out x rank). Ranks are zero-padded to multiples of 64, in the checkpoint or at load
|
| 15 |
+
(`pad_lowrank_ranks`), so both GEMMs are aligned; `set_lowrank_rank_multiple` re-pads them at run time.
|
| 16 |
+
* **INT8 linears** (`quantization`): W8A8 with a Hadamard-rotated input, see `int8.py`.
|
| 17 |
+
|
| 18 |
+
Embeddings, AdaLN, the token refiner and the output heads are the base model's, in bf16 / fp32. The block
|
| 19 |
+
feed-forwards run in token chunks (`ChunkedFeedForward`, `set_ff_chunk`), which bounds their activations;
|
| 20 |
+
`set_block_chunk` slices every token-wise op of a block.
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
from __future__ import annotations
|
| 24 |
+
|
| 25 |
+
import sys
|
| 26 |
+
from typing import Any, ClassVar
|
| 27 |
+
|
| 28 |
+
import torch
|
| 29 |
+
from diffusers import MiniMaxH3Transformer3DModel
|
| 30 |
+
from diffusers.configuration_utils import register_to_config
|
| 31 |
+
from diffusers.models.embeddings import TimestepEmbedding
|
| 32 |
+
from diffusers.models.modeling_utils import get_parameter_dtype
|
| 33 |
+
from diffusers.models.transformers.transformer_minimax_h3 import (
|
| 34 |
+
MINIMAX_H3_MODALITY_NUM,
|
| 35 |
+
MiniMaxH3TransformerOutput,
|
| 36 |
+
)
|
| 37 |
+
from diffusers.utils import apply_lora_scale
|
| 38 |
+
from torch import Tensor, nn
|
| 39 |
+
|
| 40 |
+
from .hyperflow_h3_flash_int8 import Int8RotLinear
|
| 41 |
+
|
| 42 |
+
#: Tokens per feed-forward chunk; a 5.2 s clip has about 38k, a 14.4 s clip about 105k.
|
| 43 |
+
FF_CHUNK_TOKENS = 16384
|
| 44 |
+
#: Low-rank ranks are padded to multiples of this at load, so both GEMMs of a low-rank linear are aligned.
|
| 45 |
+
RANK_MULTIPLE = 64
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
class LowRankLinear(nn.Module):
|
| 49 |
+
"""``y = up(down(x))``, the factorized replacement of a bias-free `nn.Linear`."""
|
| 50 |
+
|
| 51 |
+
def __init__(self, in_features: int, out_features: int, rank: int) -> None:
|
| 52 |
+
super().__init__()
|
| 53 |
+
self.in_features, self.out_features, self.rank = in_features, out_features, rank
|
| 54 |
+
self.down = nn.Linear(in_features, rank, bias=False)
|
| 55 |
+
self.up = nn.Linear(rank, out_features, bias=False)
|
| 56 |
+
|
| 57 |
+
def forward(self, x: Tensor) -> Tensor:
|
| 58 |
+
return self.up(self.down(x))
|
| 59 |
+
|
| 60 |
+
@torch.no_grad()
|
| 61 |
+
def pad_rank(self, multiple: int = RANK_MULTIPLE) -> bool:
|
| 62 |
+
"""Zero-pad the rank up to a multiple of ``multiple``: new rows of ``down`` and columns of ``up`` are zero, so
|
| 63 |
+
``up @ down`` is unchanged. Returns whether the rank changed."""
|
| 64 |
+
rank = -(-self.rank // multiple) * multiple
|
| 65 |
+
if rank == self.rank:
|
| 66 |
+
return False
|
| 67 |
+
extra = rank - self.rank
|
| 68 |
+
down, up = self.down.weight, self.up.weight
|
| 69 |
+
self.down.weight = nn.Parameter(torch.cat([down, down.new_zeros(extra, down.shape[1])]), requires_grad=False)
|
| 70 |
+
self.up.weight = nn.Parameter(torch.cat([up, up.new_zeros(up.shape[0], extra)], dim=1), requires_grad=False)
|
| 71 |
+
self.down.out_features = self.up.in_features = self.rank = rank
|
| 72 |
+
return True
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
class ChunkedFeedForward(nn.Module):
|
| 76 |
+
"""A block's feed-forward run over at most ``chunk_tokens`` tokens at a time; it keeps the block's ``net``.
|
| 77 |
+
|
| 78 |
+
The feed-forward is token-wise, so the chunks compute the same function; only the rounding of bf16 GEMMs can
|
| 79 |
+
change with their row count. It bounds the SwiGLU input, ``2 * ffn_dim`` wide per token (6 GiB for a 14.4 s
|
| 80 |
+
clip), to one chunk.
|
| 81 |
+
"""
|
| 82 |
+
|
| 83 |
+
def __init__(self, net: nn.ModuleList, out_features: int, chunk_tokens: int) -> None:
|
| 84 |
+
super().__init__()
|
| 85 |
+
self.net, self.out_features, self.chunk_tokens = net, out_features, chunk_tokens
|
| 86 |
+
|
| 87 |
+
def _forward(self, hidden_states: Tensor) -> Tensor:
|
| 88 |
+
for module in self.net:
|
| 89 |
+
hidden_states = module(hidden_states)
|
| 90 |
+
return hidden_states
|
| 91 |
+
|
| 92 |
+
def forward(self, hidden_states: Tensor) -> Tensor:
|
| 93 |
+
if hidden_states.shape[-2] <= self.chunk_tokens:
|
| 94 |
+
return self._forward(hidden_states)
|
| 95 |
+
out = hidden_states.new_empty(*hidden_states.shape[:-1], self.out_features)
|
| 96 |
+
for start in range(0, hidden_states.shape[-2], self.chunk_tokens):
|
| 97 |
+
stop = start + self.chunk_tokens
|
| 98 |
+
out[..., start:stop, :] = self._forward(hidden_states[..., start:stop, :])
|
| 99 |
+
return out
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
class DroppedBlock(nn.Module):
|
| 103 |
+
"""A removed transformer block: the hidden states go straight to the next block.
|
| 104 |
+
|
| 105 |
+
The signature is the block's own: context parallel hooks address `adaln_indices` by name.
|
| 106 |
+
"""
|
| 107 |
+
|
| 108 |
+
def forward(self, hidden_states: Tensor, temb=None, adaln_indices=None, rotary_emb=None, attention_mask=None):
|
| 109 |
+
return hidden_states
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def _replace_linear(model: nn.Module, name: str, make: type[nn.Module], *args: Any) -> None:
|
| 113 |
+
owner_name, _, attr = name.rpartition(".")
|
| 114 |
+
owner = model.get_submodule(owner_name)
|
| 115 |
+
dense = owner[int(attr)] if isinstance(owner, nn.ModuleList) else getattr(owner, attr)
|
| 116 |
+
if type(dense) is not nn.Linear or dense.bias is not None:
|
| 117 |
+
raise TypeError(f"{name} is not a bias-free nn.Linear")
|
| 118 |
+
replacement = make(dense.in_features, dense.out_features, *args)
|
| 119 |
+
if isinstance(owner, nn.ModuleList):
|
| 120 |
+
owner[int(attr)] = replacement
|
| 121 |
+
else:
|
| 122 |
+
setattr(owner, attr, replacement)
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
class HyperFlowH3FlashTransformer3DModel(MiniMaxH3Transformer3DModel):
|
| 126 |
+
"""`MiniMaxH3Transformer3DModel` conditioned on ``(t, r)``, with dropped blocks, low-rank and INT8 linears."""
|
| 127 |
+
|
| 128 |
+
# Matched against whole dotted name parts at load time, so `time_embedder` does not cover the endpoint embedder.
|
| 129 |
+
_keep_in_fp32_modules: ClassVar[list[str]] = [
|
| 130 |
+
*MiniMaxH3Transformer3DModel._keep_in_fp32_modules,
|
| 131 |
+
"endpoint_time_embedder",
|
| 132 |
+
"wscale",
|
| 133 |
+
]
|
| 134 |
+
|
| 135 |
+
@register_to_config
|
| 136 |
+
def __init__(
|
| 137 |
+
self,
|
| 138 |
+
num_attention_heads: int = 56,
|
| 139 |
+
attention_head_dim: int = 128,
|
| 140 |
+
hidden_size: int = 5376,
|
| 141 |
+
num_layers: int = 50,
|
| 142 |
+
num_refiner_layers: int = 2,
|
| 143 |
+
ffn_dim: int = 14336,
|
| 144 |
+
in_channels: int = 24,
|
| 145 |
+
audio_in_channels: int = 32,
|
| 146 |
+
patch_size: tuple[int, int, int] = (1, 2, 2),
|
| 147 |
+
text_dim: int = 5120,
|
| 148 |
+
freq_dim: int = 256,
|
| 149 |
+
time_embed_hidden_dim: int = 5376,
|
| 150 |
+
time_embed_dim: int = 16,
|
| 151 |
+
rope_freq_dim: int = 16,
|
| 152 |
+
rope_theta: float = 10000.0,
|
| 153 |
+
norm_eps: float = 1e-5,
|
| 154 |
+
qk_norm_eps: float = 1e-5,
|
| 155 |
+
final_norm_eps: float = 1e-5,
|
| 156 |
+
hyperflow_gate: float = 0.25,
|
| 157 |
+
dropped_blocks: list[int] | None = None,
|
| 158 |
+
lowrank_ranks: dict[str, int] | None = None,
|
| 159 |
+
quantization: dict[str, Any] | None = None,
|
| 160 |
+
) -> None:
|
| 161 |
+
super().__init__(
|
| 162 |
+
num_attention_heads=num_attention_heads,
|
| 163 |
+
attention_head_dim=attention_head_dim,
|
| 164 |
+
hidden_size=hidden_size,
|
| 165 |
+
num_layers=num_layers,
|
| 166 |
+
num_refiner_layers=num_refiner_layers,
|
| 167 |
+
ffn_dim=ffn_dim,
|
| 168 |
+
in_channels=in_channels,
|
| 169 |
+
audio_in_channels=audio_in_channels,
|
| 170 |
+
patch_size=patch_size,
|
| 171 |
+
text_dim=text_dim,
|
| 172 |
+
freq_dim=freq_dim,
|
| 173 |
+
time_embed_hidden_dim=time_embed_hidden_dim,
|
| 174 |
+
time_embed_dim=time_embed_dim,
|
| 175 |
+
rope_freq_dim=rope_freq_dim,
|
| 176 |
+
rope_theta=rope_theta,
|
| 177 |
+
norm_eps=norm_eps,
|
| 178 |
+
qk_norm_eps=qk_norm_eps,
|
| 179 |
+
final_norm_eps=final_norm_eps,
|
| 180 |
+
)
|
| 181 |
+
self.endpoint_time_embedder = TimestepEmbedding(
|
| 182 |
+
in_channels=freq_dim, time_embed_dim=time_embed_hidden_dim, out_dim=time_embed_dim
|
| 183 |
+
)
|
| 184 |
+
|
| 185 |
+
dropped = set(dropped_blocks or [])
|
| 186 |
+
for index, block in enumerate(self.transformer_blocks):
|
| 187 |
+
if index in dropped:
|
| 188 |
+
self.transformer_blocks[index] = DroppedBlock()
|
| 189 |
+
else:
|
| 190 |
+
block.ff = ChunkedFeedForward(block.ff.net, block.ff.net[-1].out_features, FF_CHUNK_TOKENS)
|
| 191 |
+
for name, rank in (lowrank_ranks or {}).items():
|
| 192 |
+
if int(name.split(".")[1]) not in dropped:
|
| 193 |
+
_replace_linear(self, name, LowRankLinear, int(rank))
|
| 194 |
+
if quantization:
|
| 195 |
+
if quantization.get("method") != "int8_convrot":
|
| 196 |
+
raise ValueError(f"unsupported quantization method {quantization.get('method')!r}")
|
| 197 |
+
for name in quantization["linears"]:
|
| 198 |
+
_replace_linear(self, name, Int8RotLinear, int(quantization["group"]))
|
| 199 |
+
for block in self.transformer_blocks:
|
| 200 |
+
attn = getattr(block, "attn", None)
|
| 201 |
+
for name in ("to_q", "to_k"):
|
| 202 |
+
if isinstance(layer := getattr(attn, name, None), Int8RotLinear):
|
| 203 |
+
layer.keep_input = True
|
| 204 |
+
|
| 205 |
+
def pad_lowrank_ranks(self, multiple: int = RANK_MULTIPLE) -> int:
|
| 206 |
+
"""Zero-pad every low-rank linear to a rank multiple of ``multiple`` (see `LowRankLinear.pad_rank`) for a
|
| 207 |
+
checkpoint stored at its unpadded ranks. Returns how many linears changed."""
|
| 208 |
+
ranks = dict(self.config.lowrank_ranks or {})
|
| 209 |
+
padded = 0
|
| 210 |
+
for name, module in self.named_modules():
|
| 211 |
+
if isinstance(module, LowRankLinear) and module.pad_rank(multiple):
|
| 212 |
+
ranks[name] = module.rank
|
| 213 |
+
padded += 1
|
| 214 |
+
if padded:
|
| 215 |
+
self.register_to_config(lowrank_ranks=ranks)
|
| 216 |
+
return padded
|
| 217 |
+
|
| 218 |
+
def time_embedding(self, timestep: Tensor, endpoint_timestep: Tensor) -> Tensor:
|
| 219 |
+
"""``temb`` of every distinct ``(t, r)`` pair, at the time embedders' precision (fp32)."""
|
| 220 |
+
if endpoint_timestep.shape != timestep.shape:
|
| 221 |
+
raise ValueError(f"endpoint_timestep {list(endpoint_timestep.shape)} != timestep {list(timestep.shape)}")
|
| 222 |
+
dtype = get_parameter_dtype(self.time_embedder)
|
| 223 |
+
current = self.time_embedder(self.time_proj(timestep).to(dtype))
|
| 224 |
+
endpoint = self.endpoint_time_embedder(self.time_proj(endpoint_timestep).to(dtype))
|
| 225 |
+
return current + self.config.hyperflow_gate * (endpoint - current)
|
| 226 |
+
|
| 227 |
+
@apply_lora_scale("attention_kwargs")
|
| 228 |
+
def forward(
|
| 229 |
+
self,
|
| 230 |
+
hidden_states: Tensor,
|
| 231 |
+
audio_hidden_states: Tensor,
|
| 232 |
+
encoder_hidden_states: Tensor,
|
| 233 |
+
timestep: Tensor,
|
| 234 |
+
timestep_indices: Tensor,
|
| 235 |
+
token_tags: Tensor,
|
| 236 |
+
position_ids: Tensor,
|
| 237 |
+
video_indices: Tensor,
|
| 238 |
+
audio_indices: Tensor,
|
| 239 |
+
text_indices: Tensor,
|
| 240 |
+
endpoint_timestep: Tensor | None = None,
|
| 241 |
+
attention_kwargs: dict[str, Any] | None = None,
|
| 242 |
+
return_dict: bool = True,
|
| 243 |
+
) -> MiniMaxH3TransformerOutput | tuple[Tensor, Tensor]:
|
| 244 |
+
"""The base forward plus ``endpoint_timestep``: ``(timestep[i], endpoint_timestep[i])`` is the ``i``-th pair.
|
| 245 |
+
|
| 246 |
+
``timestep_indices`` maps every row of the packed sequence to its pair. Build the pairs with
|
| 247 |
+
`hyperflow_h3_flash.schedule.build_row_time_pairs`, or run the model through `flash_blocks(...)`.
|
| 248 |
+
"""
|
| 249 |
+
if endpoint_timestep is None:
|
| 250 |
+
raise ValueError(
|
| 251 |
+
"HyperFlow H3 Flash needs `endpoint_timestep`, the endpoint `r` of every `(t, r)` pair: it is a "
|
| 252 |
+
"few-step model and has no single-time mode. Run it through `hyperflow_h3_flash.flash_blocks(...)`."
|
| 253 |
+
)
|
| 254 |
+
if position_ids.ndim != 2 or position_ids.shape[-1] != 3:
|
| 255 |
+
raise ValueError(f"`position_ids` must be a `(seq_len, 3)` tensor, got {list(position_ids.shape)}.")
|
| 256 |
+
sequence_length = position_ids.shape[0]
|
| 257 |
+
if token_tags.shape != (sequence_length,) or timestep_indices.shape != (sequence_length,):
|
| 258 |
+
raise ValueError("`token_tags` and `timestep_indices` must both be `(seq_len,)` tensors.")
|
| 259 |
+
|
| 260 |
+
rotary_emb = self.rope(position_ids)
|
| 261 |
+
|
| 262 |
+
video_embeds = self.proj_in(hidden_states.to(get_parameter_dtype(self.proj_in)))
|
| 263 |
+
audio_embeds = self.audio_proj_in(audio_hidden_states.to(get_parameter_dtype(self.audio_proj_in)))
|
| 264 |
+
text_embeds = self.context_embedder(encoder_hidden_states.to(get_parameter_dtype(self.context_embedder)))
|
| 265 |
+
text_embeds = self.token_refiner(text_embeds)
|
| 266 |
+
|
| 267 |
+
hidden_states = text_embeds.new_zeros((text_embeds.shape[0], sequence_length, text_embeds.shape[-1]))
|
| 268 |
+
hidden_states = hidden_states.index_copy(1, text_indices, text_embeds)
|
| 269 |
+
hidden_states = hidden_states.index_copy(1, video_indices, video_embeds.to(text_embeds.dtype))
|
| 270 |
+
hidden_states = hidden_states.index_copy(1, audio_indices, audio_embeds.to(text_embeds.dtype))
|
| 271 |
+
|
| 272 |
+
temb = self.time_embedding(timestep, endpoint_timestep)
|
| 273 |
+
adaln_indices = timestep_indices * MINIMAX_H3_MODALITY_NUM + token_tags
|
| 274 |
+
for block in self.transformer_blocks:
|
| 275 |
+
hidden_states = block(hidden_states, temb, adaln_indices, rotary_emb)
|
| 276 |
+
|
| 277 |
+
hidden_states = self.norm_out(hidden_states, temb, timestep_indices).to(get_parameter_dtype(self.proj_out))
|
| 278 |
+
video_output = self.proj_out(hidden_states).index_select(1, video_indices)
|
| 279 |
+
audio_output = self.audio_proj_out(hidden_states).index_select(1, audio_indices)
|
| 280 |
+
if not return_dict:
|
| 281 |
+
return (video_output, audio_output)
|
| 282 |
+
return MiniMaxH3TransformerOutput(sample=video_output, audio_sample=audio_output)
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
def _used_rank(layer: LowRankLinear) -> int:
|
| 286 |
+
"""The rank without the zero padding (trailing zero rows of ``down`` and columns of ``up``)."""
|
| 287 |
+
used = (layer.down.weight.detach().abs().amax(1) != 0) | (layer.up.weight.detach().abs().amax(0) != 0)
|
| 288 |
+
nonzero = used.nonzero()
|
| 289 |
+
return int(nonzero[-1]) + 1 if len(nonzero) else 1
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
def set_lowrank_rank_multiple(model: nn.Module, multiple: int) -> int:
|
| 293 |
+
"""Re-pad every low-rank linear to a rank multiple of ``multiple`` (0: no padding); returns the layers changed.
|
| 294 |
+
|
| 295 |
+
Zero rows and columns add exact zeros, so any multiple computes the same function; the GEMM shapes change, and with
|
| 296 |
+
them the bf16 rounding (8 is 2 to 7 % faster than 64 on H200). Run time only: the config still lists the stored
|
| 297 |
+
ranks, so do not `save_pretrained` the re-padded model.
|
| 298 |
+
"""
|
| 299 |
+
changed = 0
|
| 300 |
+
for layer in model.modules():
|
| 301 |
+
if not isinstance(layer, LowRankLinear):
|
| 302 |
+
continue
|
| 303 |
+
rank = _used_rank(layer)
|
| 304 |
+
target = -(-rank // multiple) * multiple if multiple > 0 else rank
|
| 305 |
+
if target == layer.rank:
|
| 306 |
+
continue
|
| 307 |
+
down, up = layer.down.weight.detach(), layer.up.weight.detach()
|
| 308 |
+
if target < layer.rank:
|
| 309 |
+
down, up = down[:target], up[:, :target]
|
| 310 |
+
else:
|
| 311 |
+
down = torch.cat([down, down.new_zeros(target - layer.rank, down.shape[1])])
|
| 312 |
+
up = torch.cat([up, up.new_zeros(up.shape[0], target - layer.rank)], dim=1)
|
| 313 |
+
layer.down.weight = nn.Parameter(down.contiguous(), requires_grad=False)
|
| 314 |
+
layer.up.weight = nn.Parameter(up.contiguous(), requires_grad=False)
|
| 315 |
+
layer.rank = layer.down.out_features = layer.up.in_features = target
|
| 316 |
+
changed += 1
|
| 317 |
+
return changed
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
def set_ff_chunk(model: nn.Module, tokens: int) -> None:
|
| 321 |
+
"""Run every feed-forward over at most ``tokens`` tokens at a time (0: whole sequence)."""
|
| 322 |
+
for module in model.modules():
|
| 323 |
+
if isinstance(module, ChunkedFeedForward):
|
| 324 |
+
module.chunk_tokens = tokens if tokens > 0 else sys.maxsize
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
def chunk_block(block: nn.Module, chunk: int) -> None:
|
| 328 |
+
"""Run every token-wise op of a transformer block over ``chunk``-token slices; only the attention sees all of q /
|
| 329 |
+
k / v.
|
| 330 |
+
|
| 331 |
+
The unchunked block holds about a dozen ``(seq, hidden)`` tensors at once (each modulation picked per token, the
|
| 332 |
+
modulated norm, the residual sums), 1.2 GB apiece at 108k tokens. Per-row results are the same up to the bf16 GEMM
|
| 333 |
+
rounding for the smaller row count. Apply before context parallelism and offloading, which hook the block.
|
| 334 |
+
"""
|
| 335 |
+
import diffusers.models.transformers.transformer_minimax_h3 as h3
|
| 336 |
+
|
| 337 |
+
attn = block.attn
|
| 338 |
+
|
| 339 |
+
def forward(hidden_states, temb, adaln_indices, rotary_emb, attention_mask=None):
|
| 340 |
+
shift_msa, scale_msa, gate_msa, shift_mlp, scale_mlp, gate_mlp = block.adaln_proj(temb)
|
| 341 |
+
batch, seq, _ = hidden_states.shape
|
| 342 |
+
cos, sin = rotary_emb
|
| 343 |
+
qkv = None
|
| 344 |
+
for start in range(0, seq, chunk):
|
| 345 |
+
rows = slice(start, min(start + chunk, seq))
|
| 346 |
+
idx = adaln_indices[rows]
|
| 347 |
+
h = block.norm1(hidden_states[:, rows])
|
| 348 |
+
h = h * (1.0 + scale_msa.index_select(0, idx)) + shift_msa.index_select(0, idx)
|
| 349 |
+
parts = []
|
| 350 |
+
for proj, norm in ((attn.to_q, attn.norm_q), (attn.to_k, attn.norm_k), (attn.to_v, None)):
|
| 351 |
+
x = proj(h).unflatten(-1, (attn.heads, -1))
|
| 352 |
+
if norm is not None:
|
| 353 |
+
x = h3._apply_rotary_emb(norm(x), cos[rows], sin[rows])
|
| 354 |
+
parts.append(x)
|
| 355 |
+
if qkv is None:
|
| 356 |
+
qkv = [x.new_empty((batch, seq, *x.shape[2:])) for x in parts]
|
| 357 |
+
for full, x in zip(qkv, parts, strict=True):
|
| 358 |
+
full[:, rows] = x
|
| 359 |
+
del h, parts, x
|
| 360 |
+
out = h3.dispatch_attention_fn(
|
| 361 |
+
*qkv,
|
| 362 |
+
attn_mask=attention_mask,
|
| 363 |
+
dropout_p=0.0,
|
| 364 |
+
is_causal=False,
|
| 365 |
+
backend=attn.processor._attention_backend,
|
| 366 |
+
parallel_config=attn.processor._parallel_config,
|
| 367 |
+
)
|
| 368 |
+
dtype = qkv[0].dtype
|
| 369 |
+
del qkv
|
| 370 |
+
result = torch.empty_like(hidden_states)
|
| 371 |
+
for start in range(0, seq, chunk):
|
| 372 |
+
rows = slice(start, min(start + chunk, seq))
|
| 373 |
+
idx = adaln_indices[rows]
|
| 374 |
+
a = attn.to_out[1](attn.to_out[0](out[:, rows].flatten(2, 3).to(dtype)))
|
| 375 |
+
h = hidden_states[:, rows] + gate_msa.index_select(0, idx) * a
|
| 376 |
+
n = block.norm2(h)
|
| 377 |
+
n = n * (1.0 + scale_mlp.index_select(0, idx)) + shift_mlp.index_select(0, idx)
|
| 378 |
+
result[:, rows] = h + gate_mlp.index_select(0, idx) * block.ff(n)
|
| 379 |
+
del a, h, n
|
| 380 |
+
return result
|
| 381 |
+
|
| 382 |
+
block.forward = forward
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
def set_block_chunk(model: nn.Module, tokens: int) -> None:
|
| 386 |
+
"""`chunk_block` on every kept block (0: off). Call once, before context parallelism and offloading."""
|
| 387 |
+
if tokens > 0:
|
| 388 |
+
for block in model.transformer_blocks:
|
| 389 |
+
if not isinstance(block, DroppedBlock):
|
| 390 |
+
chunk_block(block, tokens)
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
__all__ = [
|
| 394 |
+
"RANK_MULTIPLE",
|
| 395 |
+
"ChunkedFeedForward",
|
| 396 |
+
"DroppedBlock",
|
| 397 |
+
"HyperFlowH3FlashTransformer3DModel",
|
| 398 |
+
"LowRankLinear",
|
| 399 |
+
"chunk_block",
|
| 400 |
+
"set_block_chunk",
|
| 401 |
+
"set_ff_chunk",
|
| 402 |
+
"set_lowrank_rank_multiple",
|
| 403 |
+
]
|