Skip to content

Commit 843466f

Browse files
committed
Remove unused imports
1 parent df1d3f3 commit 843466f

32 files changed

Lines changed: 14 additions & 38 deletions

mlx_lm/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from mlx_lm import batch_generate, load, stream_generate
99
from mlx_lm.generate import DEFAULT_MODEL
10-
from mlx_lm.utils import pipeline_load, sharded_load
10+
from mlx_lm.utils import sharded_load
1111

1212

1313
def setup_arg_parser():

mlx_lm/chat_templates/deepseek_v32.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import copy
44
import json
5-
import re
65
from inspect import isfunction
76
from typing import Any, Dict, List, Optional, Tuple, Union
87

mlx_lm/examples/tool_use.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Copyright © 2025 Apple Inc.
22

3-
import json
4-
53
from mlx_lm import generate, load
64
from mlx_lm.models.cache import make_prompt_cache
75

mlx_lm/generate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import time
1010
from collections import deque
1111
from dataclasses import dataclass
12-
from functools import partial
1312
from typing import (
1413
Any,
1514
Callable,

mlx_lm/lora.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import re
55
import types
6-
import warnings
76
from pathlib import Path
87

98
import mlx.core as mx

mlx_lm/models/afm7.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dataclasses import dataclass
55
from functools import partial
66
from itertools import accumulate
7-
from typing import Any, Dict, Optional, Union
7+
from typing import Any, Optional
88

99
import mlx.core as mx
1010
import mlx.nn as nn

mlx_lm/models/apertus.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright © 2023-2025 Apple Inc.
22

33
from dataclasses import dataclass
4-
from functools import partial
54
from typing import Any, Dict, Optional, Union
65

76
import mlx.core as mx

mlx_lm/models/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import inspect
44
from dataclasses import dataclass
5-
from typing import Any, Optional
5+
from typing import Optional
66

77
import mlx.core as mx
88
from mlx.utils import tree_map

mlx_lm/models/bitlinear_layers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import mlx.core as mx
44
import mlx.nn as nn
5-
from mlx.nn.layers.quantized import QuantizedLinear
65
from mlx.utils import tree_flatten, tree_unflatten
76

87

mlx_lm/models/bitnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright © 2023-2024 Apple Inc.
22

33
from dataclasses import dataclass
4-
from functools import partial
54
from typing import Any, Dict, Optional, Union
65

76
import mlx.core as mx

0 commit comments

Comments
 (0)