lablup/mlxcel

High-performance LLM, VLM, embedding, reranking, and audio inference for Apple Silicon, NVIDIA CUDA and AMD ROCm systems.

What is mlxcel?

mlxcel is a local inference tool and model server for running AI models on your own hardware. It supports Apple Silicon (M-series chips), NVIDIA CUDA GPUs, and AMD ROCm GPUs (on Linux and Windows). It runs a wide range of model types: text generation, vision-language models, embeddings, reranking, image generation/editing, speech transcription/synthesis, and more.

The core is written in Rust and uses native MLX C++ bindings to load and run MLX SafeTensors checkpoints directly — no Python environment or checkpoint conversion step is needed in the request path.

Key capabilities

  • Text generation – interactive chat (mlxcel run) and one-shot generation (mlxcel generate).
  • Multimodal input – images and video for vision-language models.
  • Embeddings and reranking – for search and retrieval tasks.
  • Image generation and editing – via Diffusers-layout checkpoints.
  • Audio – speech transcription (Whisper, Phi-4 Multimodal, Gemma 3n) and text-to-speech (Kokoro).
  • Token classification – for entity tagging/redaction (mlxcel tag).
  • Server mode – mlxcel-server or mlxcel serve exposes OpenAI-, Anthropic-, and Vertex-compatible APIs, plus native llama-server routes.
  • Advanced serving features – continuous batching, prompt caching, speculative decoding, multi-model routing, live LoRA adapters, and distributed inference.

Why mlxcel?

  • Native, compact runtime – one process, no Python environment to manage in production.
  • Direct checkpoint loading – loads MLX SafeTensors from HuggingFace (including mlx-community models) without conversion.
  • Simple deployment – mlxcel and mlxcel-server are native executables, easy to package and supervise.
  • Broad model coverage – dense transformers, sparse MoE, hybrid SSM, VLMs, embeddings, rerankers, ASR, TTS, and more.
  • Compatibility – accepts a wide llama-server flag surface and records exactly what is supported in a manifest.

Quick start

Install (macOS Apple Silicon)

brew tap lablup/tap
brew install lablup/tap/mlxcel

Linux builds are CUDA-specific and available from the latest release.

Run a model

# Interactive chat
mlxcel run Qwen3.5-0.8B-4bit

# One-shot generation
mlxcel run Qwen3.5-0.8B-4bit -p "Hello, world!" -n 100

# With no model argument, uses mlx-community/gemma-4-e2b-it-4bit
mlxcel run

Start a server

mlxcel-server -m Qwen3.5-0.8B-4bit --port 8080

curl http://localhost:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"Qwen3.5-0.8B-4bit","messages":[{"role":"user","content":"Hello"}]}'

Other commands

  • mlxcel embed – generate embeddings.
  • mlxcel rerank – rank documents against a query.
  • mlxcel tag – tag and redact entities.
  • mlxcel generate-image – generate or edit images.
  • mlxcel list / mlxcel rm – manage downloaded models.

More details

The README includes extensive documentation links for server features, llama-server compatibility, supported models, audio API, image generation, embeddings, and more. The current main branch (v0.8.1 plus unreleased work) adds features like AMD ROCm support, a bundled WebUI, and new model architectures.

For full instructions, see the README and its linked docs.

Related

  • Project
  • Project
  • Project
  • Project
  • Project