Ascend
Ascend is Natural Process Unit provide by Huawei
This page covers how to use ascend NPU with LangChain.
Installationβ
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