Migrate Ideogram runtime to MLX#1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MLXBits/ideogram-4-mlx-q8.server/mlx_runtime.pyandideogram4_mlx.py; remove old MPS benchmark/LoRA helper scripts../run.sh doctorand benchmark documentation.Validation
python -m compileall server ideogram4_mlx.py scripts/doctor.pyrg "torch|safetensors.torch|from ideogram4|import ideogram4" server ideogram4_mlx.py./run.sh doctor(0 failures; 1 warning for unset optionalIDEOGRAM4_MLX_CACHE_LIMIT_GB)cd webui && pnpm lintcd webui && pnpm buildV4_TURBO_12generation, LoRA apply -> generate -> remove -> generate.Operational Notes
legacy/pytorch-mpshas been pushed separately to preserve the old PyTorch/MPS runtime as the rollback branch.IDEOGRAM4_MODEL_DAEMON_AUTOLOADnow defaults to0to avoid immediately reserving about 29GB of unified memory while a local Magic Prompt LLM may also be running.POST /api/model/loadwhen image generation is needed.IDEOGRAM4_MLX_CACHE_LIMIT_GBremains optional for machines that need a stricter reusable MLX cache budget.Follow-up Tracking
mfluxremains pinned to PR #445 commit8d80b9cb53688b62a2f814604b9f8b48987c5acduntil MLXBits q8 loading lands in a stable release.