Metadata-Version: 2.1
Name: unofficial-ascend-tools
Version: 0.0.5.post7
Summary: unofficial-ascend-tools
Home-page: https://gitee.com/yuncliu/unofficial-ascend-tools
License: Apache
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >= 3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# Ascend NPU accelerate Embedding model

Please ensure that you haved installed CANN and torch_npu.

Example:

1. source the environment
```bash
source /usr/local/Ascend/ascend-toolkit/env.sh
```

2. install torch and torch_npu

3. now use like bellow
```python
from unofficial_ascend_tools.embeddings import AscendEmbeddings
model = AscendEmbeddings(model_path=<path_to_model>,
    device_id=0,
    query_instruction="Represend this sentence for searching relevant passages: "
)
```
