semvec/pypi-packages huggingface dataset:
unofficial-ascend-tools 0.0.3
unofficial-ascend-tools
License: Apache
Requires Python: >=3.7

# 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: "
)
```