Skip to content

MLX does not run Gemma 4 unified architecture #2022

Description

@freerainboxbox

Which version of LM Studio?
0.4.16+1 (MLX runtime 1.8.5)

Which operating system?
macOS Sequoia 15.6.1 (M1 Max 64 GB)

What is the bug?
MLX quants of Gemma 4 12B, or any potential model using the unified architecture do not load with the MLX runtime.

Screenshots
N/A

Logs

Error when loading model: ValueError: Model type gemma4_unified not supported.
Error: No module named 'mlx_vlm.speculative.drafters.gemma4_unified'

To Reproduce
Steps to reproduce the behavior:

  1. Download https://huggingface.co/mlx-community/gemma-4-12B-it-qat-4bit OR quantize directly from source using python -m mlx_vlm convert --hf-path google/gemma-4-12B-it-qat-q4_0-unquantized -q --q-group-size 32 --q-bits 4
  2. Attempt to load the new model

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions