How to use from the
Use from the
MLX library
# Make sure mlx-vlm is installed
# pip install --upgrade mlx-vlm

from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config

# Load the model
model, processor = load("modilify/Modilify-Mk1-MLX")
config = load_config("modilify/Modilify-Mk1-MLX")

# Prepare input
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
prompt = "Describe this image."

# Apply chat template
formatted_prompt = apply_chat_template(
    processor, config, prompt, num_images=1
)

# Generate output
output = generate(model, processor, formatted_prompt, image)
print(output)

LOGO

Modilify Mk1 MLX

Native MLX runtime for Modilify Mk1.

model_type is modilify_mk1. This package does not rewrite the checkpoint as another architecture and does not install into oMLX.

The published model-*.safetensors shards are a server-side copy of the official Mk1 weights. modilify_mlx.load remaps PyTorch parameter names at load time, so you do not need a second converted 49GB checkpoint on the Hub.

Layout

  • modilify_mlx/ — config, latent deliberation, exclusive commit policy, trunk wrapper, generate loop
  • convert_modilify_mk1_mlx.py — official safetensors → MLX shards
  • generate_modilify.py — standalone text trial inference

The heavy decoder / vision trunk is composed from mlx-vlm's DiffusionGemma layers as an internal dependency. Router top-k and the RMS-capped latent merge are Mk1's own forwards.

Convert

Use the oMLX bundled interpreter only as a Python that already has mlx:

export PYTHONHOME=/Applications/oMLX.app/Contents/Resources/Python/cpython-3.11
export PYTHONPATH=/Applications/oMLX.app/Contents/Resources:/Applications/oMLX.app/Contents/Resources/Python/framework-mlx-base/lib/python3.11/site-packages
/Applications/oMLX.app/Contents/Resources/Python/cpython-3.11/bin/python3 \
  ~/Modilify-Mk1-MLX/convert_modilify_mk1_mlx.py \
  --source ~/Modilify-Mk1 \
  --destination ~/Modilify-Mk1-MLX

Generate

Official Mk1 shards and locally remapped MLX shards both load. Parameter names are remapped in modilify_mlx.load.

/Applications/oMLX.app/Contents/Resources/Python/cpython-3.11/bin/python3 \
  ~/Modilify-Mk1-MLX/generate_modilify.py \
  --model ~/Modilify-Mk1-MLX \
  --prompt "Explain why the sky is blue." \
  --max-new-tokens 128

Default is bf16 (--expert-bits 16). Add --profile to print per-phase denoise timings. Full-graph mx.compile of the decoder is blocked by MoE gather/router slices.

Downloads last month
52
Safetensors
Model size
26B params
Tensor type
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for modilify/Modilify-Mk1-MLX

Finetuned
(1)
this model