Downloads · 30 days
1.3K
41% of all-time downloads
BennyDaBall/Mistral-44B-MoE-Patched-MLX-4bit-G64
Mistral-44B-MoE-Patched-MLX-4bit-G64 is a text generation model from BennyDaBall. Use it when you need the model to write or continue text. It is set up for mlx.
Downloads · 30 days
1.3K
41% of all-time downloads
All-time downloads
3K
Public
Parameters
44.2B
24.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors24.9 GB · 100%
How the weights are stored.
U3244.2B · 100%
From the Hugging Face model README

Follow me on X @BennyDaBall_OG !
This repository contains a patched and quantized version of the DavidAU/Mistral-2x24B-MOE-Magistral-2506-Devstral-2507-1.1-Coder-Reasoning-Ultimate-44B model, converted to the MLX format and optimized for Apple Silicon.
The original Hugging Face model was converted to the MLX format using a custom Python script, convert_model.py. This script performs several critical steps to ensure compatibility and optimization for MLX on Apple Silicon. The key methods and "patches" applied during this conversion are:
mlx.core.mx.array format. This involves iterating through all model tensors and transforming them for efficient processing on Apple Silicon.config.json and the shapes of q_proj.weight tensors to detect if the query projection output dimension (q_proj_outdim) was smaller than the model's hidden_size.num_attention_heads and num_key_value_heads to align with the hidden_size while preserving the Grouped Query Attention (GQA) ratio.q_proj, k_proj, v_proj, and o_proj tensors were then zero-padded to their new, expanded dimensions. This ensures that the model's architecture is consistent and correctly interpreted by MLX, preventing runtime errors and enabling proper functionality.config.json file was updated to explicitly set the "model_type" to "mistral". This ensures that the MLX framework correctly identifies and loads the model architecture, which is vital for proper model instantiation and operation."group_size": 64, "bits": 4) are explicitly recorded in the config.json for transparency and reproducibility.To use this model with MLX, you can load it directly:
from mlx_lm import load
model, tokenizer = load("BennyDaBall/Mistral-44B-MoE-Patched-MLX-4bit-G64")
# Example for text generation
prompt = "Hello, my name is"
response = model.generate(tokenizer.encode(prompt))
print(tokenizer.decode(response))
This model is based on the original model by DavidAU. Please refer to the original model's license for details.
Follow me on X @BennyDaBall_OG !