Ascend
Ascend 是华为提供的自然过程单元
本页介绍了如何将 ascend NPU 与 LangChain 结合使用。
安装
使用 torch-npu 安装:
pip install torch-npu
请按照以下指定的安装说明进行作:
- 安装本地 CANN,如下所示。
嵌入模型
请参阅使用示例。
from langchain_community.embeddings import AscendEmbeddings
API 参考:AscendEmbeddings
Ascend 是华为提供的自然过程单元
本页介绍了如何将 ascend NPU 与 LangChain 结合使用。
使用 torch-npu 安装:
pip install torch-npu
请按照以下指定的安装说明进行作:
请参阅使用示例。
from langchain_community.embeddings import AscendEmbeddings