unofficial-ascend-tools
Project description
Ascend NPU accelerate Embedding model
Please ensure that you haved installed CANN and torch_npu.
Example:
- source the environment
source /usr/local/Ascend/ascend-toolkit/env.sh
-
install torch and torch_npu
-
now use like bellow
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: "
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for unofficial_ascend_tools-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5de7d3118c19d07bc2eb6106d2385f1d8239d08ddb3cfec7567f44d3b4606e2 |
|
MD5 | 3cefb5d93fc8b809aad6583e0dac1170 |
|
BLAKE2b-256 | a8bec749d4e541c9482aa28fb2afddf86bf1264319cd282860056c25492cf58e |