lablup/mlxcel

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

What it solves

mlxcel is a high-performance inference engine designed to run Large Language Models (LLMs), Vision-Language Models (VLMs), embeddings, rerankers, and audio models on Apple Silicon, NVIDIA CUDA, and experimentally on AMD ROCm. It eliminates the need for a Python environment or interpreter layer in the request path, providing a native Rust-based runtime for production-oriented model serving.

How it works

The project implements a CLI and server in Rust that execute MLX SafeTensors checkpoints directly via native MLX C++ bindings. This architecture allows it to load checkpoints from HuggingFace (including mlx-community) without a conversion step. It supports advanced serving features like continuous batching, prompt-prefix caching, speculative decoding, and distributed inference.

Who it’s for

It is built for developers and operators who need a compact, native runtime for deploying AI models on Apple Silicon (primary target) or Linux/CUDA systems, as well as those seeking a high-performance, llama-server compatible API for local or production serving.

Highlights

  • Native Runtime: No Python required in the request path, simplifying deployment artifacts into native executables.
  • Broad Modality Support: Handles text generation, multimodal input (images/video), embeddings, reranking, ASR (transcription), and TTS (speech synthesis).
  • API Compatibility: Verified compatibility with llama-server and native support for OpenAI, Anthropic, and Vertex AI compatible routes.
  • Hardware Acceleration: Optimized for Apple Silicon, NVIDIA CUDA, and experimental support for AMD ROCm (RDNA 3.5).
  • Advanced Inference: Includes speculative decoding (MTP/DFlash), KV-cache compression, and a multi-model router with LRU eviction.
  • Model Surgery: Supports YAML-based load-time weight edits such as scaling, pruning, and interpolation.

Related

  • Project
  • Project
  • Project
  • Project
  • Project