MLX LM is an open-source Python package designed for running and fine-tuning large language models on Apple silicon using Apple's MLX framework. It enables developers to generate text, interact with conversational models, and customize LLMs locally on Mac computers. The package integrates with Hugging Face Hub, providing access to thousands of compatible models through simple commands. It supports model conversion, quantization, and uploading optimized models to Hugging Face. Users can perform low-rank and full-model fine-tuning, including training quantized models. Its Python API and command-line tools support streaming generation, configurable sampling, and interactive chat. Additional capabilities include distributed inference, prompt caching, and memory-efficient processing of long contexts.

Features

  • Apple Silicon-Optimized LLM Inference
  • Hugging Face Hub Model Integration
  • Low-Rank and Full-Model Fine-Tuning
  • Model Conversion and Quantization
  • Streaming Text Generation and Interactive Chat
  • Distributed Inference and Prompt Caching

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow MLX LM

MLX LM Web Site

Other Useful Business Software
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MLX LM!

Additional Project Details

Programming Language

Python

Related Categories

Python Artificial Intelligence Software

Registered

3 days ago