mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #416] [Issue]: MLX sidecar fails to load gemma-4-e2b-it-8bit — bundled mlx-lm 0.31.3 lacks gemma4 module #173
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#173
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-8bitmodel (the default Gemma 4 option in the UI) cannot be loaded by 0.31.3Expected 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
SIDECAR_RUNTIME_INSTALL_ENABLED=true+ADMIN_SECRET=…in.env.mlx-community/gemma-4-e2b-it-8bit, download.data/sidecar-runtime/server.loghas theValueErrortrace.Environment
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:
@SpicyMarinara commented on GitHub (May 5, 2026):
Fix to be pushed, soon.