Skip to main content
MLX 是一个类似 NumPy 的数组框架, 专为在 Apple Silicon 上进行高效灵活的机器学习而设计, 由 Apple machine learning research 团队出品。

安装与设置

安装若干 Python 包:
pip install mlx-lm transformers huggingface_hub

对话模型

查看使用示例
from langchain_community.chat_models.mlx import ChatMLX

LLM

MLX 本地流水线

查看使用示例
from langchain_community.llms.mlx_pipeline import MLXPipeline