File tree 2 files changed +4
-1
lines changed
python/src/diffusionkit/mlx 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ def encode_text(
655
655
text ,
656
656
(negative_text if cfg_weight > 1 else None ),
657
657
)
658
- padded_tokens_t5 = mx .zeros ((1 , 256 )).astype (tokens_t5 .dtype )
658
+ padded_tokens_t5 = mx .zeros ((1 , T5_MAX_LENGTH [ self . model_version ] )).astype (tokens_t5 .dtype )
659
659
padded_tokens_t5 [:, : tokens_t5 .shape [1 ]] = tokens_t5 [
660
660
[0 ], :
661
661
] # Ignore negative text
Original file line number Diff line number Diff line change 17
17
"sd3-8b-unreleased" : 1024 ,
18
18
"argmaxinc/mlx-FLUX.1-schnell" : 512 ,
19
19
"argmaxinc/mlx-FLUX.1-schnell-4bit-quantized" : 512 ,
20
+ "argmaxinc/mlx-FLUX.1-dev" : 512 ,
20
21
}
21
22
WIDTH = {
22
23
"argmaxinc/mlx-stable-diffusion-3-medium" : 512 ,
23
24
"sd3-8b-unreleased" : 1024 ,
24
25
"argmaxinc/mlx-FLUX.1-schnell" : 512 ,
25
26
"argmaxinc/mlx-FLUX.1-schnell-4bit-quantized" : 512 ,
27
+ "argmaxinc/mlx-FLUX.1-dev" : 512 ,
26
28
}
27
29
SHIFT = {
28
30
"argmaxinc/mlx-stable-diffusion-3-medium" : 3.0 ,
29
31
"sd3-8b-unreleased" : 3.0 ,
30
32
"argmaxinc/mlx-FLUX.1-schnell" : 1.0 ,
31
33
"argmaxinc/mlx-FLUX.1-schnell-4bit-quantized" : 1.0 ,
34
+ "argmaxinc/mlx-FLUX.1-dev" : 1.0 ,
32
35
}
33
36
34
37
You can’t perform that action at this time.
0 commit comments