Rehbere dön
RUNTIME / MEDIUM

MLX LM

Native Apple silicon inference, experimentation and fine-tuning

Birincil kaynak
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.

Dikkat

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

Temsilî açık ağırlıklı modeller

Alibaba Qwen

Qwen3.6 27B

27BQ4 / NVFP4 estimate
Tahmini bellek
~18.5 GB
Bağlam
262K native
Alibaba Qwen

Qwen3.8 27B

27BQ4 estimate
Tahmini bellek
~19.5 GB
Bağlam
262K native
Google

Gemma 3 1B

1BINT4 / GGUF Q4
Tahmini bellek
~1.4 GB
Bağlam
32K
Meta

Llama 3.2 3B

3BGGUF Q4
Tahmini bellek
~2.8 GB
Bağlam
128K
Alibaba Qwen

Qwen3 4B

4BGGUF Q4
Tahmini bellek
~3.6 GB
Bağlam
32K+
Google

Gemma 3 4B

4BINT4 / GGUF Q4
Tahmini bellek
~4.2 GB
Bağlam
128K