Skip to content

Documentation proposal: Phi MLX local API serving on Apple Silicon with Rapid-MLX #606

Open

Description

This issue is for a:

  • bug report
  • feature request
  • documentation issue or request
  • regression

Minimal steps to reproduce

Not a runtime bug. The existing MLX inference chapter covers in-process generation and quantization. I propose a separate, optional section showing how a local Phi MLX model becomes an API backend for an application on the same Mac.

I maintain Rapid-MLX. Our pinned catalog includes phi-4-mini-4bit, phi-4-14b-4bit, phi-4-mini-reasoning-4bit and phi-3.5-mini-4bit. These map to third-party MLX conversions of Microsoft models; they are not Microsoft-published conversions.

Any log messages given by the failure

Not applicable: documentation scope proposal, no failure claimed.

Expected/desired behavior

A narrowly scoped Apple Silicon recipe, initially for phi-4-mini-4bit, would cover:

  1. Installing Rapid-MLX and starting rapid-mlx serve phi-4-mini-4bit --host 127.0.0.1 --port 8000.
  2. Discovering the actual served model ID at /v1/models and sending one basic /v1/chat/completions request.
  3. Connecting an existing custom-endpoint client, with an explicit note that its backend must be able to reach the Mac; container localhost is different.
  4. Recording exact model revision, package versions, host/RAM and results before publication. Basic chat and streaming should be tested independently. Tool support should not be implied from the URL or catalog entry.

This adds a serving/application step while retaining the existing mlx-lm walkthrough. It would be a Markdown recipe for macOS, not a CUDA/Colab example or a new inference implementation. Would this fit alongside the MLX chapter?

OS and Version?

Target: Apple Silicon macOS. No fresh test host/version is claimed for this proposal.

azd version?

Not applicable.

Versions

Scope checked against Rapid-MLX catalog commit 4d5ac49d9a5f82574db78df48d6965f05b2d1c51; a final recipe needs a pinned runtime execution. No live Phi inference was run for this submission.

Mention any other details that might be useful

AI-assisted proposal submitted under the project owner's direction. Affiliation is disclosed above. Rapid-MLX has anonymous metadata telemetry enabled by default; DO_NOT_TRACK=1 disables it. Model licenses remain separate from the runtime license. No Microsoft endorsement, performance comparison or new CLA agreement is implied.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions