Skip to content

Commit b469f02

Browse files
committed
fomrat
1 parent 18d109c commit b469f02

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

mlx_embeddings/models/openai_privacy_filter.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ def __init__(self, config: ModelArgs):
150150
activation=PrivacyFilterSwiGLU(),
151151
bias=True,
152152
)
153-
self.router = nn.Linear(
154-
config.hidden_size, config.num_local_experts, bias=True
155-
)
153+
self.router = nn.Linear(config.hidden_size, config.num_local_experts, bias=True)
156154

157155
def __call__(self, x: mx.array) -> mx.array:
158156
router_logits = self.router(x).astype(mx.float32)
@@ -270,7 +268,6 @@ def __call__(
270268
logits=logits,
271269
)
272270

273-
274271
def sanitize(self, weights: dict) -> dict:
275272
# Split the fused gate_up_proj (concatenated layout) into separate gate and up
276273
# projections, and transpose expert weights from (E, in, out) to (E, out, in)

0 commit comments

Comments
 (0)