MLX
MLX is a
NumPy
-like array framework designed for efficient and flexible machine learning onApple
silicon, brought to you byApple machine learning research
.
Installation and Setupβ
Install several Python packages:
pip install mlx-lm transformers huggingface_hub
Chat modelsβ
See a usage example.
from langchain_community.chat_models.mlx import ChatMLX
API Reference:ChatMLX
LLMsβ
MLX Local Pipelinesβ
See a usage example.
from langchain_community.llms.mlx_pipeline import MLXPipeline
API Reference:MLXPipeline