Skip to content

Commit c5726c2

Browse files
committed
Update formatting
1 parent a3c108c commit c5726c2

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

.flake8

Lines changed: 0 additions & 7 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ repos:
1111
- id: black
1212
name: black
1313
language: python
14-
args: ["--config", ".flake8"]
1514

1615
- repo: https://github.com/pre-commit/pre-commit-hooks
1716
rev: v4.5.0

python/src/diffusionkit/mlx/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ def encode_text(
655655
text,
656656
(negative_text if cfg_weight > 1 else None),
657657
)
658-
padded_tokens_t5 = mx.zeros((1, T5_MAX_LENGTH[self.model_version])).astype(tokens_t5.dtype)
658+
padded_tokens_t5 = mx.zeros((1, T5_MAX_LENGTH[self.model_version])).astype(
659+
tokens_t5.dtype
660+
)
659661
padded_tokens_t5[:, : tokens_t5.shape[1]] = tokens_t5[
660662
[0], :
661663
] # Ignore negative text

python/src/diffusionkit/mlx/mmdit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ def __init__(self, in_dim: int, hidden_dim: int):
948948
self.mlp = nn.Sequential(
949949
nn.Linear(in_dim, hidden_dim),
950950
nn.SiLU(),
951-
nn.Linear(hidden_dim, hidden_dim)
951+
nn.Linear(hidden_dim, hidden_dim),
952952
)
953953

954954
def __call__(self, x):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def run(self):
2929
"argmaxtools>=0.1.13",
3030
"torch",
3131
"safetensors",
32-
"mlx>=0.16.3",
32+
"mlx>=0.17.1",
3333
"jaxtyping",
3434
"transformers",
3535
"pillow",

0 commit comments

Comments
 (0)