Repository navigation
feat(mlx): serve inkling-2-mini with mlx-lm from PR #2086 - #3157
Conversation
Adds the mlx-lm-pr backend: uvx runs mlx_lm.server from the pinned PR-head commit of mlx-lm#2086, tracked by Renovate on the fork branch. inkling-2-mini moves from mlx-vlm-native to this backend; a new mlx-lm-pr-command check asserts its package, snapshot path and flags. Assisted-by: Claude:claude-opus-5-5 Claude-Session: https://claude.ai/code/session_01EEuWHTjtUwCGfLDMQPVR4J
Code reviewThe diff introduces a new 'mlx-lm-pr' backend with consistent updates across configuration, versioning, and check modules, and no defects were identified against the four checks.
Router role
|
Security reviewThe diff introduces a new model backend configuration and corresponding Nix build logic without modifying authentication, permissions, triggers, or secret handling in a way that poses a security risk.
Router role
|
Semantic reviewThe pull request accurately describes the addition of the mlx-lm-pr backend, the migration of inkling-2-mini to it, and the associated configuration and check updates without omitting significant behavioral changes or making false claims.
Router role
|
Leak reviewNo findings.
Blocking callers treat findings as advisory before
|
feat(mlx): serve inkling-2-mini with mlx-lm from PR #2086
Objective
Serve the
inkling-2-minishared resident withmlx_lm.serverfrom the headcommit of ml-explore/mlx-lm#2086, which adds the
inkling2_loopmodel type.Approach
mlx-lm-prbackend.uvxrunspython -m mlx_lm.serverfrommlx-lm @ git+https://github.com/jundot/mlx-lm.git@e2b5bbd3…. A git URL isused because mlx-lm builds with setuptools-scm, which needs git metadata.
mlxLmPrInstallSpecinlib/versions.nixholds the pin. A Renovate regexmanager tracks the fork branch
inkling2-mini.inkling-2-minimoves frommlx-vlm-nativetomlx-lm-pr. It keeps itspinned revision, and
--max-kv-sizeis dropped becausemlx_lm.serverhasno such flag.
--log-level,--max-tokens,--decode-concurrency,--prompt-concurrency,--prompt-cache-sizeand--prompt-cache-bytes.It also emits
--prefill-step-sizewhen that option is set.Changes
lib/versions.nix,renovate.json5: the pin and its Renovate manager.modules/mlx/mlx-lm-server.nix,default.nix,model-server-cmd.nix,model-server-pattern.nix,options-model-backends.nix,lib/model-serving.nix: the backend wiring.modules/mlx/catalog-data-residents.nix: the Inkling backend.lib/checks/mlx-audio-command.nix: a newmlx-lm-pr-commandcheck.lib/checks/mlx-shared-residents.nix: Inkling's assertion now targets thenew backend.
Verification
nix fmt,statix checkanddeadnixare clean, andpre-commitpasseson the changed files.
mlx-*check underchecks.x86_64-linuxevaluates, includingmlx-lm-pr-command.python -m mlx_lm.server --helpat the pinned commit lists every emitted flag.mlx-community/Inkling-2-Mini-4bitand answered two parallel/v1/chat/completionsrequests with HTTP 200.🤖 Generated with Claude Code
https://claude.ai/code/session_01EEuWHTjtUwCGfLDMQPVR4J