LM Studio hack unlocks Gemma 4 MLX
A community-sourced workaround for LM Studio enables early support for Google's Gemma 4 models on Apple Silicon using the MLX backend. By commenting out a hardcoded version block in the bundled Python engine, users can bypass a temporary software lock on the new 256K context models ahead of an official update.
The fact that Gemma 4 support is already bundled but blocked suggests LM Studio is polishing the integration before a full release, or awaiting final stability patches for its MLX engine implementation.
- –Modifying `generate.py` bypasses a `ValueError` that prevents Gemma 4 from loading despite the underlying engine support being present.
- –Successful community tests on M4 Pro hardware confirm that the bundled `mlx-vlm` and `mlx-lm` libraries are ready for the new model architecture.
- –Gemma 4 represents a major multimodal release for Google, featuring a 256K context window and native support for audio, image, and video inputs.
- –While GGUF versions are already functional, this hack provides a path for users preferring MLX's specific performance profile on Mac.
- –Caution is advised as direct edits to vendor extensions can be overwritten by future app updates or cause unexpected stability issues.
DISCOVERED
47d ago
2026-04-11
PUBLISHED
47d ago
2026-04-11
RELEVANCE
AUTHOR
Artistic_Unit_5570
