MLX
MLX 是一个类似于
NumPy
的数组框架 旨在为Apple
硅芯片上的高效和灵活的机器学习提供支持, 由Apple 机器学习研究
提供。
安装和设置
安装几个 Python 包:
pip install mlx-lm transformers huggingface_hub
Chat models
See a usage example.
from langchain_community.chat_models.mlx import ChatMLX
大型语言模型
MLX 本地管道
查看 使用示例。
from langchain_community.llms.mlx_pipeline import MLXPipeline