Commit 658e24e
[core] Pyramid Attention Broadcast (#9562)
* start pyramid attention broadcast
* add coauthor
Co-Authored-By: Xuanlei Zhao <[email protected]>
* update
* make style
* update
* make style
* add docs
* add tests
* update
* Update docs/source/en/api/pipelines/cogvideox.md
Co-authored-by: Steven Liu <[email protected]>
* Update docs/source/en/api/pipelines/cogvideox.md
Co-authored-by: Steven Liu <[email protected]>
* Pyramid Attention Broadcast rewrite + introduce hooks (#9826)
* rewrite implementation with hooks
* make style
* update
* merge pyramid-attention-rewrite-2
* make style
* remove changes from latte transformer
* revert docs changes
* better debug message
* add todos for future
* update tests
* make style
* cleanup
* fix
* improve log message; fix latte test
* refactor
* update
* update
* update
* revert changes to tests
* update docs
* update tests
* Apply suggestions from code review
Co-authored-by: Steven Liu <[email protected]>
* update
* fix flux test
* reorder
* refactor
* make fix-copies
* update docs
* fixes
* more fixes
* make style
* update tests
* update code example
* make fix-copies
* refactor based on reviews
* use maybe_free_model_hooks
* CacheMixin
* make style
* update
* add current_timestep property; update docs
* make fix-copies
* update
* improve tests
* try circular import fix
* apply suggestions from review
* address review comments
* Apply suggestions from code review
* refactor hook implementation
* add test suite for hooks
* PAB Refactor (#10667)
* update
* update
* update
---------
Co-authored-by: DN6 <[email protected]>
* update
* fix remove hook behaviour
---------
Co-authored-by: Xuanlei Zhao <[email protected]>
Co-authored-by: Steven Liu <[email protected]>
Co-authored-by: DN6 <[email protected]>1 parent fb42066 commit 658e24e
File tree
32 files changed
+1256
-67
lines changed- docs/source/en
- api
- src/diffusers
- hooks
- models
- transformers
- pipelines
- allegro
- cogvideo
- flux
- hunyuan_video
- latte
- mochi
- utils
- tests
- hooks
- pipelines
- allegro
- cogvideo
- flux
- hunyuan_video
- latte
32 files changed
+1256
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
601 | 603 | | |
602 | 604 | | |
603 | 605 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| 101 | + | |
93 | 102 | | |
94 | 103 | | |
95 | 104 | | |
| |||
588 | 597 | | |
589 | 598 | | |
590 | 599 | | |
| 600 | + | |
591 | 601 | | |
592 | 602 | | |
593 | 603 | | |
| |||
602 | 612 | | |
603 | 613 | | |
604 | 614 | | |
| 615 | + | |
605 | 616 | | |
606 | 617 | | |
607 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
52 | | - | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
102 | 126 | | |
103 | 127 | | |
104 | 128 | | |
| |||
107 | 131 | | |
108 | 132 | | |
109 | 133 | | |
| 134 | + | |
110 | 135 | | |
111 | 136 | | |
112 | 137 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
120 | 142 | | |
121 | 143 | | |
122 | 144 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 145 | + | |
126 | 146 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
131 | 150 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
136 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
137 | 167 | | |
138 | | - | |
| 168 | + | |
139 | 169 | | |
140 | 170 | | |
| 171 | + | |
141 | 172 | | |
142 | 173 | | |
| 174 | + | |
143 | 175 | | |
144 | 176 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 177 | + | |
148 | 178 | | |
149 | 179 | | |
150 | 180 | | |
| 181 | + | |
151 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
152 | 195 | | |
153 | 196 | | |
154 | | - | |
| 197 | + | |
| 198 | + | |
155 | 199 | | |
156 | 200 | | |
157 | 201 | | |
| |||
161 | 205 | | |
162 | 206 | | |
163 | 207 | | |
164 | | - | |
| 208 | + | |
165 | 209 | | |
166 | 210 | | |
167 | 211 | | |
| |||
180 | 224 | | |
181 | 225 | | |
182 | 226 | | |
183 | | - | |
| 227 | + | |
184 | 228 | | |
185 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
186 | 234 | | |
187 | | - | |
188 | | - | |
| 235 | + | |
| 236 | + | |
0 commit comments