Skip to main content


Ascend is Natural Process Unit provide by Huawei

This page covers how to use ascend NPU with LangChain.


Install using torch-npu using:

pip install torch-npu

Please follow the installation instructions as specified below:

  • Install CANN as shown here.

Embedding Models​

See a usage example.

from langchain_community.embeddings import AscendEmbeddings
API Reference:AscendEmbeddings

Was this page helpful?

You can also leave detailed feedback on GitHub.