跳到主要内容
MLX 是一个类 NumPy 的数组框架,由 Apple 机器学习研究 团队开发,旨在为 Apple 芯片提供高效灵活的机器学习。

安装和设置

安装多个 Python 包
pip install mlx-lm transformers huggingface_hub

聊天模型

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

LLMs

MLX 本地管道

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

以编程方式连接这些文档到 Claude、VSCode 等,通过 MCP 获取实时答案。
© . This site is unofficial and not affiliated with LangChain, Inc.