Skip to main content

Ascend

Ascend 是华为提供的自然处理单元

本页面介绍如何在LangChain中使用Ascend NPU。

安装

使用torch-npu进行安装:

pip install torch-npu

请按照以下说明进行安装:

  • 按照 这里 所示安装 CANN。

嵌入模型

查看 使用示例

from langchain_community.embeddings import AscendEmbeddings

Was this page helpful?


You can also leave detailed feedback on GitHub.

扫我,入群扫我,找书