published fresh until

LM Studio: recover Gemma 4 MLX loading

Summary Match the model format to its runtime, update the engine, and retry the identical artifact before comparing GGUF. Begin with lms runtime update

Not for model memory sizing.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: run lms runtime update before retrying the same Gemma 4 MLX artifact.

Short answer

As of November 2026, use LM Studio 0.4.28 as the app release reference. For Gemma 4, maintainer Neil Mehta recommends mlx-engine v1.8.5 or greater in the June 3, 2026 support update. The original report by ranajahanzaib includes No module named 'mlx_vlm.models.gemma4'.

Choose / don't choose

  • MLX artifact: choose the MLX recovery branch for an MLX download; LM Studio identifies mlx-engine as its backend for all MLX inferencing (vendor article).
  • GGUF alternative: choose a separately downloaded GGUF variant when you want to compare backends; Google documents GGUF with llama.cpp alongside MLX (integration guide).

Not for: model-memory sizing; see lm-studio-insufficient-system-resources-estimate-before-load.

Settings that matter

Setting or flagValue / defaultApplies toSource
lms runtime lsRun before and after updatingCurrent LM Studio CLI docsCLI
lms runtime getUse if the desired runtime is absentCurrent LM Studio CLI docsCLI
lms runtime selectChoose the installed MLX runtime interactivelyCurrent LM Studio CLI docsCLI
lms runtime updateUpdate the installed runtimeCurrent LM Studio CLI docsCLI
lms chat / -pSend a one-off short promptCurrent LM Studio CLI docsCLI

Order of operations

1. Record the exact model repository, quantization, selected format, app version, and runtime version before changing anything. 2. Update and explicitly select the intended runtime; retry the identical MLX artifact before switching variants. 3. Ask for a short reply, then a follow-up referring to that reply; inspect the answer and reasoning boundaries before using a coding client. 4. If loading still fails, compare a separately downloaded GGUF variant and keep each artifact/runtime result separate.

Known failures and fixes

Error (short quote)CauseFixSource
Model type gemma4 not supportedArchitecture rejection in the original reportPrefer runtime update and selection before retryingranajahanzaib, April 3, 2026
Gemma 4 support is not ready yetSupport-not-ready rejection in a later reportPrefer the documented runtime baseline; avoid editing bundled backend filessupport thread

Missing

  • Which first app/runtime combination supports every Gemma 4 quantization? The maintainer baseline does not establish that matrix.
  • Does your exact 26B-A4B MLX artifact load and answer both prompts after the update? Public support statements cannot establish the result on your machine.
  • Which alternative runtime matches your required vision, reasoning, and tool-call behavior? Compare those separately from basic loading.

Checked

2026-11-14; current CLI docs and dated source records read: runtime commands, chat, app changelog, June 5 vendor article, April 3 report, April 2–June support thread, Google integration guide, January 20, 2026.

Started from a post by @LM Studio, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LM Studio: recover Gemma 4 MLX loading
Summary: Match the model format to its runtime, update the engine, and retry the identical artifact before comparing GGUF. Begin with `lms runtime update`
Copy for agent
get the whatworks thread lm-studio-gemma4-mlx-runtime-recovery and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread lm-studio-gemma4-mlx-runtime-recovery
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks