[GH-ISSUE #416] [Issue]: MLX sidecar fails to load gemma-4-e2b-it-8bit — bundled mlx-lm 0.31.3 lacks gemma4 module #173

Closed
opened 2026-10-20 17:25:53 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reverendbrown on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/416

Originally assigned to: @SpicyMarinara on GitHub.

Summary

MLX sidecar runtime is outdated with whatever PyPI ships (currently 0.31.3). mlx-community/gemma-4-e2b-it-8bit model (the default Gemma 4 option in the UI) cannot be loaded by 0.31.3

Expected behavior

After installing the MLX runtime and downloading the offered Gemma 4 model, "Run Test Message" succeeds.

Actual behavior

"Run Test Message" times out after 45s.

Steps to reproduce

  1. Fresh checkout, set SIDECAR_RUNTIME_INSTALL_ENABLED=true + ADMIN_SECRET=… in .env.
  2. Start server, open Settings → Sidecar, install MLX runtime.
  3. Choose mlx-community/gemma-4-e2b-it-8bit, download.
  4. Click "Run Test Message" → 45s timeout. Server log at data/sidecar-runtime/server.log has the ValueError trace.

Environment

  • Marinara Engine version: 1.5.7
  • Install type: source
  • OS + version: macOS 26.4.1 apple silicon
  • Browser or app shell: Safari

Logs, screenshots, or video

Test message failure:

Local Test Message Failed
45140ms
The operation was aborted due to timeout

Server log:
ValueError: Received 140 parameters not in model:
language_model.model.layers.15.self_attn.k_norm.weight,
... (140 entries)

Additional context

Workaround, updated to mlx-lm main

data/sidecar-runtime/mlx/uv/uv pip install
--python data/sidecar-runtime/mlx/.venv/bin/python
--upgrade git+https://github.com/ml-explore/mlx-lm.git

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @reverendbrown on GitHub (May 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/416 Originally assigned to: @SpicyMarinara on GitHub. ## Summary MLX sidecar runtime is outdated with whatever PyPI ships (currently 0.31.3). `mlx-community/gemma-4-e2b-it-8bit` model (the default Gemma 4 option in the UI) cannot be loaded by 0.31.3 ## Expected behavior After installing the MLX runtime and downloading the offered Gemma 4 model, "Run Test Message" succeeds. ## Actual behavior "Run Test Message" times out after 45s. ## Steps to reproduce 1. Fresh checkout, set `SIDECAR_RUNTIME_INSTALL_ENABLED=true` + `ADMIN_SECRET=…` in `.env`. 2. Start server, open Settings → Sidecar, install MLX runtime. 3. Choose `mlx-community/gemma-4-e2b-it-8bit`, download. 4. Click "Run Test Message" → 45s timeout. Server log at `data/sidecar-runtime/server.log` has the `ValueError` trace. ## Environment - Marinara Engine version: 1.5.7 - Install type: source - OS + version: macOS 26.4.1 apple silicon - Browser or app shell: Safari ## Logs, screenshots, or video Test message failure: Local Test Message Failed 45140ms The operation was aborted due to timeout Server log: ValueError: Received 140 parameters not in model: language_model.model.layers.15.self_attn.k_norm.weight, ... (140 entries) ## Additional context Workaround, updated to mlx-lm main data/sidecar-runtime/mlx/uv/uv pip install \ --python data/sidecar-runtime/mlx/.venv/bin/python \ --upgrade git+https://github.com/ml-explore/mlx-lm.git ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:53 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (May 5, 2026):

Fix to be pushed, soon.

<!-- gh-comment-id:4377688950 --> @SpicyMarinara commented on GitHub (May 5, 2026): Fix to be pushed, soon.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#173
No description provided.