Skip to content

Commit 77ca8e3

Browse files
committed
fix schnell support
1 parent 8650b87 commit 77ca8e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flux.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,9 @@ struct FluxRunner : public GGMLRunner {
840840
context = to_backend(context);
841841
y = to_backend(y);
842842
timesteps = to_backend(timesteps);
843-
guidance = to_backend(guidance);
843+
if (flux_params.guidance_embed) {
844+
guidance = to_backend(guidance);
845+
}
844846

845847
pe_vec = flux.gen_pe(x->ne[1], x->ne[0], 2, x->ne[3], context->ne[1], flux_params.theta, flux_params.axes_dim);
846848
int pos_len = pe_vec.size() / flux_params.axes_dim_sum / 2;

0 commit comments

Comments
 (0)