Skip to content

feat(mlx): serve inkling-2-mini with mlx-lm from PR #2086 - #3157

Merged
jacobpevans-claude[bot] merged 1 commit into
developfrom
feat/inkling-mlx-lm-pr-backend-v2
Nov 23, 2026
Merged

jacobpevans-claude[bot] merged 1 commit into
developfrom
feat/inkling-mlx-lm-pr-backend-v2

Conversation

@jacobpevans-claude

Copy link
Copy Markdown
Contributor

feat(mlx): serve inkling-2-mini with mlx-lm from PR #2086

Objective

Serve the inkling-2-mini shared resident with mlx_lm.server from the head
commit of ml-explore/mlx-lm#2086, which adds the inkling2_loop model type.

Approach

  • New mlx-lm-pr backend. uvx runs python -m mlx_lm.server from
    mlx-lm @ git+https://github.com/jundot/mlx-lm.git@e2b5bbd3…. A git URL is
    used because mlx-lm builds with setuptools-scm, which needs git metadata.
  • mlxLmPrInstallSpec in lib/versions.nix holds the pin. A Renovate regex
    manager tracks the fork branch inkling2-mini.
  • inkling-2-mini moves from mlx-vlm-native to mlx-lm-pr. It keeps its
    pinned revision, and --max-kv-size is dropped because mlx_lm.server has
    no such flag.
  • The backend emits --log-level, --max-tokens, --decode-concurrency,
    --prompt-concurrency, --prompt-cache-size and --prompt-cache-bytes.
    It also emits --prefill-step-size when that option is set.
  • The shared mlx-lm pin and all other backends are unchanged.

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 new mlx-lm-pr-command check.
    lib/checks/mlx-shared-residents.nix: Inkling's assertion now targets the
    new backend.

Verification

  • nix fmt, statix check and deadnix are clean, and pre-commit passes
    on the changed files.
  • Every mlx-* check under checks.x86_64-linux evaluates, including
    mlx-lm-pr-command.
  • python -m mlx_lm.server --help at the pinned commit lists every emitted flag.
  • On Apple Silicon, the pinned server loaded
    mlx-community/Inkling-2-Mini-4bit and answered two parallel
    /v1/chat/completions requests with HTTP 200.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EEuWHTjtUwCGfLDMQPVR4J

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
@github-actions

Copy link
Copy Markdown

Code review

The 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.

Check Result File Line Detail
correctness pass 0
regression pass 0
missing_test pass 0
native_first pass 0

Router role standard.

AI Provenance | Workflow: AI Merge Gate | Run | Event: pull_request | Actor: jacobpevans-claude[bot]

@github-actions

Copy link
Copy Markdown

Security review

The 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.

Check Result File Line Detail
auth pass 0
injection pass 0
permission_widening pass 0
unsafe_trigger pass 0
secret_handling pass 0

Router role critical.

AI Provenance | Workflow: AI Merge Gate | Run | Event: pull_request | Actor: jacobpevans-claude[bot]

@github-actions

Copy link
Copy Markdown

Semantic review

The 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.

Check Result File Line Detail
claim_mismatch pass 0
omitted_behavior pass 0

Router role standard.

AI Provenance | Workflow: AI Merge Gate | Run | Event: pull_request | Actor: jacobpevans-claude[bot]

@github-actions

Copy link
Copy Markdown

Leak review

No findings.

Check Result File Line Detail

Blocking callers treat findings as advisory before 2026-11-23 UTC and fail on and after that date. Router role standard.

AI Provenance | Workflow: AI Merge Gate | Run | Event: pull_request | Actor: jacobpevans-claude[bot]

@jacobpevans-claude
jacobpevans-claude Bot merged commit 1987943 into develop Nov 23, 2026
72 checks passed
@jacobpevans-claude
jacobpevans-claude Bot deleted the feat/inkling-mlx-lm-pr-backend-v2 branch November 23, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant