Python
使用 LangChain Python 集成 Mlx。
MLX 是一个类似 NumPy 的数组框架, 专为在 Apple Silicon 上进行高效灵活的机器学习而设计, 由 Apple machine learning research 团队出品。
NumPy
Apple
Apple machine learning research
pip install mlx-lm transformers huggingface_hub
from langchain_community.chat_models.mlx import ChatMLX
from langchain_community.llms.mlx_pipeline import MLXPipeline