Terug
RUNTIME / MEDIUM

MLX LM

Native Apple silicon inference, experimentation and fine-tuning

Primaire bron
DifficultyMediumSetup profile
Platforms1apple
APIOpenAI-compatible server + CLI:8080
01 / INSTALL & RUN

Installation depends on your OS. These commands are examples or templates: replace placeholders and verify quantization, file format, drivers and runtime support. Memory fit does not guarantee deployment.

  1. 1
    Installpip install mlx-lm
  2. 2
    Start a modelmlx_lm.server --model <verified-MLX-conversion>
  3. 3
    Connect your app

    OpenAI-compatible server + CLI · :8080. Keep the service bound to localhost unless you add authentication and network controls.

Let op

Only for Apple silicon. Use an MLX-converted model and tune KV cache size for long contexts. The bundled mlx_lm.server is an OpenAI-compatible HTTP endpoint (default 127.0.0.1:8080), but upstream warns it implements only basic security checks and is not recommended for production.

02 / COMPATIBLE MODELS

Representatieve open-weightmodellen

Alibaba Qwen

Qwen3.6 27B

27BQ4 / NVFP4 estimate
Geschat geheugen
~18.5 GB
Context
262K native
Alibaba Qwen

Qwen3.8 27B

27BQ4 estimate
Geschat geheugen
~19.5 GB
Context
262K native
Google

Gemma 3 1B

1BINT4 / GGUF Q4
Geschat geheugen
~1.4 GB
Context
32K
Meta

Llama 3.2 3B

3BGGUF Q4
Geschat geheugen
~2.8 GB
Context
128K
Alibaba Qwen

Qwen3 4B

4BGGUF Q4
Geschat geheugen
~3.6 GB
Context
32K+
Google

Gemma 3 4B

4BINT4 / GGUF Q4
Geschat geheugen
~4.2 GB
Context
128K